diff --git a/src/field/README.md b/src/field/README.md index 9bef29de7..3a51b8b95 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -124,7 +124,7 @@ Use button slot to insert button |------|------|------|------|------| | value | Field value | *string \| number* | - | - | | label | Field label | *string* | - | - | -| type | Input type, can be set to `tel` *number*
`textarea` `password` | *string* | `text` | - | +| type | Input type, can be set to `tel` `number`
`textarea` `password` | *string* | `text` | - | | size | Size,can be set to `large` | *string* | - | - | | maxlength | Max length of value | *string \| number* | - | - | | placeholder | Placeholder | *string* | - | - | diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md index ed4ed518f..ec62498a0 100644 --- a/src/field/README.zh-CN.md +++ b/src/field/README.zh-CN.md @@ -2,7 +2,7 @@ ### 介绍 -表单中的输入框组件,支持`input`和`textarea`两种类型 +表单中的输入框组件 ### 引入 @@ -128,7 +128,7 @@ Vue.use(Field); |------|------|------|------|------| | label | 输入框左侧文本 | *string* | - | - | | value | 当前输入的值 | *string \| number* | - | - | -| type | 输入框类型, 可选值为 `tel` *number*
`textarea` `password` 等 | *string* | `text` | - | +| type | 输入框类型, 可选值为 `tel` `number`
`textarea` `password` 等 | *string* | `text` | - | | size | 大小,可选值为 `large` | *string* | - | - | | maxlength | 输入的最大字符数 | *string \| number* | - | - | | placeholder | 占位提示文字 | *string* | - | - | @@ -148,8 +148,8 @@ Vue.use(Field); | input-align | 输入框内容对齐方式,可选值为 `center` `right` | *string* | `left` | - | | error-message-align | 错误提示文案对齐方式,可选值为 `center` `right` | *string* | `left` | - | | autosize | 自适应内容高度,只对 textarea 有效,可传入对象,
如 { maxHeight: 100, minHeight: 50 },单位为 px | *boolean \| object* | `false` | - | -| left-icon | 输入框左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - | -| right-icon | 输入框尾部图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - | +| left-icon | 左侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - | +| right-icon | 右侧图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - | ### Events