From cc95c58635144d12fec0ebcbde94b9b2be140f98 Mon Sep 17 00:00:00 2001 From: rex Date: Wed, 22 Jan 2020 11:44:15 +0800 Subject: [PATCH] fix(Radio): fix disabled not work (#2711) fix #2708 --- packages/radio/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/radio/index.ts b/packages/radio/index.ts index 6b2344cd..a6b234dd 100644 --- a/packages/radio/index.ts +++ b/packages/radio/index.ts @@ -1,5 +1,4 @@ import { VantComponent } from '../common/component'; -import { Weapp } from 'definitions/weapp'; VantComponent({ field: true, @@ -44,9 +43,10 @@ VantComponent({ instance.$emit('change', value); }, - onChange(event: Weapp.Event) { - console.log(event); - this.emitChange(this.data.name); + onChange() { + if (!this.data.disabled) { + this.emitChange(this.data.name); + } }, onClickLabel() {