diff --git a/packages/datetime-picker/index.ts b/packages/datetime-picker/index.ts index 804dde1d3..dba469234 100644 --- a/packages/datetime-picker/index.ts +++ b/packages/datetime-picker/index.ts @@ -52,7 +52,7 @@ VantComponent({ ...pickerProps, value: { type: null, - observer: 'updateValue', + observer: 'updateValueNotEmit', }, filter: null, type: { @@ -118,6 +118,17 @@ VantComponent({ this.updateColumns(); } }, + + updateValueNotEmit() { + const { data } = this; + const val = this.correctValue(data.value); + const isEqual = val === data.innerValue; + if (!isEqual) { + this.updateColumnValue(val); + } else { + this.updateColumns(); + } + }, getPicker() { if (this.picker == null) {