From 8af68a0d7afba16fc9e578e3301987698facffa7 Mon Sep 17 00:00:00 2001 From: rex Date: Tue, 12 Nov 2019 19:56:02 +0800 Subject: [PATCH] fix(Area): fix change event emit wrong values (#2290) fix #2287 --- packages/area/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/area/index.ts b/packages/area/index.ts index f20ce335..bf0d9f5e 100644 --- a/packages/area/index.ts +++ b/packages/area/index.ts @@ -108,12 +108,10 @@ VantComponent({ onChange(event: Weapp.Event) { const { index, picker, value } = event.detail; this.code = value[index].code; - let getValues = picker.getValues(); - getValues = this.parseOutputValues(getValues); this.setValues().then(() => { this.$emit('change', { picker, - values: getValues, + values: this.parseOutputValues(picker.getValues()), index }); });