2021-10-31 11:35:11 +08:00
|
|
|
# TextArea - 多行文本
|
|
|
|
|
|
|
|
## Interface
|
|
|
|
|
|
|
|
```ts
|
|
|
|
export const textarea: FieldOptions = {
|
|
|
|
name: 'textarea',
|
|
|
|
type: 'object',
|
|
|
|
group: 'basic',
|
|
|
|
order: 2,
|
|
|
|
title: '多行文本',
|
|
|
|
default: {
|
|
|
|
dataType: 'text',
|
|
|
|
// name,
|
|
|
|
uiSchema: {
|
|
|
|
type: 'string',
|
|
|
|
// title,
|
|
|
|
'x-decorator': 'FormItem',
|
|
|
|
'x-component': 'Input.TextArea',
|
|
|
|
'x-designable-bar': 'Input.DesignableBar',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
properties: {
|
|
|
|
...defaultProps,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
```
|