Skip to content

Commit

Permalink
feat(radio): value support number
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Jan 23, 2019
1 parent cd75c09 commit 88ff9d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/radio/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Vue.component(Radio.name, Radio)
#### Radio Props
|属性 | 说明 | 类型 | 默认值 | 备注|
|----|-----|------|------|------|
|v-model|selected `name`|String|-|
|name|unique name|String|-|-|
|v-model|selected `name`|String/Number|-|
|name|unique name|String/Number|-|-|
|label|description text|String-|-|
|disabled|whether disable option|Boolean|`false`|-|
|inline|whether display as inline block|Boolean|`false`|-|
Expand Down
4 changes: 2 additions & 2 deletions components/radio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Vue.component(RadioList.name, RadioList)
#### Radio Props
|属性 | 说明 | 类型 | 默认值 | 备注|
|----|-----|------|------|------|
|v-model|选中项的`name`|String|-|
|name|唯一键值|String|-|-|
|v-model|选中项的`name`|String/Number|-|
|name|唯一键值|String/Number|-|-|
|label|描述文案|String-|-|
|disabled|是否禁用选项|Boolean|`false`|-|
|inline|是否内联显示|Boolean|`false`|-|
Expand Down
4 changes: 2 additions & 2 deletions components/radio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export default {
props: {
name: {
type: String,
type: [String, Number],
required: true,
},
value: {
type: String,
type: [String, Number],
default: '',
},
size: {
Expand Down

0 comments on commit 88ff9d6

Please sign in to comment.