mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
feat(DatetimePicker): add getPicker method
This commit is contained in:
@@ -133,7 +133,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
updateInnerValue() {
|
||||
const indexes = this.$refs.picker.getIndexes();
|
||||
const indexes = this.getPicker().getIndexes();
|
||||
const getValue = index => getTrueValue(this.originColumns[index].values[indexes[index]]);
|
||||
|
||||
const year = getValue(0);
|
||||
@@ -194,7 +194,7 @@ export default createComponent({
|
||||
}
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.picker.setValues(values);
|
||||
this.getPicker().setValues(values);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user