breaking change(Picker): adjust change event param

This commit is contained in:
chenjiahan
2020-08-21 00:12:48 +08:00
parent af7e7fe9df
commit 036eb8543c
5 changed files with 22 additions and 15 deletions
+3 -2
View File
@@ -47,6 +47,7 @@
<demo-block card :title="t('setColumnValues')">
<van-picker
ref="picker"
show-toolbar
:title="t('title')"
:columns="columns"
@@ -173,8 +174,8 @@ export default {
this.$toast(this.t('toastContent', value, index));
},
onChange2(picker, values) {
picker.setColumnValues(1, this.t('column3')[values[0]]);
onChange2(values) {
this.$refs.picker.setColumnValues(1, this.t('column3')[values[0]]);
},
onConfirm(value, index) {