@web-utils/component 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/element-dialog/index.js +3 -2
- package/dist/components/iframe-window/index.js +21 -60
- package/dist/components/iframe-window/style.css +1 -1
- package/dist/components/image-viewer/index.js +1348 -0
- package/dist/components/image-viewer/style.css +9 -0
- package/dist/index.css +418 -3
- package/dist/index.es.js +3608 -2300
- package/package.json +163 -162
- package/web-types.json +53 -2
|
@@ -159,7 +159,8 @@ const u = {
|
|
|
159
159
|
bodyPadding: {
|
|
160
160
|
type: Boolean,
|
|
161
161
|
default: !0
|
|
162
|
-
}
|
|
162
|
+
},
|
|
163
|
+
embed: Boolean
|
|
163
164
|
},
|
|
164
165
|
data() {
|
|
165
166
|
return {
|
|
@@ -207,7 +208,7 @@ const u = {
|
|
|
207
208
|
typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
|
|
208
209
|
},
|
|
209
210
|
hide(e) {
|
|
210
|
-
e !== !1 && (this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
|
|
211
|
+
e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
|
|
211
212
|
},
|
|
212
213
|
updatePopper() {
|
|
213
214
|
this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
|
|
@@ -1,58 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return l("ElDialog", {
|
|
6
|
-
directives: [{
|
|
7
|
-
name: "dialog-drag",
|
|
8
|
-
rawName: "v-dialog-drag:[fullScreen]",
|
|
9
|
-
arg: e.fullScreen
|
|
10
|
-
}],
|
|
1
|
+
import { n as l } from "../../chunks/5d4282fb.js";
|
|
2
|
+
var o = function() {
|
|
3
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
4
|
+
return r("ElementDialog", {
|
|
11
5
|
attrs: {
|
|
12
|
-
"
|
|
6
|
+
"custom-class": "iframe-window",
|
|
7
|
+
embed: "",
|
|
13
8
|
title: e.title,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"custom-class": "el-dialog-resizeable iframe-window",
|
|
17
|
-
center: "",
|
|
18
|
-
fullscreen: e.fullScreen,
|
|
19
|
-
"append-to-body": "",
|
|
20
|
-
width: "60%"
|
|
21
|
-
},
|
|
22
|
-
on: {
|
|
23
|
-
"update:visible": function(r) {
|
|
24
|
-
e.show = r;
|
|
25
|
-
},
|
|
26
|
-
close: e.close,
|
|
27
|
-
closed: e.closed
|
|
9
|
+
"show-full-screen": "",
|
|
10
|
+
visible: e.visible
|
|
28
11
|
},
|
|
29
12
|
scopedSlots: e._u([{
|
|
30
|
-
key: "title",
|
|
31
|
-
fn: function() {
|
|
32
|
-
return [e._v(" " + e._s(e.title) + " "), l("ElButton", {
|
|
33
|
-
staticClass: "fullscreen-btn",
|
|
34
|
-
attrs: {
|
|
35
|
-
type: "text",
|
|
36
|
-
icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
|
|
37
|
-
size: "medium",
|
|
38
|
-
title: e.fullScreen ? "还原" : "最大化"
|
|
39
|
-
},
|
|
40
|
-
on: {
|
|
41
|
-
click: e.toggleFullScreen
|
|
42
|
-
}
|
|
43
|
-
})];
|
|
44
|
-
},
|
|
45
|
-
proxy: !0
|
|
46
|
-
}, {
|
|
47
13
|
key: "default",
|
|
48
14
|
fn: function() {
|
|
49
|
-
return [
|
|
50
|
-
staticClass: "drag-mask"
|
|
51
|
-
}), l("iframe", {
|
|
15
|
+
return [r("iframe", {
|
|
52
16
|
staticClass: "iframe-window-iframe",
|
|
53
|
-
style: {
|
|
54
|
-
height: e.fullScreen ? "100%" : "70vh"
|
|
55
|
-
},
|
|
56
17
|
attrs: {
|
|
57
18
|
src: e.url,
|
|
58
19
|
frameborder: "0"
|
|
@@ -63,9 +24,8 @@ var s = function() {
|
|
|
63
24
|
}])
|
|
64
25
|
});
|
|
65
26
|
}, a = [];
|
|
66
|
-
const
|
|
27
|
+
const i = {
|
|
67
28
|
name: "IframeWindow",
|
|
68
|
-
mixins: [o],
|
|
69
29
|
props: {
|
|
70
30
|
title: {
|
|
71
31
|
type: String,
|
|
@@ -73,27 +33,28 @@ const c = {
|
|
|
73
33
|
},
|
|
74
34
|
url: {
|
|
75
35
|
type: String,
|
|
76
|
-
default: "
|
|
77
|
-
}
|
|
36
|
+
default: "http://192.168.0.107:31221/wallboard"
|
|
37
|
+
},
|
|
38
|
+
visible: Boolean
|
|
78
39
|
}
|
|
79
40
|
}, n = {};
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
41
|
+
var s = /* @__PURE__ */ l(
|
|
42
|
+
i,
|
|
43
|
+
o,
|
|
83
44
|
a,
|
|
84
45
|
!1,
|
|
85
|
-
|
|
46
|
+
u,
|
|
86
47
|
null,
|
|
87
48
|
null,
|
|
88
49
|
null
|
|
89
50
|
);
|
|
90
|
-
function
|
|
51
|
+
function u(e) {
|
|
91
52
|
for (let t in n)
|
|
92
53
|
this[t] = n[t];
|
|
93
54
|
}
|
|
94
|
-
const
|
|
95
|
-
return
|
|
55
|
+
const c = /* @__PURE__ */ function() {
|
|
56
|
+
return s.exports;
|
|
96
57
|
}();
|
|
97
58
|
export {
|
|
98
|
-
|
|
59
|
+
c as default
|
|
99
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iframe-window .
|
|
1
|
+
.iframe-window.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;padding:0}.iframe-window .iframe-window-iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:60vh;border:none}
|