From 72ef2137838a98551d1d42057ce6387b2589e963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E7=84=B6=E5=91=86?= <522951870@qq.com> Date: Tue, 8 Mar 2022 06:58:28 +0000 Subject: [PATCH] !114 update docs/component/switch.md. * update docs/component/switch.md. --- docs/component/switch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/component/switch.md b/docs/component/switch.md index 8b3149306..04be4d058 100644 --- a/docs/component/switch.md +++ b/docs/component/switch.md @@ -46,10 +46,10 @@ export default { }, methods: { switch1Change: function (e) { - console.log('switch1 发生 change 事件,携带值为', e.target.value) + console.log('switch1 发生 change 事件,携带值为', e.detail.value) }, switch2Change: function (e) { - console.log('switch2 发生 change 事件,携带值为', e.target.value) + console.log('switch2 发生 change 事件,携带值为', e.detail.value) } } } -- GitLab