1.el-date-picker输入的时间范围需要两点

A.禁用键盘输入 :editable=false,否则虽然禁用,但是输入框还能输入

B。指定时间范围::picker-options="dateBeforedisable" 并在data方法中添加实现

dateBeforedisable: {
  disabledDate(time) {
    const d = new Date()
    return time.getTime() < d.setMonth(d.getMonth() - 1)
  }
},
 
2.vue中通过属性设置class,参见https://www.bilibili.com/video/av27969216/?p=15
<h3 :class=“{class1:true,class2: true}”>厕所</h3>
 
3.安装excel导出功能
https://blog.csdn.net/wkzd2016/article/details/77716383, 然后拷贝需要的东西放在vendor下即可

相关文章:

  • 2021-12-12
  • 2021-07-29
  • 2021-09-20
  • 2021-04-07
  • 2021-11-20
  • 2021-12-27
  • 2021-04-02
  • 2021-04-04
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-08-29
  • 2021-04-12
  • 2021-10-04
  • 2021-12-01
  • 2021-09-14
相关资源
相似解决方案