Skip to content

Commit

Permalink
docs: placeholder default value (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu authored Jul 13, 2023
1 parent 0c5655e commit 0a67ddb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
24 changes: 12 additions & 12 deletions src/packages/__VUE/textarea/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ app.use(Textarea);

### Props

| Attribute | Description | Type | Default |
| ----------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ------------------------ |
| v-model | input value, support two-way binding | string | - |
| placeholder | set placeholder prompt text | string | `'please enter content'` |
| max-length | limit the maximum input characters | string, number | - |
| rows | height of textarea, with priority higher than autosize attribute `Only H5 is supported` | string and number | `2` |
| limit-show | whether textarea displays the input characters. Use | Boolean | ` false` |
| autosize | whether to adapt the content height. You can also pass in objects, such as {maxheight: 200, minheight: 100}. The unit is PX | Boolean, {maxheight?: number; minheight?: number} | `false` |
| text-align | text position, optional values `left , center, right` | string | - |
| readonly | read only attribute | Boolean | `false` |
| disabled | disable attribute | Boolean | `false` |
| autofocus | get focus automatically | Boolean | `false` |
| Attribute | Description | Type | Default |
| ----------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | --------------- |
| v-model | input value, support two-way binding | string | - |
| placeholder | set placeholder prompt text | string | `'Placeholder'` |
| max-length | limit the maximum input characters | string, number | - |
| rows | height of textarea, with priority higher than autosize attribute `Only H5 is supported` | string and number | `2` |
| limit-show | whether textarea displays the input characters. Use | Boolean | ` false` |
| autosize | whether to adapt the content height. You can also pass in objects, such as {maxheight: 200, minheight: 100}. The unit is PX | Boolean, {maxheight?: number; minheight?: number} | `false` |
| text-align | text position, optional values `left , center, right` | string | - |
| readonly | read only attribute | Boolean | `false` |
| disabled | disable attribute | Boolean | `false` |
| autofocus | get focus automatically | Boolean | `false` |

### Events

Expand Down
24 changes: 12 additions & 12 deletions src/packages/__VUE/textarea/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ app.use(Textarea);

### Props

| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ---------------------------------------------------------------------------------- | --------------------------------------------------- | -------------- |
| v-model | 输入值,支持双向绑定 | string | - |
| placeholder | 设置占位提示文字 | string | `'请输入内容'` |
| max-length | 限制最长输入字符 | string \| number | - |
| rows | textarea 的高度,优先级高于 autosize 属性 `仅支持 H5` | string \| number | `2` |
| limit-show | textarea 是否展示输入字符。须配合`max-length`使用 | boolean | `false` |
| autosize | 是否自适应内容高度,也可传入对象, 如 { maxHeight: 200, minHeight: 100 },单位为 px | boolean \| {maxHeight?: number; minHeight?: number} | `false` |
| text-align | 文本位置,可选值`left`,`center`,`right` | string | `left` |
| readonly | 只读属性 | boolean | `false` |
| disabled | 禁用属性 | boolean | `false` |
| autofocus | 自动获取焦点 | boolean | `false` |
| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ---------------------------------------------------------------------------------- | --------------------------------------------------- | ---------- |
| v-model | 输入值,支持双向绑定 | string | - |
| placeholder | 设置占位提示文字 | string | `'请输入'` |
| max-length | 限制最长输入字符 | string \| number | - |
| rows | textarea 的高度,优先级高于 autosize 属性 `仅支持 H5` | string \| number | `2` |
| limit-show | textarea 是否展示输入字符。须配合`max-length`使用 | boolean | `false` |
| autosize | 是否自适应内容高度,也可传入对象, 如 { maxHeight: 200, minHeight: 100 },单位为 px | boolean \| {maxHeight?: number; minHeight?: number} | `false` |
| text-align | 文本位置,可选值`left`,`center`,`right` | string | `left` |
| readonly | 只读属性 | boolean | `false` |
| disabled | 禁用属性 | boolean | `false` |
| autofocus | 自动获取焦点 | boolean | `false` |

### Events

Expand Down
24 changes: 12 additions & 12 deletions src/packages/__VUE/textarea/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ app.use(Textarea);

### Props

| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------- | ------------ |
| v-model | 输入值,支持双向绑定 | string | - |
| placeholder | 设置占位提示文字 | string | `请输入内容` |
| max-length | 限制最长输入字符 | string \| number | - |
| rows | textarea 的高度,优先级高于 autosize 属性 `仅支持 H5` | string \| number | `2` |
| limit-show | textarea 是否展示输入字符。须配合`max-length`使用 | boolean | `false` |
| autosize | 是否自适应内容高度,也可传入对象, <br/> 如 `{ maxHeight: 200, minHeight: 100 }`,单位为`px` | boolean \| {maxHeight?: number; minHeight?: number} | `false` |
| text-align | 文本位置,可选值`left`,`center`,`right` | string | - |
| readonly | 只读属性 | boolean | `false` |
| disabled | 禁用属性 | boolean | `false` |
| autofocus | 自动获取焦点 | boolean | `false` |
| 参数 | 说明 | 类型 | 默认值 |
| ----------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------- | -------- |
| v-model | 输入值,支持双向绑定 | string | - |
| placeholder | 设置占位提示文字 | string | `请输入` |
| max-length | 限制最长输入字符 | string \| number | - |
| rows | textarea 的高度,优先级高于 autosize 属性 `仅支持 H5` | string \| number | `2` |
| limit-show | textarea 是否展示输入字符。须配合`max-length`使用 | boolean | `false` |
| autosize | 是否自适应内容高度,也可传入对象, <br/> 如 `{ maxHeight: 200, minHeight: 100 }`,单位为`px` | boolean \| {maxHeight?: number; minHeight?: number} | `false` |
| text-align | 文本位置,可选值`left`,`center`,`right` | string | - |
| readonly | 只读属性 | boolean | `false` |
| disabled | 禁用属性 | boolean | `false` |
| autofocus | 自动获取焦点 | boolean | `false` |

### Events

Expand Down

0 comments on commit 0a67ddb

Please sign in to comment.