Skip to content

Commit

Permalink
docs: update textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqi9675 committed Jan 22, 2024
1 parent 38d9a5a commit cae5a9e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packages/quarkd/src/textarea/doc-react.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,22 @@ export default () => {

### Props

| Attribute | Description | Type | Default |
| ------------------ | -------------------------------------------- | -------- | ------- |
| value | Input value | String |
| placeholder | Placeholder | String |
| rows | Rows number | number | 2 |
| maxlength | Maxlength | number | - |
| showcount | Show count | boolean | false |
| autocomplete | Autocomplete | boolean | false |
| disabled | Whether to disable textarea | boolean | false |
| readonly | Whether to be readonly | boolean | false |
| id | Textarea id, used with label | string |
| onInput | Emitted when input value changed | Function |
| onFocus | Emitted when input is focused | Function |
| onBlur | Emitted when input is blurred | Function |
| onCompositionStart | Emitted when input editor starts a new input | Function |
| Attribute | Description | Type | Default |
| ------------------ | -------------------------------------------- | ---------- | -------- |
| value | Input value | `string` |
| placeholder | Placeholder | `string` |
| rows | Rows number | `number` | `2` |
| maxlength | Maxlength | `number` | - |
| showcount | Show count | `boolean` | `false` |
| autocomplete | Autocomplete | `boolean` | `false` |
| autosize | Auto height | `boolean` | `false` |
| disabled | Whether to disable textarea | `boolean` | `false ` |
| readonly | Whether to be readonly | `boolean` | `false` |
| id | Textarea id, used with label | `string` |
| onInput | Emitted when input value changed | `Function` |
| onFocus | Emitted when input is focused | `Function` |
| onBlur | Emitted when input is blurred | `Function` |
| onCompositionStart | Emitted when input editor starts a new input | `Function` |

## CSS Variables

Expand Down
1 change: 1 addition & 0 deletions packages/quarkd/src/textarea/doc-react.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default () => {
| maxlength | 最大字符数 | `number` | `-` |
| showcount | 显示字数 | `boolean` | `false` |
| autocomplete | 自动补全 | `boolean` | `false` |
| autosize | 自适应高度 | `boolean` | `false` |
| disabled | 是否禁用 | `boolean` | `false` |
| readonly | 是否只读 | `boolean` | `false` |
| id | textarea 元素的 id,常用来配合 label 使用 | `string` |
Expand Down
1 change: 1 addition & 0 deletions packages/quarkd/src/textarea/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default {
| maxlength | Maxlength | `number` | `-` |
| showcount | Show count | `boolean` | `false` |
| autocomplete | Autocomplete | `boolean` | `false` |
| autosize | Auto height | `boolean` | `false` |
| disabled | Whether to disable textarea | `boolean` | `false` |
| readonly | Whether to be readonly | `boolean` | `false` |
| id | Textarea id, used with label | `string` |
Expand Down
1 change: 1 addition & 0 deletions packages/quarkd/src/textarea/doc.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default {
| maxlength | 最大字符数 | `number` | `-` |
| showcount | 显示字数 | `boolean` | `false` |
| autocomplete | 自动补全 | `boolean` | `false` |
| autosize | 自适应高度 | `boolean` | `false` |
| disabled | 是否禁用 | `boolean` | `false` |
| readonly | 是否只读 | `boolean` | `false` |
| id | textarea 元素的 id,常用来配合 label 使用 | `string` |
Expand Down

0 comments on commit cae5a9e

Please sign in to comment.