@web-utils/component 2.0.7 → 2.0.9

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.
@@ -1,7 +1,13 @@
1
- import { n as d } from "../../chunks/5d4282fb.js";
2
- var u = function() {
1
+ import { n as a } from "../../chunks/5d4282fb.js";
2
+ var d = function() {
3
3
  var t = this, i = t.$createElement, e = t._self._c || i;
4
- return t.visible ? e("div", {
4
+ return t.rendered ? e("div", {
5
+ directives: [{
6
+ name: "show",
7
+ rawName: "v-show",
8
+ value: t.visible,
9
+ expression: "visible"
10
+ }],
5
11
  staticClass: "cm-container",
6
12
  style: t.axisComputed
7
13
  }, [e("svg", {
@@ -34,7 +40,7 @@ var u = function() {
34
40
  class: t.firstLeft ? "cm-left" : "",
35
41
  on: {
36
42
  click: function(n) {
37
- return n.stopPropagation(), t.onItemClick(s, [l]);
43
+ return t.onItemClick(s, [l]);
38
44
  }
39
45
  }
40
46
  }, [e("i", {
@@ -55,15 +61,15 @@ var u = function() {
55
61
  staticClass: "cm-ul cm-ul-2 easy-cm-ul",
56
62
  class: t.underline ? "cm-underline" : "",
57
63
  style: t.secondBorderCheck(l)
58
- }, t._l(s.children, function(n, o) {
64
+ }, t._l(s.children, function(n, r) {
59
65
  return e("li", {
60
- key: o,
66
+ key: r,
61
67
  style: t.liStyle
62
68
  }, [e("div", {
63
69
  class: t.secondLeft ? "cm-left" : "",
64
70
  on: {
65
- click: function(r) {
66
- return r.stopPropagation(), t.onItemClick(n, [l, o]);
71
+ click: function(h) {
72
+ return t.onItemClick(n, [l, r]);
67
73
  }
68
74
  }
69
75
  }, [e("i", {
@@ -83,28 +89,28 @@ var u = function() {
83
89
  })]) : t._e()]), n.children && n.children.length > 0 ? e("ul", {
84
90
  staticClass: "cm-ul cm-ul-3 easy-cm-ul",
85
91
  class: t.underline ? "cm-underline" : "",
86
- style: t.thirdBorderCheck(l, o)
87
- }, t._l(n.children, function(r, c) {
92
+ style: t.thirdBorderCheck(l, r)
93
+ }, t._l(n.children, function(h, c) {
88
94
  return e("li", {
89
95
  key: c,
90
96
  style: t.liStyle
91
97
  }, [e("div", {
92
98
  on: {
93
- click: function(a) {
94
- return a.stopPropagation(), t.onItemClick(r, [l, o, c]);
99
+ click: function(x) {
100
+ return t.onItemClick(h, [l, r, c]);
95
101
  }
96
102
  }
97
103
  }, [e("i", {
98
104
  staticClass: "cm-item-icon",
99
- class: r.icon
105
+ class: h.icon
100
106
  }), e("span", {
101
107
  staticClass: "cm-item-label"
102
- }, [t._v(t._s(r.text))])])]);
108
+ }, [t._v(t._s(h.text))])])]);
103
109
  }), 0) : t._e()]);
104
110
  }), 0) : t._e()]);
105
111
  }), 0)]) : t._e();
106
- }, m = [];
107
- const f = {
112
+ }, u = [];
113
+ const m = {
108
114
  name: "ContextMenu",
109
115
  props: {
110
116
  list: {
@@ -150,6 +156,7 @@ const f = {
150
156
  data() {
151
157
  return {
152
158
  visible: !1,
159
+ rendered: !1,
153
160
  axis: {
154
161
  x: 0,
155
162
  y: 0
@@ -204,7 +211,7 @@ const f = {
204
211
  };
205
212
  },
206
213
  show(t) {
207
- document.addEventListener("click", this.hide, !0), this.axis = { x: t.clientX, y: t.clientY }, this.visible = !0;
214
+ document.addEventListener("click", this.hide, !0), this.axis = { x: t.clientX, y: t.clientY }, this.rendered = !0, this.visible = !0;
208
215
  },
209
216
  hide() {
210
217
  this.visible = !1, document.removeEventListener("click", this.hide);
@@ -213,23 +220,23 @@ const f = {
213
220
  this.$emit("on-item-click", t, i);
214
221
  }
215
222
  }
216
- }, h = {};
217
- var y = /* @__PURE__ */ d(
218
- f,
219
- u,
223
+ }, o = {};
224
+ var f = /* @__PURE__ */ a(
220
225
  m,
226
+ d,
227
+ u,
221
228
  !1,
222
- x,
229
+ y,
223
230
  null,
224
231
  null,
225
232
  null
226
233
  );
227
- function x(t) {
228
- for (let i in h)
229
- this[i] = h[i];
234
+ function y(t) {
235
+ for (let i in o)
236
+ this[i] = o[i];
230
237
  }
231
238
  const _ = /* @__PURE__ */ function() {
232
- return y.exports;
239
+ return f.exports;
233
240
  }();
234
241
  export {
235
242
  _ as default
@@ -1,10 +1,11 @@
1
1
  import { n as l } from "../../chunks/5d4282fb.js";
2
- var o = function() {
2
+ var s = function() {
3
3
  var e = this, t = e.$createElement, r = e._self._c || t;
4
- return r("ElementDialog", {
4
+ return r("ElementDialog", e._g(e._b({
5
5
  attrs: {
6
6
  "custom-class": "iframe-window",
7
7
  embed: "",
8
+ height: "60vh",
8
9
  title: e.title,
9
10
  "show-full-screen": "",
10
11
  visible: e.visible
@@ -22,7 +23,7 @@ var o = function() {
22
23
  },
23
24
  proxy: !0
24
25
  }])
25
- });
26
+ }, "ElementDialog", e.$attrs, !1), e.$listeners));
26
27
  }, a = [];
27
28
  const i = {
28
29
  name: "IframeWindow",
@@ -38,23 +39,23 @@ const i = {
38
39
  visible: Boolean
39
40
  }
40
41
  }, n = {};
41
- var s = /* @__PURE__ */ l(
42
+ var o = /* @__PURE__ */ l(
42
43
  i,
43
- o,
44
+ s,
44
45
  a,
45
46
  !1,
46
- u,
47
+ _,
47
48
  null,
48
49
  null,
49
50
  null
50
51
  );
51
- function u(e) {
52
+ function _(e) {
52
53
  for (let t in n)
53
54
  this[t] = n[t];
54
55
  }
55
- const c = /* @__PURE__ */ function() {
56
- return s.exports;
56
+ const f = /* @__PURE__ */ function() {
57
+ return o.exports;
57
58
  }();
58
59
  export {
59
- c as default
60
+ f as default
60
61
  };
@@ -1 +1 @@
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}
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%;border:none}
package/dist/index.css CHANGED
@@ -997,7 +997,6 @@
997
997
  left: 0;
998
998
  width: 100%;
999
999
  height: 100%;
1000
- min-height: 60vh;
1001
1000
  border: none;
1002
1001
  }
1003
1002
  .image-viewer .image-item {
package/dist/index.es.js CHANGED
@@ -1606,7 +1606,13 @@ const ConfirmButton = /* @__PURE__ */ function() {
1606
1606
  }();
1607
1607
  var render$Z = function() {
1608
1608
  var e = this, t = e.$createElement, s = e._self._c || t;
1609
- return e.visible ? s("div", {
1609
+ return e.rendered ? s("div", {
1610
+ directives: [{
1611
+ name: "show",
1612
+ rawName: "v-show",
1613
+ value: e.visible,
1614
+ expression: "visible"
1615
+ }],
1610
1616
  staticClass: "cm-container",
1611
1617
  style: e.axisComputed
1612
1618
  }, [s("svg", {
@@ -1639,7 +1645,7 @@ var render$Z = function() {
1639
1645
  class: e.firstLeft ? "cm-left" : "",
1640
1646
  on: {
1641
1647
  click: function(i) {
1642
- return i.stopPropagation(), e.onItemClick(n, [r]);
1648
+ return e.onItemClick(n, [r]);
1643
1649
  }
1644
1650
  }
1645
1651
  }, [s("i", {
@@ -1668,7 +1674,7 @@ var render$Z = function() {
1668
1674
  class: e.secondLeft ? "cm-left" : "",
1669
1675
  on: {
1670
1676
  click: function(a) {
1671
- return a.stopPropagation(), e.onItemClick(i, [r, o]);
1677
+ return e.onItemClick(i, [r, o]);
1672
1678
  }
1673
1679
  }
1674
1680
  }, [s("i", {
@@ -1696,7 +1702,7 @@ var render$Z = function() {
1696
1702
  }, [s("div", {
1697
1703
  on: {
1698
1704
  click: function(c) {
1699
- return c.stopPropagation(), e.onItemClick(a, [r, o, l]);
1705
+ return e.onItemClick(a, [r, o, l]);
1700
1706
  }
1701
1707
  }
1702
1708
  }, [s("i", {
@@ -1755,6 +1761,7 @@ const ContextMenu_vue_vue_type_style_index_0_lang = "", __vue2_script$19 = {
1755
1761
  data() {
1756
1762
  return {
1757
1763
  visible: !1,
1764
+ rendered: !1,
1758
1765
  axis: {
1759
1766
  x: 0,
1760
1767
  y: 0
@@ -1809,7 +1816,7 @@ const ContextMenu_vue_vue_type_style_index_0_lang = "", __vue2_script$19 = {
1809
1816
  };
1810
1817
  },
1811
1818
  show(e) {
1812
- document.addEventListener("click", this.hide, !0), this.axis = { x: e.clientX, y: e.clientY }, this.visible = !0;
1819
+ document.addEventListener("click", this.hide, !0), this.axis = { x: e.clientX, y: e.clientY }, this.rendered = !0, this.visible = !0;
1813
1820
  },
1814
1821
  hide() {
1815
1822
  this.visible = !1, document.removeEventListener("click", this.hide);
@@ -7116,10 +7123,11 @@ const IconCard = /* @__PURE__ */ function() {
7116
7123
  }();
7117
7124
  var render$v = function() {
7118
7125
  var e = this, t = e.$createElement, s = e._self._c || t;
7119
- return s("ElementDialog", {
7126
+ return s("ElementDialog", e._g(e._b({
7120
7127
  attrs: {
7121
7128
  "custom-class": "iframe-window",
7122
7129
  embed: "",
7130
+ height: "60vh",
7123
7131
  title: e.title,
7124
7132
  "show-full-screen": "",
7125
7133
  visible: e.visible
@@ -7137,7 +7145,7 @@ var render$v = function() {
7137
7145
  },
7138
7146
  proxy: !0
7139
7147
  }])
7140
- });
7148
+ }, "ElementDialog", e.$attrs, !1), e.$listeners));
7141
7149
  }, staticRenderFns$v = [];
7142
7150
  const IframeWindow_vue_vue_type_style_index_0_lang = "", __vue2_script$A = {
7143
7151
  name: "IframeWindow",
@@ -13128,7 +13136,7 @@ function __vue2_injectStyles(e) {
13128
13136
  }
13129
13137
  const XDialog = /* @__PURE__ */ function() {
13130
13138
  return __component__.exports;
13131
- }(), version = "2.0.7";
13139
+ }(), version = "2.0.9";
13132
13140
  function index(e) {
13133
13141
  e.component(AddressInput.name, AddressInput), e.component(AsideMenu.name, AsideMenu), e.component(AwesomeButton.name, AwesomeButton), e.component(CapsuleTab.name, CapsuleTab), e.component(ChunkFileUploader.name, ChunkFileUploader), e.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), e.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), e.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), e.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), e.component(ChunkFileUploaderList.name, ChunkFileUploaderList), e.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), e.component(CodeMirrorEditor.name, CodeMirrorEditor), e.component(ColorPicker.name, ColorPicker), e.component(Confirmable.name, Confirmable), e.component(ConfirmButton.name, ConfirmButton), e.component(ContextMenu.name, ContextMenu), e.component(CustomScrollbar.name, CustomScrollbar), e.component(DataTablePicker.name, DataTablePicker), e.component(DynamicTable.name, DynamicTable), e.component(ECharts.name, ECharts), e.component(EditableProgress.name, EditableProgress), e.component(EditableTree.name, EditableTree), e.component(EgdCollapse.name, EgdCollapse), e.component(EgdCollapseItem.name, EgdCollapseItem), e.component(ElementDialog.name, ElementDialog), e.component(EmptyView.name, EmptyView), e.component(ErrorView.name, ErrorView), e.component(FlexColumn.name, FlexColumn), e.component(FlexItem.name, FlexItem), e.component(FlexRow.name, FlexRow), e.component(FlexScroller.name, FlexScroller), e.component(FormButton.name, FormButton), e.component(FormCascader.name, FormCascader), e.component(FormCheckboxGroup.name, FormCheckboxGroup), e.component(FormDatePicker.name, FormDatePicker), e.component(FormHolder.name, FormHolder), e.component(FormInput.name, FormInput), e.component(FormInputEmail.name, FormInputEmail), e.component(FormInputIdCard.name, FormInputIdCard), e.component(FormInputNumber.name, FormInputNumber), e.component(FormInputPhoneNumber.name, FormInputPhoneNumber), e.component(FormInputTime.name, FormInputTime), e.component(FormItem.name, FormItem), e.component(FormItemConfigProvider.name, FormItemConfigProvider), e.component(FormItemGroup.name, FormItemGroup), e.component(FormRadioGroup.name, FormRadioGroup), e.component(FormSelect.name, FormSelect), e.component(FormSwitch.name, FormSwitch), e.component(FormTextarea.name, FormTextarea), e.component(FormView.name, FormView), e.component(GuideSteps.name, GuideSteps), e.component(IconCard.name, IconCard), e.component(IframeWindow.name, IframeWindow), e.component(ImageViewer.name, ImageViewer), e.component(InputNumber.name, InputNumber), e.component(InputNumberRange.name, InputNumberRange), e.component(JSXComponent.name, JSXComponent), e.component(KeepViewAlive.name, KeepViewAlive), e.component(LoadingView.name, LoadingView), e.component(NavBar.name, NavBar), e.component(NotImplement.name, NotImplement), e.component(Page.name, Page), e.component(PageableTable.name, PageableTable), e.component(PageableView.name, PageableView), e.component(PageHeader.name, PageHeader), e.component(PageIndex.name, PageIndex), e.component(PageIndexTop.name, PageIndexTop), e.component(PageSkeleton.name, PageSkeleton), e.component(PageSkeletonNew.name, PageSkeletonNew), e.component(PhotoSwipe.name, PhotoSwipe), e.component(ResizeObserver.name, ResizeObserver), e.component(SearchPopover.name, SearchPopover), e.component(SignPanel.name, SignPanel), e.component(SplitPane.name, SplitPane), e.component(Stateful.name, Stateful), e.component(StaticPageableTable.name, StaticPageableTable), e.component(Swiper.name, Swiper), e.component(Tab.name, Tab), e.component(TabItem.name, TabItem), e.component(TableColumn.name, TableColumn), e.component(TableView.name, TableView), e.component(TagRender.name, TagRender), e.component(TinymceEditor.name, TinymceEditor), e.component(TinymceWrapper.name, TinymceWrapper), e.component(Toolbar.name, Toolbar), e.component(ToolbarButton.name, ToolbarButton), e.component(Trigger.name, Trigger), e.component(VueTagsInput.name, VueTagsInput), e.component(Watermark.name, Watermark), e.component(XDialog.name, XDialog);
13134
13142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.0.7",
5
+ "version": "2.0.9",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",