From b350757df151c04f22d040eac001cb479d4a4776 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期一, 28 二月 2022 15:30:54 +0800 Subject: [PATCH] 添加form_rules_validators 使用例子注释 --- src/main.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main.js b/src/main.js index 1cfd752..c2eae2a 100644 --- a/src/main.js +++ b/src/main.js @@ -20,6 +20,8 @@ import Pagination from '@/components/Pagination' // 鑷畾涔夎〃鏍煎伐鍏锋墿灞� import RightToolbar from '@/components/RightToolbar' +// 鎷栨嫿寮圭獥 +import drag from './directive/el-drag-dialog/drag' // 杩囨护鍣ㄧ粺涓�澶勭悊鍔犺浇 Object.keys(filter).forEach(key => { @@ -37,13 +39,15 @@ Vue.prototype.$messageSuc = function(msg) { this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'success' }) } -Vue.prototype.$messagewarn = function(msg) { +Vue.prototype.$messageWarn = function(msg) { this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'warning' }) } Vue.prototype.$messageError = function(msg) { this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'error' }) } +Vue.directive('el-drag-dialog', drag) + Vue.config.productionTip = false new Vue({ -- Gitblit v1.8.0