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

Element如何设置el-time-select最小时间

时间:2024-10-11 19:07:12

1、打开一个vue文件,添加el-time-select时间选择器组件,设置默认值为11:30。如图

Element如何设置el-time-select最小时间
Element如何设置el-time-select最小时间

2、在组件上添加picker-options属性,在里面设置最小时间minTime为11:00。如图

Element如何设置el-time-select最小时间

3、保存vue文件后使用浏览器打开,即可看到el-time-select时间选择器小于11:00的时间不可选中。如图

Element如何设置el-time-select最小时间
© 手抄报圈