From 643f8b6c41fa1b0b667da4e073447dda04051c31 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Tue, 8 Dec 2020 00:20:44 +0800 Subject: [PATCH] feat(checkbox): value support number --- demo/documentation/components/checkbox/enUS/index.demo-entry.md | 2 +- demo/documentation/components/checkbox/zhCN/index.demo-entry.md | 2 +- src/checkbox/src/Checkbox.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/documentation/components/checkbox/enUS/index.demo-entry.md b/demo/documentation/components/checkbox/enUS/index.demo-entry.md index 37556e3a8..b0971db02 100644 --- a/demo/documentation/components/checkbox/enUS/index.demo-entry.md +++ b/demo/documentation/components/checkbox/enUS/index.demo-entry.md @@ -20,7 +20,7 @@ event |disabled|`boolean`|`false`|| |label|`string \| function`|`undefined`|Could be a render function.| |theme|`'light' \| 'dark' \| string`|`undefined`|| -|value|`string`|`undefined`|| +|value|`string \| number`|`undefined`|| |on-update:checked|`(checked: boolean)`|`undefined`|| ### Checkbox Group Props diff --git a/demo/documentation/components/checkbox/zhCN/index.demo-entry.md b/demo/documentation/components/checkbox/zhCN/index.demo-entry.md index 68d4b14cd..fd307def6 100644 --- a/demo/documentation/components/checkbox/zhCN/index.demo-entry.md +++ b/demo/documentation/components/checkbox/zhCN/index.demo-entry.md @@ -20,7 +20,7 @@ event |disabled|`boolean`|`false`|| |label|`string \| function`|`undefined`|可以是渲染函数| |theme|`'light' \| 'dark' \| string`|`undefined`|| -|value|`string`|`undefined`|| +|value|`string \| number`|`undefined`|| |on-update:checked|`(checked: boolean)`|`undefined`|| ### Checkbox Group Props diff --git a/src/checkbox/src/Checkbox.vue b/src/checkbox/src/Checkbox.vue index 2f274f2e4..ffc0ebb5f 100644 --- a/src/checkbox/src/Checkbox.vue +++ b/src/checkbox/src/Checkbox.vue @@ -117,7 +117,7 @@ export default { default: false }, value: { - type: String, + type: [String, Number], default: undefined }, disabled: {