elementUI
文章平均质量分 52
写程序的吗喽
这个作者很懒,什么都没留下…
展开
-
部署报错$notify
报错:Subsequent property declarations must have the same type. Property '$notify' must be of type 'ElNotification', but here has type 'Notify'.我们的项目是推送到线上后自动部署的,部署报错,看了下日志,大致报错如下:ERROR in D:/work/项目名/node_modules/vant/types/notify.d.ts(37,5):37:5 Subs.原创 2021-12-23 16:30:13 · 1192 阅读 · 0 评论 -
elementUI中form表单验证错乱
同一套表单,在起草时就是OK的,在编辑中验证就错乱了,项目中是因为 template 有 v-if 判断,去掉之后,验证就正常了,然鹅……我在自己的小练笔中模拟了 n 种情况后,还是没能复现这个bug,心累。然后想了想,突然想扒一扒源码,在element-ui.common.js中找到了validate方法,打断点在里面,顺流而下执行了一下,发现到this.fields这里,就出现了莫名其妙的情况了,里面要不就是把不需要验证的component放在了里面,要不没有需要验证的component….原创 2020-08-19 09:38:36 · 1951 阅读 · 1 评论 -
vue+elementUI实现confirm
引用时在 template 模板中使用 this.confirm调用方法: this.$confirm('确认删除?', '系统提示', { confirmButtonText: '确定', cancelButtonText: '取消', cancelButtonClass: 'btn-custom-cancel', type: 'warnin...原创 2019-07-16 11:37:00 · 3319 阅读 · 8 评论