Browse Source

处理通用年月选择器切换年份后的数据格式问题

ljb 11 months ago
parent
commit
9ff1ecced2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/year-month-select/index.vue

+ 1 - 0
src/components/year-month-select/index.vue

@@ -7,6 +7,7 @@
       :clearable="false"
       :clearable="false"
       placeholder="选择年"
       placeholder="选择年"
       size="small"
       size="small"
+      value-format="yyyy"
     >
     >
     </el-date-picker>
     </el-date-picker>
    </div>
    </div>