From bca3f1b061f20c0042f632e1b6ec51a91ddc7f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Thu, 30 Sep 2021 02:31:50 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=20radio=20=E5=8D=95?= =?UTF-8?q?=E9=80=89=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zh-CN/components/form.md | 28 ++++++++++++++++++++++++++++ src/module/radio/index.vue | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/docs/zh-CN/components/form.md b/docs/docs/zh-CN/components/form.md index 044f23d1..4e2335b9 100644 --- a/docs/docs/zh-CN/components/form.md +++ b/docs/docs/zh-CN/components/form.md @@ -167,4 +167,32 @@ export default { } +::: + +::: demo + + + + + ::: \ No newline at end of file diff --git a/src/module/radio/index.vue b/src/module/radio/index.vue index b24cf381..13afd77d 100644 --- a/src/module/radio/index.vue +++ b/src/module/radio/index.vue @@ -43,6 +43,6 @@ const handleClick = function () { if (props.disabled) { return false } - emit('update:modelValue', !props.modelValue) + emit('update:modelValue', props.label) } \ No newline at end of file