feat(blocksAntd): TextArea examples

This commit is contained in:
Albert van Wyk 2020-11-03 11:58:05 +02:00
parent 42640e4a1d
commit 07a944626d
2 changed files with 76 additions and 2 deletions

View File

@ -1,6 +1,66 @@
- id: default
type: TextArea
- id: properties.title
- id: 'properties.title: My TextArea Title'
type: TextArea
properties:
title: Test Title
title: My TextArea Title
- id: 'properties.allowClear: false'
type: TextArea
properties:
allowClear: false
- id: 'properties.autoFocus: true'
type: TextArea
properties:
autoFocus: true
- id: 'properties.rows: 5'
type: TextArea
properties:
rows: 5
- id: 'properties.autoSize: true'
type: TextArea
properties:
autoSize: true
- id: 'properties.minRows: 2 maxRows: 6'
type: TextArea
properties:
autoSize:
maxRows: 6
minRows: 2
- id: 'properties.disabled: true'
type: TextArea
properties:
disabled: true
- id: 'properties.placeholder: Type your text here'
type: TextArea
properties:
placeholder: Type your text here
- id: 'properties.label span: 12'
type: TextArea
properties:
label:
span: 12
- id: 'properties.label align: right'
type: TextArea
properties:
label:
align: right
- id: 'properties.label inline: true'
type: TextArea
properties:
label:
inline: true
- id: 'properties.label disabled: true'
type: TextArea
properties:
label:
disabled: true
- id: 'properties.label colon: false'
type: TextArea
properties:
label:
colon: false
- id: 'properties.label extra: showing extra'
type: TextArea
properties:
label:
extra: showing extra

View File

@ -74,6 +74,20 @@
"type": "string",
"description": "Label title."
},
"span": {
"type": "number",
"description": "Label inline span."
},
"inline": {
"type": "boolean",
"defaultValue": false,
"description": "Render input and label inline."
},
"disabled": {
"type": "boolean",
"default": false,
"description": "Disable the block if true."
},
"hasFeedback": {
"type": "boolean",
"defaultValue": true,