Explorar el Código

feat: 修改时间选择器 时间展示格式

zhouyuhao hace 8 meses
padre
commit
56310398cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/DateRange/src/components/CalendarDate.vue

+ 1 - 1
src/components/DateRange/src/components/CalendarDate.vue

@@ -125,7 +125,7 @@ const isTwoDate = (date: any) => {
       :disabled="Disabled"
       @change="changeRangeData"
       :placeholder="['Start Time', 'End Time']"
-      :format="userStore.dateFormat"
+      :format="userStore.dateFormat || 'MMM-DD-YYYY'"
       valueFormat="MM/DD/YYYY"
       @openChange="handleCalendarOpen(ETDDate)"
       @panelChange="handlePanelChange"