1. 首页
  2. 数据库
  3. 其它
  4. vue element ui 时间选择器设置

vue element ui 时间选择器设置

上传者: 2021-01-16 17:00:19上传 PDF文件 29.92KB 热度 24次
需求:设置时间选择器,只能选择2018-01-01之后切小于当前时间的数据 data() { return { pickerOptions0: { disabledDate: time => { // 使用2018年的毫秒时间戳判断 return time.getTime() Date.now(); } }, pickerOptions1: { disabledDate: time => { // 使用2018年的毫秒时间戳判断 return time.getTime() Date.now(); } } } } 在发送请求之前进行日期的判断,
下载地址
用户评论