mirror of https://github.com/ElemeFE/element
parent
bdd0604bd0
commit
eefa3fec78
|
@ -408,6 +408,7 @@ export default {
|
||||||
this.picker.format = this.format;
|
this.picker.format = this.format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const updateOptions = () => {
|
||||||
const options = this.pickerOptions;
|
const options = this.pickerOptions;
|
||||||
|
|
||||||
if (options && options.selectableRange) {
|
if (options && options.selectableRange) {
|
||||||
|
@ -432,6 +433,9 @@ export default {
|
||||||
this.picker[option] = options[option];
|
this.picker[option] = options[option];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
updateOptions();
|
||||||
|
this.$watch('pickerOptions', () => updateOptions(), { deep: true });
|
||||||
|
|
||||||
this.$el.appendChild(this.picker.$el);
|
this.$el.appendChild(this.picker.$el);
|
||||||
this.pickerVisible = this.picker.visible = true;
|
this.pickerVisible = this.picker.visible = true;
|
||||||
|
|
Loading…
Reference in New Issue