Commit eefa3fec authored by cinwell.li's avatar cinwell.li Committed by FuryBean

DatePicker: dynamic picker-options, close #2013 (#2051)

parent bdd0604b
......@@ -408,6 +408,7 @@ export default {
this.picker.format = this.format;
}
const updateOptions = () => {
const options = this.pickerOptions;
if (options && options.selectableRange) {
......@@ -432,6 +433,9 @@ export default {
this.picker[option] = options[option];
}
}
};
updateOptions();
this.$watch('pickerOptions', () => updateOptions(), { deep: true });
this.$el.appendChild(this.picker.$el);
this.pickerVisible = this.picker.visible = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment