@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.
@@ -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 { dialog as o } from "@web-utils/core/dist/mixin/index";
2
- import { n as i } from "../../chunks/5d4282fb.js";
3
- var s = function() {
4
- var e = this, t = e.$createElement, l = e._self._c || t;
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
- "close-on-click-modal": !1,
6
+ "custom-class": "iframe-window",
7
+ embed: "",
13
8
  title: e.title,
14
- visible: e.show,
15
- top: "5vh",
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 [l("div", {
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 c = {
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: "https://www.baidu.com"
77
- }
36
+ default: "http://192.168.0.107:31221/wallboard"
37
+ },
38
+ visible: Boolean
78
39
  }
79
40
  }, n = {};
80
- var u = /* @__PURE__ */ i(
81
- c,
82
- s,
41
+ var s = /* @__PURE__ */ l(
42
+ i,
43
+ o,
83
44
  a,
84
45
  !1,
85
- f,
46
+ u,
86
47
  null,
87
48
  null,
88
49
  null
89
50
  );
90
- function f(e) {
51
+ function u(e) {
91
52
  for (let t in n)
92
53
  this[t] = n[t];
93
54
  }
94
- const _ = /* @__PURE__ */ function() {
95
- return u.exports;
55
+ const c = /* @__PURE__ */ function() {
56
+ return s.exports;
96
57
  }();
97
58
  export {
98
- _ as default
59
+ c as default
99
60
  };
@@ -1 +1 @@
1
- .iframe-window .iframe-window-iframe{width:100%;height:60vh}.iframe-window .el-dialog__body{position:relative;padding:0}
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}