Vue相关记录
1、Row中的gutter要起作用,需要在col下层增加div,并加bockgroud
2、引入外部函数【Vue】在外部函数中调用vue内部的函数_怎么执行vue内部的function_想想你说过的话的博客-CSDN博客3、webpack打包性能优化webpack打包性能优化之路_dh@0.1.0 dll: `webpack -p --progress --config ./we_致良知丶的博客-CSDN博客4、多个表单同时校验
validatePromise(form) {
const rule = new Promise((resolve, reject) => {
form.validate((valid) => {
if (valid) {
resolve();
} else {
reject();
}
});
});
return rule;
},
Promise.all([this.validatePromise(this.$refs.formModel), this.validatePromise(this.$refs.autoScheduleRule.$refs.formData)]).then(() => {
console.log('校验成功');
}).catch(() => {
this.$Message.error('请检查数据填写');
});