From b697a213f934a62738fdba33d93cdb36d955d87b Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:44:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=B8=85=E9=99=A4=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E5=88=B0=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 -- frontend/src/directive/index.js | 2 +- frontend/src/main.js | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 7ec9fde18a..cb33ced811 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -51,9 +51,7 @@ "svgo": "1.2.2", "tinymce": "^5.8.2", "umy-ui": "^1.1.6", - "vcolorpicker": "^1.1.0", "vue": "2.6.10", - "vue-axios": "3.2.4", "vue-clipboard2": "0.3.1", "vue-codemirror": "^4.0.6", "vue-friendly-iframe": "^0.20.0", diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index e44e82bfae..95ba9cad71 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -67,7 +67,7 @@ export const bottom2TopDrag = { const closePress = { inserted: function (el) { el.querySelector('.el-drawer__close-btn').onmousedown = function (e) { - e.currentTarget.style.background = '#d2d3d4'; + e.currentTarget.style.setProperty('background', '#d2d3d4', 'important'); } el.querySelector('.el-drawer__close-btn').onmouseup = function (e) { e.currentTarget.style.background = 'none'; diff --git a/frontend/src/main.js b/frontend/src/main.js index bc30338344..7a8a248651 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -45,8 +45,6 @@ Vue.prototype.$gaodeMap = GaodeMap import UmyUi from 'umy-ui' Vue.use(UmyUi) -import vcolorpicker from 'vcolorpicker' -Vue.use(vcolorpicker) // 全屏插件 import fullscreen from 'vue-fullscreen' From a609ec7941a7e345e4987883a999aee3d5025d0d Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:46:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=B8=85=E9=99=A4=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E5=88=B0=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 -- frontend/src/directive/index.js | 8 ++++---- frontend/src/main.js | 2 -- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 7ec9fde18a..cb33ced811 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -51,9 +51,7 @@ "svgo": "1.2.2", "tinymce": "^5.8.2", "umy-ui": "^1.1.6", - "vcolorpicker": "^1.1.0", "vue": "2.6.10", - "vue-axios": "3.2.4", "vue-clipboard2": "0.3.1", "vue-codemirror": "^4.0.6", "vue-friendly-iframe": "^0.20.0", diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index ebe3d87c5d..7077bd0dec 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -64,10 +64,10 @@ export const bottom2TopDrag = { } } -const closePress = { - inserted: function(el) { - el.querySelector('.el-drawer__close-btn').onmousedown = function(e) { - e.currentTarget.style.background = '#d2d3d4' +const closePress = { + inserted: function (el) { + el.querySelector('.el-drawer__close-btn').onmousedown = function (e) { + e.currentTarget.style.setProperty('background', '#d2d3d4', 'important'); } el.querySelector('.el-drawer__close-btn').onmouseup = function(e) { e.currentTarget.style.background = 'none' diff --git a/frontend/src/main.js b/frontend/src/main.js index bc30338344..7a8a248651 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -45,8 +45,6 @@ Vue.prototype.$gaodeMap = GaodeMap import UmyUi from 'umy-ui' Vue.use(UmyUi) -import vcolorpicker from 'vcolorpicker' -Vue.use(vcolorpicker) // 全屏插件 import fullscreen from 'vue-fullscreen'