手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

Element如何设置DatePicker选择月份

时间:2024-10-18 12:39:01

1、打开一个vue文件,添加DatePicker日期选择器组件,设置默认日期为当天。如图

Element如何设置DatePicker选择月份
Element如何设置DatePicker选择月份

2、在组件上添加type属性值为month,用于显示年月日期。如图

Element如何设置DatePicker选择月份

3、保存vue文件后使用浏览器打开,即可看到DatePicker日期选择器显示年月日期。如图

Element如何设置DatePicker选择月份
© 手抄报圈