浏览代码

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

zhouyuhao 8 月之前
父节点
当前提交
56310398cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"