Update picker.vue

fix: DateTimePicker
pull/22991/head
mole422 2024-11-12 10:29:48 +08:00 committed by GitHub
parent 1681040a78
commit 6f892b1b47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -858,10 +858,13 @@ export default {
this.picker.selectionMode = this.selectionMode;
this.picker.unlinkPanels = this.unlinkPanels;
this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
this.picker.clearable = this.clearable;
this.$watch('format', (format) => {
this.picker.format = format;
});
this.$watch('clearable', (clearable) => {
this.picker.clearable = clearable;
});
const updateOptions = () => {
const options = this.pickerOptions;