feat(DatetimePicker): add getPicker method

This commit is contained in:
陈嘉涵
2019-12-29 08:58:11 +08:00
committed by neverland
parent 5eb2a4012a
commit 1dc1feae40
7 changed files with 30 additions and 15 deletions

View File

@@ -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);
});
}
}