diff --git a/src/packages/__VUE/textarea/doc.en-US.md b/src/packages/__VUE/textarea/doc.en-US.md index 4d2dfe1c06..9bedde19f5 100644 --- a/src/packages/__VUE/textarea/doc.en-US.md +++ b/src/packages/__VUE/textarea/doc.en-US.md @@ -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 diff --git a/src/packages/__VUE/textarea/doc.md b/src/packages/__VUE/textarea/doc.md index 96d97909e0..697e75bbb7 100644 --- a/src/packages/__VUE/textarea/doc.md +++ b/src/packages/__VUE/textarea/doc.md @@ -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 diff --git a/src/packages/__VUE/textarea/doc.taro.md b/src/packages/__VUE/textarea/doc.taro.md index 75a2330cef..efef55c1c3 100644 --- a/src/packages/__VUE/textarea/doc.taro.md +++ b/src/packages/__VUE/textarea/doc.taro.md @@ -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 | - | -| 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 | - | +| readonly | 只读属性 | boolean | `false` | +| disabled | 禁用属性 | boolean | `false` | +| autofocus | 自动获取焦点 | boolean | `false` | ### Events