From 67769a8a47fe971de05219de20bb65a9e6604f8b Mon Sep 17 00:00:00 2001 From: 王旭 <1377869194@qq.com> Date: 星期四, 23 二月 2023 10:29:06 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.20.39:8989/r/LFWEB_NEW --- src/views/Tools/Popup.vue | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/Tools/Popup.vue b/src/views/Tools/Popup.vue index 2611db9..444f14e 100644 --- a/src/views/Tools/Popup.vue +++ b/src/views/Tools/Popup.vue @@ -64,21 +64,21 @@ </template> <script> -import baseVuex from './baseVuex'; +import baseVuex from "./baseVuex"; export default { - name: 'Popup', + name: "Popup", components: {}, mixins: [baseVuex], props: [ - 'title', - 'left', - 'top', - 'maxHeight', - 'width', - 'shadow', - 'closeHidePage', - 'showBtn', - 'btnArr', + "title", + "left", + "top", + "maxHeight", + "width", + "shadow", + "closeHidePage", + "showBtn", + "btnArr", ], data() { return { @@ -86,14 +86,14 @@ showBox: false, // 鏄惁鏄剧ず鍐呭 showContainer: true, - defaultMaxHeight: '400px', + defaultMaxHeight: "400px", }; }, directives: { // 鎷栨嫿 drag(el) { // 鑾峰彇寮圭獥澶撮儴 - let popupTitle = el.querySelector('.popupTitle'); + let popupTitle = el.querySelector(".popupTitle"); // 娣诲姞榧犳爣鎸変笅浜嬩欢 popupTitle.onmousedown = function (e) { let disx = e.clientX - el.offsetLeft; @@ -107,8 +107,8 @@ left > maxleft && (left = maxleft); top < 0 && (top = 0); top > maxTop && (top = maxTop); - el.style.left = left + 'px'; - el.style.top = top + 'px'; + el.style.left = left + "px"; + el.style.top = top + "px"; }; document.onmouseup = function () { document.onmousemove = document.onmouseup = null; @@ -117,10 +117,10 @@ }, }, mounted() { - if (this.maxHeight === 'max') { + if (this.maxHeight === "max") { this.$parent.maxHeight = undefined; this.$nextTick(() => { - this.defaultMaxHeight = this.$el.offsetHeight * 0.92 - 40 + 'px'; + this.defaultMaxHeight = this.$el.offsetHeight * 0.92 - 40 + "px"; }); } }, @@ -132,18 +132,18 @@ // 鍏抽棴寮圭獥 close() { this.showBox = false; - this.$emit('close'); + this.$emit("close"); }, yes() { - this.$emit('yes'); + this.$emit("yes"); }, cancel() { - this.$emit('cancel'); + this.$emit("cancel"); }, // 鎵撳紑寮圭獥 open() { this.showBox = true; - this.$emit('open'); + this.$emit("open"); }, }, }; @@ -167,7 +167,7 @@ border: 1px solid rgba(32, 160, 255, 0.6); border-radius: 5px; pointer-events: all; - min-width: 323px; + min-width: 280px; color: #fff; font-size: 18px; font-family: 寰蒋闆呴粦; -- Gitblit v1.9.3