From 5723c8a6bbb43ebeff7c754909d884fcd1df19bd Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 30 Nov 2020 22:07:21 +0800 Subject: [PATCH] docs: fix v-model api #7649 --- src/checkbox/README.md | 4 ++-- src/checkbox/README.zh-CN.md | 24 ++++++++++++------------ src/field/README.md | 2 +- src/field/README.zh-CN.md | 2 +- src/number-keyboard/README.md | 2 +- src/number-keyboard/README.zh-CN.md | 2 +- src/radio/README.md | 2 +- src/radio/README.zh-CN.md | 2 +- src/uploader/README.md | 2 +- src/uploader/README.zh-CN.md | 2 +- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/checkbox/README.md b/src/checkbox/README.md index e6922795d..efceef585 100644 --- a/src/checkbox/README.md +++ b/src/checkbox/README.md @@ -226,7 +226,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | --- | -| v-model (value) | Check status | _boolean_ | `false` | +| v-model | Check status | _boolean_ | `false` | | name | Checkbox name | _any_ | - | | shape | Can be set to `square` | _string_ | `round` | | disabled | Disable checkbox | _boolean_ | `false` | @@ -240,7 +240,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | --- | -| v-model (value) | Names of all checked checkboxes | _any[]_ | - | +| v-model | Names of all checked checkboxes | _any[]_ | - | | disabled | Whether to disable all checkboxes | _boolean_ | `false` | | max | Maximum amount of checked options | _number \| string_ | `0`(Unlimited) | | direction `v2.5.0` | Direction, can be set to `horizontal` | _string_ | `vertical` | diff --git a/src/checkbox/README.zh-CN.md b/src/checkbox/README.zh-CN.md index f241ea791..49ca97187 100644 --- a/src/checkbox/README.zh-CN.md +++ b/src/checkbox/README.zh-CN.md @@ -248,23 +248,23 @@ export default { ### Checkbox Props -| 参数 | 说明 | 类型 | 默认值 | -| --------------- | ------------------------- | ------------------ | --------- | -| v-model (value) | 是否为选中状态 | _boolean_ | `false` | -| name | 标识符 | _any_ | - | -| shape | 形状,可选值为 `square` | _string_ | `round` | -| disabled | 是否禁用复选框 | _boolean_ | `false` | -| label-disabled | 是否禁用复选框文本点击 | _boolean_ | `false` | -| label-position | 文本位置,可选值为 `left` | _string_ | `right` | -| icon-size | 图标大小,默认单位为 `px` | _number \| string_ | `20px` | -| checked-color | 选中状态颜色 | _string_ | `#1989fa` | -| bind-group | 是否与复选框组绑定 | _boolean_ | `true` | +| 参数 | 说明 | 类型 | 默认值 | +| -------------- | ------------------------- | ------------------ | --------- | +| v-model | 是否为选中状态 | _boolean_ | `false` | +| name | 标识符 | _any_ | - | +| shape | 形状,可选值为 `square` | _string_ | `round` | +| disabled | 是否禁用复选框 | _boolean_ | `false` | +| label-disabled | 是否禁用复选框文本点击 | _boolean_ | `false` | +| label-position | 文本位置,可选值为 `left` | _string_ | `right` | +| icon-size | 图标大小,默认单位为 `px` | _number \| string_ | `20px` | +| checked-color | 选中状态颜色 | _string_ | `#1989fa` | +| bind-group | 是否与复选框组绑定 | _boolean_ | `true` | ### CheckboxGroup Props | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| v-model (value) | 所有选中项的标识符 | _any[]_ | - | +| v-model | 所有选中项的标识符 | _any[]_ | - | | disabled | 是否禁用所有复选框 | _boolean_ | `false` | | max | 最大可选数,`0`为无限制 | _number \| string_ | `0` | | direction `v2.5.0` | 排列方向,可选值为 `horizontal` | _string_ | `vertical` | diff --git a/src/field/README.md b/src/field/README.md index ae29e97c4..94df106fa 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -219,7 +219,7 @@ Use `input-align` prop to align the input value. | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| v-model (value) | Field value | _number \| string_ | - | +| v-model | Field value | _number \| string_ | - | | label | Field label | _string_ | - | | name `v2.5.0` | Name | _string_ | - | | type | Input type, can be set to `tel` `digit`
`number` `textarea` `password` | _string_ | `text` | diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md index 07c5c9cec..e3e0e91c8 100644 --- a/src/field/README.zh-CN.md +++ b/src/field/README.zh-CN.md @@ -244,7 +244,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| v-model (value) | 当前输入的值 | _number \| string_ | - | +| v-model | 当前输入的值 | _number \| string_ | - | | label | 输入框左侧文本 | _string_ | - | | name `v2.5.0` | 名称,提交表单的标识符 | _string_ | - | | type | 输入框类型, 可选值为 `tel` `digit`
`number` `textarea` `password` 等 | _string_ | `text` | diff --git a/src/number-keyboard/README.md b/src/number-keyboard/README.md index 8dbcfa936..812272ffc 100644 --- a/src/number-keyboard/README.md +++ b/src/number-keyboard/README.md @@ -141,7 +141,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| v-model (value) | Current value | _string_ | - | +| v-model | Current value | _string_ | - | | show | Whether to show keyboard | _boolean_ | - | | title | Keyboard title | _string_ | - | | theme | Keyboard theme,can be set to `custom` | _string_ | `default` | diff --git a/src/number-keyboard/README.zh-CN.md b/src/number-keyboard/README.zh-CN.md index 43d4055b2..f36d5c99e 100644 --- a/src/number-keyboard/README.zh-CN.md +++ b/src/number-keyboard/README.zh-CN.md @@ -154,7 +154,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| v-model (value) | 当前输入值 | _string_ | - | +| v-model | 当前输入值 | _string_ | - | | show | 是否显示键盘 | _boolean_ | - | | title | 键盘标题 | _string_ | - | | theme | 样式风格,可选值为 `custom` | _string_ | `default` | diff --git a/src/radio/README.md b/src/radio/README.md index cb10aebf1..1f3f0f738 100644 --- a/src/radio/README.md +++ b/src/radio/README.md @@ -164,7 +164,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | --- | -| v-model (v-model) | Name of checked radio | _any_ | - | +| v-model | Name of checked radio | _any_ | - | | disabled | Disable all radios | _boolean_ | `false` | | direction `v2.5.0` | Direction, can be set to `horizontal` | _string_ | `vertical` | | icon-size | Icon size of all radios | _number \| string_ | `20px` | diff --git a/src/radio/README.zh-CN.md b/src/radio/README.zh-CN.md index 895fc12e1..7ef13d44e 100644 --- a/src/radio/README.zh-CN.md +++ b/src/radio/README.zh-CN.md @@ -182,7 +182,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| v-model (value) | 当前选中项的标识符 | _any_ | - | +| v-model | 当前选中项的标识符 | _any_ | - | | disabled | 是否禁用所有单选框 | _boolean_ | `false` | | direction `v2.5.0` | 排列方向,可选值为`horizontal` | _string_ | `vertical` | | icon-size | 所有单选框的图标大小,默认单位为`px` | _number \| string_ | `20px` | diff --git a/src/uploader/README.md b/src/uploader/README.md index 984976286..c7f75eda4 100644 --- a/src/uploader/README.md +++ b/src/uploader/README.md @@ -198,7 +198,7 @@ Use `disabled` prop to disable uploader. | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| v-model (fileList) | List of uploaded files | _FileListItem[]_ | - | +| v-model | List of uploaded files | _FileListItem[]_ | - | | accept | Accepted [file type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Unique_file_type_specifiers) | _string_ | `image/*` | | name | Input name | _number \| string_ | - | | preview-size | Size of preview image | _number \| string_ | `80px` | diff --git a/src/uploader/README.zh-CN.md b/src/uploader/README.zh-CN.md index 60896da9f..d9d67f355 100644 --- a/src/uploader/README.zh-CN.md +++ b/src/uploader/README.zh-CN.md @@ -226,7 +226,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| v-model (fileList) | 已上传的文件列表 | _FileListItem[]_ | - | +| v-model | 已上传的文件列表 | _FileListItem[]_ | - | | accept | 允许上传的文件类型,[详细说明](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file#%E9%99%90%E5%88%B6%E5%85%81%E8%AE%B8%E7%9A%84%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B) | _string_ | `image/*` | | name | 标识符,可以在回调函数的第二项参数中获取 | _number \| string_ | - | | preview-size | 预览图和上传区域的尺寸,默认单位为 `px` | _number \| string_ | `80px` |