@web-utils/component 3.0.6 → 3.1.0

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.
Files changed (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,68 +1,19 @@
1
- import { isEmpty as a } from "@web-utils/core";
2
- import { d as l } from "../chunks/util.ae730cde.mjs";
3
- import r from "vue";
4
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var d = function() {
6
- var e = this, t = e.$createElement, o = e._self._c || t;
7
- return o(e.dialogType, e._b({
8
- tag: "Component",
9
- staticClass: "dialog-form",
10
- attrs: {
11
- visible: e.visible,
12
- "destroy-on-close": "",
13
- "before-close": e.beforeClose
14
- },
15
- on: {
16
- "update:visible": function(s) {
17
- e.visible = s;
18
- }
19
- }
20
- }, "Component", e.dialog, !1), [o("FyForm", {
21
- ref: "form",
22
- attrs: {
23
- option: Object.assign({}, e.deepClone(e.option), {
24
- menuBtn: !1
25
- }),
26
- status: e.disabled
27
- },
28
- on: {
29
- "update:status": function(s) {
30
- e.disabled = s;
31
- },
32
- submit: e.handleSubmit,
33
- "reset-change": e.close
34
- },
35
- model: {
36
- value: e.data,
37
- callback: function(s) {
38
- e.data = s;
39
- },
40
- expression: "data"
41
- }
42
- }), e.isEmpty(e.option.menuBtn, !0) ? o("span", {
43
- staticClass: "avue-dialog__footer",
44
- class: `avue-dialog__footer--${e.menuPosition}`
45
- }, [e.isEmpty(e.option.submitBtn, !0) ? o("ElButton", {
46
- attrs: {
47
- size: e.$AVUE.size,
48
- icon: e.option.submitIcon,
49
- loading: e.disabled,
50
- type: "primary"
51
- },
52
- on: {
53
- click: e.submit
54
- }
55
- }, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o("ElButton", {
56
- attrs: {
57
- disabled: e.disabled,
58
- size: e.$AVUE.size,
59
- icon: e.option.emptyIcon
60
- },
61
- on: {
62
- click: e.reset
63
- }
64
- }, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
65
- }, m = [];
1
+ var c = Object.defineProperty, d = Object.defineProperties;
2
+ var m = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var u = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
5
+ var l = (t, e, o) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, n = (t, e) => {
6
+ for (var o in e || (e = {}))
7
+ u.call(e, o) && l(t, o, e[o]);
8
+ if (a)
9
+ for (var o of a(e))
10
+ p.call(e, o) && l(t, o, e[o]);
11
+ return t;
12
+ }, r = (t, e) => d(t, m(e));
13
+ import { isEmpty as b } from "@web-utils/core";
14
+ import { d as f } from "../chunks/util.ae730cde.mjs";
15
+ import h from "vue";
16
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
66
17
  const i = {
67
18
  name: "DialogForm",
68
19
  data() {
@@ -94,55 +45,58 @@ const i = {
94
45
  }
95
46
  },
96
47
  methods: {
97
- isEmpty: a,
98
- deepClone: l,
48
+ isEmpty: b,
49
+ deepClone: f,
99
50
  submit() {
100
51
  this.$refs.form.submit();
101
52
  },
102
53
  reset() {
103
54
  this.$refs.form.resetForm();
104
55
  },
105
- beforeClose(e) {
106
- e(), this.close();
56
+ beforeClose(t) {
57
+ t(), this.close();
107
58
  },
108
- show(e) {
109
- this.opt = e, this.callback = e.callback;
110
- const t = this.deepClone(e);
111
- ["callback", "option", "data"].forEach((o) => delete t[o]), this.dialog = Object.assign(this.dialog, t), this.dialog.size = this.dialog.width, this.isDrawer = this.dialog.type === "drawer", this.option = Object.assign(this.option, e.option), this.data = e.data, this.visible = !0;
59
+ show(t) {
60
+ this.opt = t, this.callback = t.callback;
61
+ const e = this.deepClone(t);
62
+ ["callback", "option", "data"].forEach((o) => delete e[o]), this.dialog = Object.assign(this.dialog, e), this.dialog.size = this.dialog.width, this.isDrawer = this.dialog.type === "drawer", this.option = Object.assign(this.option, t.option), this.data = t.data, this.visible = !0;
112
63
  },
113
64
  close() {
114
- const e = () => {
65
+ const t = () => {
115
66
  this.visible = !1, this.$destroy(), this.$el.remove();
116
67
  };
117
- typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(e) : e();
68
+ typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(t) : t();
118
69
  },
119
- handleSubmit(e, t) {
120
- this.callback && this.callback({ data: e, close: this.close, done: t });
70
+ handleSubmit(t, e) {
71
+ this.callback && this.callback({ data: t, close: this.close, done: e });
121
72
  }
122
73
  }
123
74
  };
124
- i.showForm = (e) => {
125
- const t = r.extend(i), o = new t().$mount();
126
- return document.body.appendChild(o.$el), o.show(e), o;
75
+ i.showForm = (t) => {
76
+ const e = h.extend(i), o = new e().$mount();
77
+ return document.body.appendChild(o.$el), o.show(t), o;
127
78
  };
128
- const u = i, n = {};
129
- var p = /* @__PURE__ */ c(
130
- u,
131
- d,
132
- m,
79
+ const g = i;
80
+ var y = function() {
81
+ var e = this, o = e._self._c;
82
+ return e._self._setupProxy, o(e.dialogType, e._b({ tag: "Component", staticClass: "dialog-form", attrs: { visible: e.visible, "destroy-on-close": "", "before-close": e.beforeClose }, on: { "update:visible": function(s) {
83
+ e.visible = s;
84
+ } } }, "Component", e.dialog, !1), [o("FyForm", { ref: "form", attrs: { option: r(n({}, e.deepClone(e.option)), { menuBtn: !1 }), status: e.disabled }, on: { "update:status": function(s) {
85
+ e.disabled = s;
86
+ }, submit: e.handleSubmit, "reset-change": e.close }, model: { value: e.data, callback: function(s) {
87
+ e.data = s;
88
+ }, expression: "data" } }), e.isEmpty(e.option.menuBtn, !0) ? o("span", { staticClass: "avue-dialog__footer", class: `avue-dialog__footer--${e.menuPosition}` }, [e.isEmpty(e.option.submitBtn, !0) ? o("ElButton", { attrs: { size: e.$AVUE.size, icon: e.option.submitIcon, loading: e.disabled, type: "primary" }, on: { click: e.submit } }, [e._v(e._s(e.option.submitText))]) : e._e(), e.isEmpty(e.option.emptyBtn, !0) ? o("ElButton", { attrs: { disabled: e.disabled, size: e.$AVUE.size, icon: e.option.emptyIcon }, on: { click: e.reset } }, [e._v(e._s(e.option.emptyText))]) : e._e()], 1) : e._e()], 1);
89
+ }, v = [], C = /* @__PURE__ */ _(
90
+ g,
91
+ y,
92
+ v,
133
93
  !1,
134
- b,
94
+ null,
135
95
  null,
136
96
  null,
137
97
  null
138
98
  );
139
- function b(e) {
140
- for (let t in n)
141
- this[t] = n[t];
142
- }
143
- const v = /* @__PURE__ */ function() {
144
- return p.exports;
145
- }();
99
+ const $ = C.exports;
146
100
  export {
147
- v as default
101
+ $ as default
148
102
  };
@@ -1,102 +1,11 @@
1
- import { fastClone as u, validateNumber as d, validateIdCard as c, validatePhoneNum as m } from "@web-utils/core";
2
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var h = function() {
4
- var e = this, i = e.$createElement, t = e._self._c || i;
5
- return t("div", {
6
- staticClass: "dynamic-table"
7
- }, [t("ElTable", {
8
- key: e.key,
9
- staticStyle: {
10
- width: "100%"
11
- },
12
- attrs: {
13
- data: e.value
14
- }
15
- }, [e._l(e.columns, function(a) {
16
- return t("TableColumn", {
17
- key: a.prop,
18
- attrs: {
19
- prop: a.prop,
20
- label: a.label,
21
- "min-width": "150"
22
- },
23
- scopedSlots: e._u([{
24
- key: "default",
25
- fn: function(n) {
26
- var l = n.row, r = n.$index;
27
- return [t("ElFormItem", {
28
- style: {
29
- marginBottom: e.inputDisabled ? "0px" : "16px"
30
- },
31
- attrs: {
32
- prop: `${e.prop}.${r}.${a.prop}`,
33
- size: "mini",
34
- rules: e.getRules(a)
35
- }
36
- }, [t("ElInput", {
37
- attrs: {
38
- "prefix-icon": e.getIcon(a),
39
- disabled: e.inputDisabled,
40
- placeholder: e.inputDisabled ? "" : `请输入${a.label}!`
41
- },
42
- model: {
43
- value: l[a.prop],
44
- callback: function(s) {
45
- e.$set(l, a.prop, s);
46
- },
47
- expression: "row[column.prop]"
48
- }
49
- })], 1)];
50
- }
51
- }], null, !0)
52
- });
53
- }), e.inputDisabled ? e._e() : t("TableColumn", {
54
- attrs: {
55
- label: "操作",
56
- width: "60",
57
- fixed: "right"
58
- },
59
- scopedSlots: e._u([{
60
- key: "default",
61
- fn: function(a) {
62
- var n = a.row, l = a.column, r = a.$index;
63
- return [t("i", {
64
- staticClass: "el-icon-minus dynamic-table-action-icon",
65
- staticStyle: {
66
- position: "relative",
67
- top: "-8px",
68
- color: "#f00"
69
- },
70
- attrs: {
71
- title: "删除"
72
- },
73
- on: {
74
- click: function(s) {
75
- return s.stopPropagation(), e.removeRow(n, r, l);
76
- }
77
- }
78
- })];
79
- }
80
- }], null, !1, 410881950)
81
- })], 2), e.inputDisabled ? e._e() : t("ElButton", {
82
- staticStyle: {
83
- color: "#08c108"
84
- },
85
- attrs: {
86
- type: "text",
87
- icon: "el-icon-plus"
88
- },
89
- on: {
90
- click: e.addRow
91
- }
92
- }, [e._v(" 添加 ")])], 1);
93
- }, y = [];
94
- const o = {
1
+ import { fastClone as o, validateNumber as p, validateIdCard as u, validatePhoneNum as d } from "@web-utils/core";
2
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const r = {
95
4
  number: "fa fa-superscript",
96
5
  email: "el-icon-lx-mail",
97
6
  phone: "fa fa-phone",
98
7
  idCard: "el-icon-lx-news"
99
- }, v = {
8
+ }, m = {
100
9
  name: "DynamicTable",
101
10
  inject: {
102
11
  elForm: {
@@ -134,8 +43,8 @@ const o = {
134
43
  watch: {
135
44
  value: {
136
45
  deep: !0,
137
- handler(e) {
138
- this.$emit("input", e);
46
+ handler(t) {
47
+ this.$emit("input", t);
139
48
  }
140
49
  },
141
50
  columns: {
@@ -146,50 +55,57 @@ const o = {
146
55
  }
147
56
  },
148
57
  methods: {
149
- getIcon(e) {
150
- return o[e.type] ? o[e.type] : "";
58
+ getIcon(t) {
59
+ return r[t.type] ? r[t.type] : "";
151
60
  },
152
61
  addRow() {
153
- const e = this.value;
154
- e.push(this.newRow()), this.$emit("input", e);
155
- },
156
- removeRow(e, i) {
157
62
  const t = this.value;
158
- t.splice(i, 1), this.$emit("input", t);
63
+ t.push(this.newRow()), this.$emit("input", t);
64
+ },
65
+ removeRow(t, e) {
66
+ const a = this.value;
67
+ a.splice(e, 1), this.$emit("input", a);
159
68
  },
160
69
  newRow() {
161
- const e = {};
162
- return this.columns.forEach((i) => {
163
- e[i.prop] = void 0;
164
- }), e;
70
+ const t = {};
71
+ return this.columns.forEach((e) => {
72
+ t[e.prop] = void 0;
73
+ }), t;
165
74
  },
166
- getRules(e) {
167
- const i = e.rules;
168
- if (["email", "idCard", "phone", "number"].includes(e.type)) {
169
- const t = u(i || []);
170
- return e.type === "number" && t.push({ validator: d, message: "请输入数字!" }), e.type === "email" && t.push({ type: "email", message: "请输入正确的邮箱地址!" }), e.type === "idCard" && t.push({ validator: c, message: "请输入正确的身份证号码!" }), e.type === "phone" && t.push({ validator: m, message: "请输入正确的手机号码!" }), t;
75
+ getRules(t) {
76
+ const e = t.rules;
77
+ if (["email", "idCard", "phone", "number"].includes(t.type)) {
78
+ const a = o(e || []);
79
+ return t.type === "number" && a.push({ validator: p, message: "请输入数字!" }), t.type === "email" && a.push({ type: "email", message: "请输入正确的邮箱地址!" }), t.type === "idCard" && a.push({ validator: u, message: "请输入正确的身份证号码!" }), t.type === "phone" && a.push({ validator: d, message: "请输入正确的手机号码!" }), a;
171
80
  } else
172
- return i;
81
+ return e;
173
82
  }
174
83
  }
175
- }, p = {};
176
- var b = /* @__PURE__ */ f(
177
- v,
178
- h,
84
+ };
85
+ var f = function() {
86
+ var e = this, a = e._self._c;
87
+ return a("div", { staticClass: "dynamic-table" }, [a("ElTable", { key: e.key, staticStyle: { width: "100%" }, attrs: { data: e.value } }, [e._l(e.columns, function(i) {
88
+ return a("TableColumn", { key: i.prop, attrs: { prop: i.prop, label: i.label, "min-width": "150" }, scopedSlots: e._u([{ key: "default", fn: function({ row: l, $index: s }) {
89
+ return [a("ElFormItem", { style: { marginBottom: e.inputDisabled ? "0px" : "16px" }, attrs: { prop: `${e.prop}.${s}.${i.prop}`, size: "mini", rules: e.getRules(i) } }, [a("ElInput", { attrs: { "prefix-icon": e.getIcon(i), disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : `请输入${i.label}!` }, model: { value: l[i.prop], callback: function(n) {
90
+ e.$set(l, i.prop, n);
91
+ }, expression: "row[column.prop]" } })], 1)];
92
+ } }], null, !0) });
93
+ }), e.inputDisabled ? e._e() : a("TableColumn", { attrs: { label: "操作", width: "60", fixed: "right" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, column: l, $index: s }) {
94
+ return [a("i", { staticClass: "el-icon-minus dynamic-table-action-icon", staticStyle: { position: "relative", top: "-8px", color: "#f00" }, attrs: { title: "删除" }, on: { click: function(n) {
95
+ return n.stopPropagation(), e.removeRow(i, s, l);
96
+ } } })];
97
+ } }], null, !1, 410881950) })], 2), e.inputDisabled ? e._e() : a("ElButton", { staticStyle: { color: "#08c108" }, attrs: { type: "text", icon: "el-icon-plus" }, on: { click: e.addRow } }, [e._v(" 添加 ")])], 1);
98
+ }, y = [], h = /* @__PURE__ */ c(
99
+ m,
100
+ f,
179
101
  y,
180
102
  !1,
181
- _,
103
+ null,
182
104
  null,
183
105
  null,
184
106
  null
185
107
  );
186
- function _(e) {
187
- for (let i in p)
188
- this[i] = p[i];
189
- }
190
- const g = /* @__PURE__ */ function() {
191
- return b.exports;
192
- }();
108
+ const v = h.exports;
193
109
  export {
194
- g as default
110
+ v as default
195
111
  };
@@ -1,19 +1,9 @@
1
1
  import * as s from "echarts/core";
2
- import { isString as a } from "@web-utils/core";
3
- import { debounce as n } from "@web-utils/integrations/lodash";
4
- import { addListener as o, removeListener as c } from "resize-detector";
5
- import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
6
- var l = function() {
7
- var t = this, e = t.$createElement, i = t._self._c || e;
8
- return i("div", {
9
- staticClass: "echarts",
10
- style: {
11
- width: t.width,
12
- height: t.height
13
- }
14
- });
15
- }, p = [];
16
- const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchShallow"], f = {
2
+ import { isString as r } from "@web-utils/core";
3
+ import { debounce as a } from "@web-utils/integrations/lodash";
4
+ import { addListener as n, removeListener as o } from "resize-detector";
5
+ import { n as d } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
6
+ const c = ["theme", "initOptions", "autoResize"], l = ["manualUpdate", "watchShallow"], p = {
17
7
  name: "ECharts",
18
8
  props: {
19
9
  options: {
@@ -51,7 +41,7 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
51
41
  }
52
42
  },
53
43
  created() {
54
- this.initOptionsWatcher(), g.forEach((t) => {
44
+ this.initOptionsWatcher(), c.forEach((t) => {
55
45
  this.$watch(
56
46
  t,
57
47
  () => {
@@ -59,7 +49,7 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
59
49
  },
60
50
  { deep: !0 }
61
51
  );
62
- }), u.forEach((t) => {
52
+ }), l.forEach((t) => {
63
53
  this.$watch(t, () => {
64
54
  this.initOptionsWatcher(), this.refresh();
65
55
  });
@@ -133,13 +123,13 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
133
123
  this.group && (e.group = this.group), e.setOption(t || this.manualOptions || this.options || {}, !0), Object.keys(this.$listeners).forEach((i) => {
134
124
  const h = this.$listeners[i];
135
125
  i.indexOf("zr:") === 0 ? e.getZr().on(i.slice(3), h) : e.on(i, h);
136
- }), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler = n(
126
+ }), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler = a(
137
127
  () => {
138
128
  this.lastArea === 0 ? (this.mergeOptions({}, !0), this.resize(), this.mergeOptions(this.options || this.manualOptions || {}, !0)) : this.resize(), this.lastArea = this.getArea();
139
129
  },
140
130
  100,
141
131
  { leading: !0 }
142
- ), o(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
132
+ ), n(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
143
133
  // Only recalculated when accessed from JavaScript.
144
134
  // Won't update DOM on value change because getters
145
135
  // don't depend on reactive values
@@ -171,14 +161,14 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
171
161
  ));
172
162
  },
173
163
  destroy() {
174
- this.autoResize && c(this.$el, this.__resizeHandler), this.dispose(), this.chart = null;
164
+ this.autoResize && o(this.$el, this.__resizeHandler), this.dispose(), this.chart = null;
175
165
  },
176
166
  refresh() {
177
167
  this.chart && (this.destroy(), this.init());
178
168
  }
179
169
  },
180
170
  connect(t) {
181
- a(t) || (t = t.map((e) => e.chart)), s.connect(t);
171
+ r(t) || (t = t.map((e) => e.chart)), s.connect(t);
182
172
  },
183
173
  disconnect(t) {
184
174
  s.disConnect(t);
@@ -193,24 +183,21 @@ const g = ["theme", "initOptions", "autoResize"], u = ["manualUpdate", "watchSha
193
183
  s.registerTheme(t, e);
194
184
  },
195
185
  graphic: s.graphic
196
- }, r = {};
197
- var _ = /* @__PURE__ */ d(
198
- f,
199
- l,
186
+ };
187
+ var g = function() {
188
+ var e = this, i = e._self._c;
189
+ return i("div", { staticClass: "echarts", style: { width: e.width, height: e.height } });
190
+ }, u = [], f = /* @__PURE__ */ d(
200
191
  p,
192
+ g,
193
+ u,
201
194
  !1,
202
- m,
195
+ null,
203
196
  null,
204
197
  null,
205
198
  null
206
199
  );
207
- function m(t) {
208
- for (let e in r)
209
- this[e] = r[e];
210
- }
211
- const z = /* @__PURE__ */ function() {
212
- return _.exports;
213
- }();
200
+ const M = f.exports;
214
201
  export {
215
- z as default
202
+ M as default
216
203
  };
@@ -1,50 +1,22 @@
1
- var d = (e, t, i) => new Promise((o, a) => {
2
- var h = (s) => {
1
+ var d = (i, e, t) => new Promise((o, r) => {
2
+ var l = (s) => {
3
3
  try {
4
- n(i.next(s));
5
- } catch (r) {
6
- a(r);
4
+ n(t.next(s));
5
+ } catch (a) {
6
+ r(a);
7
7
  }
8
- }, u = (s) => {
8
+ }, h = (s) => {
9
9
  try {
10
- n(i.throw(s));
11
- } catch (r) {
12
- a(r);
10
+ n(t.throw(s));
11
+ } catch (a) {
12
+ r(a);
13
13
  }
14
- }, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(h, u);
15
- n((i = i.apply(e, t)).next());
14
+ }, n = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(l, h);
15
+ n((t = t.apply(i, e)).next());
16
16
  });
17
- import { getComputedWidth as f, getComputedHeight as p } from "@web-utils/core";
18
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var v = function() {
20
- var e = this, t = e.$createElement, i = e._self._c || t;
21
- return i("Transition", {
22
- attrs: {
23
- name: "easy-popup"
24
- }
25
- }, [e.rendered ? i("div", {
26
- directives: [{
27
- name: "show",
28
- rawName: "v-show",
29
- value: e.visible,
30
- expression: "visible"
31
- }],
32
- ref: "container",
33
- class: ["easy-popup", {
34
- "easy-popup__visible": e.visible,
35
- "easy-popup__hide": !e.visible,
36
- "flex-row": e.flexRow,
37
- "flex-column": e.flexColumn
38
- }],
39
- style: e.position,
40
- on: {
41
- mouseleave: function(o) {
42
- e.hideOnMouseLeave && e.hide();
43
- }
44
- }
45
- }, [e._t("default")], 2) : e._e()]);
46
- }, y = [];
47
- const x = {
17
+ import { getComputedWidth as f, getComputedHeight as u } from "@web-utils/core";
18
+ import { n as p } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
19
+ const c = {
48
20
  name: "EasyPopup",
49
21
  props: {
50
22
  // 是否开启边界检测
@@ -93,8 +65,8 @@ const x = {
93
65
  return d(this, null, function* () {
94
66
  if (this.border) {
95
67
  yield this.$nextTick();
96
- const e = f(this.$refs.container), t = p(this.$refs.container), i = document.body.offsetWidth, o = document.body.offsetHeight;
97
- this.axis.x + this.offset.x + e >= i && (this.axis.x = i - e - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + t >= o && (this.axis.y = o - t - this.borderWidth - this.offset.y);
68
+ const i = f(this.$refs.container), e = u(this.$refs.container), t = document.body.offsetWidth, o = document.body.offsetHeight;
69
+ this.axis.x + this.offset.x + i >= t && (this.axis.x = t - i - this.borderWidth - this.offset.x), this.axis.y + this.offset.y + e >= o && (this.axis.y = o - e - this.borderWidth - this.offset.y);
98
70
  }
99
71
  });
100
72
  }
@@ -103,34 +75,36 @@ const x = {
103
75
  this.$el.remove();
104
76
  },
105
77
  methods: {
106
- show({ clientX: e, clientY: t }) {
107
- this.axis = { x: e, y: t }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
78
+ show({ clientX: i, clientY: e }) {
79
+ this.axis = { x: i, y: e }, this.visible || (document.addEventListener("click", this.doHide, !0), this.rendered = !0, this.visible = !0), this.appendToBody && document.body.appendChild(this.$el);
108
80
  },
109
81
  hide() {
110
82
  this.visible = !1, document.removeEventListener("click", this.doHide);
111
83
  },
112
- doHide(e) {
113
- this.interactive && this.$el.contains(e.target) || this.hide();
84
+ doHide(i) {
85
+ this.interactive && this.$el.contains(i.target) || this.hide();
114
86
  }
115
87
  }
116
- }, l = {};
117
- var _ = /* @__PURE__ */ c(
118
- x,
119
- v,
88
+ };
89
+ var y = function() {
90
+ var e = this, t = e._self._c;
91
+ return t("Transition", { attrs: { name: "easy-popup" } }, [e.rendered ? t("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }], ref: "container", class: [
92
+ "easy-popup",
93
+ { "easy-popup__visible": e.visible, "easy-popup__hide": !e.visible, "flex-row": e.flexRow, "flex-column": e.flexColumn }
94
+ ], style: e.position, on: { mouseleave: function(o) {
95
+ e.hideOnMouseLeave && e.hide();
96
+ } } }, [e._t("default")], 2) : e._e()]);
97
+ }, v = [], x = /* @__PURE__ */ p(
98
+ c,
120
99
  y,
100
+ v,
121
101
  !1,
122
- m,
102
+ null,
123
103
  null,
124
104
  null,
125
105
  null
126
106
  );
127
- function m(e) {
128
- for (let t in l)
129
- this[t] = l[t];
130
- }
131
- const g = /* @__PURE__ */ function() {
132
- return _.exports;
133
- }();
107
+ const w = x.exports;
134
108
  export {
135
- g as default
109
+ w as default
136
110
  };