浏览代码

docs: textarea文档修改

lkjh3214 3 年之前
父节点
当前提交
5bdd988104

+ 1 - 2
src/packages/__VUE/textarea/doc.en-US.md

@@ -77,7 +77,7 @@ export default {
 |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 |  `left`|
+|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 `|
@@ -100,7 +100,6 @@ The component provides the following CSS variables, which can be used to customi
 | Name | Default Value |
 | --------------------------------------- | -------------------------- |
 | --nut-textarea-font| _var(--nut-font-size-2)_  |
-| --nut-textarea-height| _100px_  |
 | --nut-textarea-limit-color| _var(--nut-text-color)_  |
 | --nut-textarea-text-color| _var(--nut-title-color)_  |
 | --nut-textarea-disabled-color| _var(--nut-disable-color)_  |

+ 3 - 4
src/packages/__VUE/textarea/doc.md

@@ -71,13 +71,13 @@ export default {
 
 | 参数        | 说明                                             | 类型           | 默认值         |
 |-------------|--------------------------------------------------|----------------|----------------|
-| v-model | input value, supports two-way binding | string | `-`|
+| v-model | input value, supports two-way binding | string | -|
 | placeholder | Set placeholder prompt text | string | `Please enter content` |
-| max-length | limit the longest input characters | string \| number | `-` |
+| max-length | limit the longest input characters | string \| number | - |
 | rows | height of textarea, priority is higher than autosize attribute `only supports H5` | string \| number | `2` |
 | limit-show | Whether textarea displays input characters. Must be used with `max-length` | boolean | `false` |
 | autosize | whether to adapt to the height of the content, or to pass in an object, 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 | `left` |
+| text-align | text position, optional values `left`, `center`, `right` | string | - |
 | readonly | read-only property | boolean | `false` |
 | disabled | disabled attribute | boolean | `false` |
 | autofocus | get focus automatically | boolean | `false` |
@@ -100,7 +100,6 @@ export default {
 | 名称                                    | 默认值                     |
 | --------------------------------------- | -------------------------- | 
 | --nut-textarea-font| _var(--nut-font-size-2)_  |
-| --nut-textarea-height| _100px_  |
 | --nut-textarea-limit-color| _var(--nut-text-color)_  |
 | --nut-textarea-text-color| _var(--nut-title-color)_  |
 | --nut-textarea-disabled-color| _var(--nut-disable-color)_  |

+ 3 - 4
src/packages/__VUE/textarea/doc.taro.md

@@ -71,13 +71,13 @@ export default {
 
 | 参数        | 说明                                             | 类型           | 默认值         |
 |-------------|--------------------------------------------------|----------------|----------------|
-| v-model     | 输入值,支持双向绑定                             | string         | `-`|
+| v-model     | 输入值,支持双向绑定                             | string         | - |
 | placeholder | 设置占位提示文字                                 | string         | `请输入内容` |
-| max-length  | 限制最长输入字符                                 | string \| number | `-`              |
+| 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         | `left`         |
+| text-align  | 文本位置,可选值`left`,`center`,`right`           | string         | -         |
 | readonly    | 只读属性                                         | boolean        | `false`        |
 | disabled    | 禁用属性                                         | boolean        | `false`        |
 | autofocus   | 自动获取焦点                                     | boolean        | `false`        |
@@ -100,7 +100,6 @@ export default {
 | 名称                                    | 默认值                     | 
 | --------------------------------------- | -------------------------- | 
 | --nut-textarea-font| _var(--nut-font-size-2)_  |
-| --nut-textarea-height| _100px_  |
 | --nut-textarea-limit-color| _var(--nut-text-color)_  |
 | --nut-textarea-text-color| _var(--nut-title-color)_  |
 | --nut-textarea-disabled-color| _var(--nut-disable-color)_  |

+ 1 - 1
src/packages/styles/variables-jdt.scss

@@ -186,7 +186,7 @@ $input-font-size: var(--nut-input-font-size, $font-size-2) !default;
 // textarea
 
 $textarea-font: var(--nut-textarea-font, $font-size-2) !default;
-$textarea-height: var(--nut-textarea-height, 100px) !default;
+// $textarea-height: var(--nut-textarea-height, 100px) !default;
 $textarea-limit-color: var(--nut-textarea-limit-color, $text-color) !default;
 $textarea-text-color: var(--nut-textarea-text-color, $title-color) !default;
 $textarea-disabled-color: var(--nut-textarea-disabled-color, $disable-color) !default;

+ 1 - 1
src/packages/styles/variables.scss

@@ -205,7 +205,7 @@ $input-font-size: var(--nut-input-font-size, $font-size-2) !default;
 // textarea
 
 $textarea-font: var(--nut-textarea-font, $font-size-2) !default;
-$textarea-height: var(--nut-textarea-height, 100px) !default;
+// $textarea-height: var(--nut-textarea-height, 100px) !default;
 $textarea-limit-color: var(--nut-textarea-limit-color, $text-color) !default;
 $textarea-text-color: var(--nut-textarea-text-color, $title-color) !default;
 $textarea-disabled-color: var(--nut-textarea-disabled-color, $disable-color) !default;