fix(views): 修改日期选择器的格式为单月显示
- 在 expense-management 模块下的 cost-detail 和 expend-detail 页面中 - 将日期选择器的 format 和 valueFormat 属性从 'MM' 修改为 'M' - 这个修改使得日期选择器显示单个月份,而不是两位数的月份
This commit is contained in:
@@ -47,8 +47,8 @@ const searchConfig = ref([
|
|||||||
placeholder: '请选择月份',
|
placeholder: '请选择月份',
|
||||||
clearable: true,
|
clearable: true,
|
||||||
type: 'month',
|
type: 'month',
|
||||||
format: 'MM',
|
format: 'M',
|
||||||
valueFormat: 'MM',
|
valueFormat: 'M',
|
||||||
},
|
},
|
||||||
colProps: {}
|
colProps: {}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ const searchConfig = ref(
|
|||||||
placeholder: '请选择月份',
|
placeholder: '请选择月份',
|
||||||
clearable: true,
|
clearable: true,
|
||||||
type: 'month',
|
type: 'month',
|
||||||
format: 'MM',
|
format: 'M',
|
||||||
valueFormat: 'MM',
|
valueFormat: 'M',
|
||||||
},
|
},
|
||||||
colProps: {}
|
colProps: {}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user