diff --git a/docs/component/switch.md b/docs/component/switch.md index 8b314930653b4ade9b2f67c0796a9f93c04ea734..04be4d058374669ac1f9c51e62a4fa7ee0b21de6 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) } } }