@web-utils/component 2.70.0 → 3.0.1

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 (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -50,7 +50,7 @@ var r = function() {
50
50
  return [e._v(" " + e._s(e.title) + " ")];
51
51
  }, {
52
52
  title: e.title
53
- })], 2)]), t("ElCollapseTransition", [t("div", {
53
+ })], 2)]), t(c, [t("div", {
54
54
  directives: [{
55
55
  name: "show",
56
56
  rawName: "v-show",
@@ -70,7 +70,6 @@ var r = function() {
70
70
  }, d = [];
71
71
  const p = {
72
72
  name: "EgdCollapseItem",
73
- components: { ElCollapseTransition: c },
74
73
  componentName: "EgdCollapseItem",
75
74
  mixins: [a],
76
75
  inject: ["collapse"],
@@ -1,114 +1,25 @@
1
- var s = (e, l, t) => new Promise((i, r) => {
2
- var u = (o) => {
1
+ var l = (e, t, i) => new Promise((p, n) => {
2
+ var h = (o) => {
3
3
  try {
4
- a(t.next(o));
5
- } catch (n) {
6
- r(n);
4
+ s(i.next(o));
5
+ } catch (a) {
6
+ n(a);
7
7
  }
8
- }, c = (o) => {
8
+ }, f = (o) => {
9
9
  try {
10
- a(t.throw(o));
11
- } catch (n) {
12
- r(n);
10
+ s(i.throw(o));
11
+ } catch (a) {
12
+ n(a);
13
13
  }
14
- }, a = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(u, c);
15
- a((t = t.apply(e, l)).next());
14
+ }, s = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(h, f);
15
+ s((i = i.apply(e, t)).next());
16
16
  });
17
- import d from "element-ui/lib/dialog";
18
- import { dialogDrag as h } from "@web-utils/vue/directives/dialog-drag";
19
- import { getComputedHeight as f, isDef as m } from "@web-utils/core";
20
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- var y = function() {
22
- var e = this, l = e.$createElement, t = e._self._c || l;
23
- return t("Transition", {
24
- attrs: {
25
- name: "dialog-fade"
26
- },
27
- on: {
28
- "after-enter": e.afterEnter,
29
- "after-leave": e.afterLeave
30
- }
31
- }, [t("div", {
32
- directives: [{
33
- name: "show",
34
- rawName: "v-show",
35
- value: e.visible,
36
- expression: "visible"
37
- }, {
38
- name: "dialog-drag",
39
- rawName: "v-dialog-drag:[fullScreen]",
40
- value: {
41
- onMove: e.updatePopper
42
- },
43
- expression: "{ onMove: updatePopper }",
44
- arg: e.fullScreen
45
- }],
46
- staticClass: "el-dialog__wrapper",
47
- on: {
48
- click: function(i) {
49
- return i.target !== i.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
50
- }
51
- }
52
- }, [t("div", {
53
- ref: "dialog",
54
- class: ["el-dialog", "element-dialog", "el-dialog-resizeable", "normalize", {
55
- "is-fullscreen": e.fullScreen,
56
- "el-dialog__body-padding": e.bodyPadding,
57
- "el-dialog--center": e.center,
58
- "el-dialog--flex-row": e.flexRow,
59
- "el-dialog--flex-column": e.flexColumn
60
- }, e.customClass],
61
- style: Object.assign({}, e.style, {
62
- top: e.marginTop
63
- }),
64
- attrs: {
65
- role: "dialog",
66
- "aria-modal": "true",
67
- "aria-label": e.title || "dialog"
68
- }
69
- }, [t("div", {
70
- staticClass: "el-dialog__header"
71
- }, [e._t("title", function() {
72
- return [t("span", {
73
- staticClass: "el-dialog__title"
74
- }, [e._v(e._s(e.title))])];
75
- }), t("div", {
76
- staticClass: "header-button-wrapper"
77
- }, [e._t("header-button"), e.showFullScreen ? t("ElButton", {
78
- staticClass: "header-button",
79
- attrs: {
80
- type: "text",
81
- icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
82
- size: "medium",
83
- title: e.fullScreen ? "还原" : "最大化"
84
- },
85
- on: {
86
- click: e.toggleFullScreen
87
- }
88
- }) : e._e(), e.showClose ? t("ElButton", {
89
- staticClass: "header-button header-dialog-close",
90
- attrs: {
91
- "aria-label": "Close",
92
- type: "text",
93
- title: "关闭",
94
- icon: "el-icon-close",
95
- size: "medium"
96
- },
97
- on: {
98
- click: e.handleClose
99
- }
100
- }) : e._e()], 2)], 2), e.rendered ? t("div", {
101
- staticClass: "el-dialog__body",
102
- style: {
103
- height: e.fullScreen ? "100%" : e.height
104
- }
105
- }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? t("div", {
106
- staticClass: "el-dialog__footer"
107
- }, [e._t("footer", null, {
108
- handleClose: e.handleClose
109
- })], 2) : e._e()])])]);
110
- }, _ = [];
111
- const v = {
17
+ import r from "element-ui/lib/dialog";
18
+ import { dialogDrag as u } from "@web-utils/vue/directives/dialog-drag";
19
+ import { getComputedHeight as c, isDef as m } from "@web-utils/core";
20
+ import { s as y, r as g } from "../chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs";
21
+ import { n as $ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
22
+ const S = {
112
23
  props: {
113
24
  visible: {
114
25
  type: Boolean,
@@ -143,12 +54,12 @@ const v = {
143
54
  default: "76vh"
144
55
  }
145
56
  }
146
- }, C = {
57
+ }, B = {
147
58
  name: "ElementDialog",
148
59
  directives: {
149
- dialogDrag: h
60
+ dialogDrag: u
150
61
  },
151
- mixins: [...d.mixins || d.default.mixins, v],
62
+ mixins: [...r.mixins || r.default.mixins, S],
152
63
  props: {
153
64
  title: {
154
65
  type: String,
@@ -216,7 +127,7 @@ const v = {
216
127
  },
217
128
  watch: {
218
129
  visible(e) {
219
- return s(this, null, function* () {
130
+ return l(this, null, function* () {
220
131
  e ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), yield this.$nextTick(), this.$refs.dialog.scrollTop = 0, yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
221
132
  });
222
133
  },
@@ -232,7 +143,7 @@ const v = {
232
143
  );
233
144
  },
234
145
  mounted() {
235
- return s(this, null, function* () {
146
+ return l(this, null, function* () {
236
147
  this.visible && (this.rendered = !0, this.open(), yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el));
237
148
  });
238
149
  },
@@ -241,8 +152,8 @@ const v = {
241
152
  },
242
153
  methods: {
243
154
  computeTop() {
244
- return s(this, null, function* () {
245
- yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - f(this.$refs.dialog)) / 2 + (m(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
155
+ return l(this, null, function* () {
156
+ yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - c(this.$refs.dialog)) / 2 + (m(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
246
157
  });
247
158
  },
248
159
  toggleFullScreen() {
@@ -255,8 +166,8 @@ const v = {
255
166
  this.fullScreen = !1;
256
167
  },
257
168
  shouldShowFooter() {
258
- var e, l;
259
- return !!((l = (e = this.$scopedSlots).footer) != null && l.call(e));
169
+ var e, t;
170
+ return !!((t = (e = this.$scopedSlots).footer) != null && t.call(e));
260
171
  },
261
172
  handleWrapperClick() {
262
173
  this.closeOnClickModal && this.handleClose();
@@ -277,24 +188,24 @@ const v = {
277
188
  this.exitFullScreen(), this.$emit("closed");
278
189
  }
279
190
  }
280
- }, p = {};
281
- var S = /* @__PURE__ */ g(
282
- C,
191
+ }, d = {};
192
+ var C = /* @__PURE__ */ $(
193
+ B,
194
+ g,
283
195
  y,
284
- _,
285
196
  !1,
286
- b,
197
+ v,
287
198
  null,
288
199
  null,
289
200
  null
290
201
  );
291
- function b(e) {
292
- for (let l in p)
293
- this[l] = p[l];
202
+ function v(e) {
203
+ for (let t in d)
204
+ this[t] = d[t];
294
205
  }
295
- const E = /* @__PURE__ */ function() {
296
- return S.exports;
206
+ const F = /* @__PURE__ */ function() {
207
+ return C.exports;
297
208
  }();
298
209
  export {
299
- E as default
210
+ F as default
300
211
  };
@@ -1,23 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "empty-view",
6
- style: {
7
- fontSize: t.fontSize,
8
- height: t.height
9
- }
10
- }, [t._t("default", function() {
11
- return [n("div", {
12
- staticClass: "flex-column horizon-center"
13
- }, [t.showIcon ? n("i", {
14
- class: t.icon,
15
- style: {
16
- fontSize: t.iconSize
17
- }
18
- }) : t._e(), n("p", [t._v(t._s(t.emptyTips))])])];
19
- })], 2);
20
- }, l = [];
1
+ import { s as n, r as o } from "../chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs";
2
+ import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
3
  const r = {
22
4
  name: "EmptyView",
23
5
  props: {
@@ -46,24 +28,24 @@ const r = {
46
28
  default: "100%"
47
29
  }
48
30
  }
49
- }, i = {};
50
- var a = /* @__PURE__ */ o(
31
+ }, e = {};
32
+ var p = /* @__PURE__ */ i(
51
33
  r,
52
- s,
53
- l,
34
+ o,
35
+ n,
54
36
  !1,
55
- c,
37
+ s,
56
38
  null,
57
39
  null,
58
40
  null
59
41
  );
60
- function c(t) {
61
- for (let e in i)
62
- this[e] = i[e];
42
+ function s(a) {
43
+ for (let t in e)
44
+ this[t] = e[t];
63
45
  }
64
- const p = /* @__PURE__ */ function() {
65
- return a.exports;
46
+ const u = /* @__PURE__ */ function() {
47
+ return p.exports;
66
48
  }();
67
49
  export {
68
- p as default
50
+ u as default
69
51
  };
@@ -10,7 +10,7 @@ var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
10
10
  v.call(e, n) && s(t, n, e[n]);
11
11
  return t;
12
12
  }, c = (t, e) => f(t, _(e));
13
- import { g as h } from "../chunks/index.57f871af.mjs";
13
+ import { g as h } from "../chunks/index.d91bd77a.mjs";
14
14
  import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
15
15
  const d = {
16
16
  name: "FlexColumn",
@@ -10,7 +10,7 @@ var r = (t, e, l) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
10
10
  x.call(e, l) && r(t, l, e[l]);
11
11
  return t;
12
12
  }, f = (t, e) => c(t, v(e));
13
- import { g as m } from "../chunks/index.57f871af.mjs";
13
+ import { g as m } from "../chunks/index.d91bd77a.mjs";
14
14
  import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
15
15
  const h = {
16
16
  name: "FlexItem",
@@ -10,7 +10,7 @@ var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writab
10
10
  h.call(e, n) && s(t, n, e[n]);
11
11
  return t;
12
12
  }, c = (t, e) => f(t, _(e));
13
- import { g as C } from "../chunks/index.57f871af.mjs";
13
+ import { g as C } from "../chunks/index.d91bd77a.mjs";
14
14
  import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
15
15
  const x = {
16
16
  name: "FlexRow",
package/flow/index.mjs CHANGED
@@ -1,6 +1,71 @@
1
- import { s as l, r as c } from "../chunks/util.ae730cde.mjs";
2
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var h = function() {
1
+ import { s as i, t as d } from "../chunks/util.7844e2c2.mjs";
2
+ import { s as h, r as p } from "../chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs";
3
+ import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ const f = {
5
+ name: "FlowNode",
6
+ props: {
7
+ active: [String, Number],
8
+ index: [String, Number],
9
+ node: Object
10
+ },
11
+ data() {
12
+ return {
13
+ // 控制节点操作显示
14
+ mouseEnter: !1
15
+ };
16
+ },
17
+ computed: {
18
+ // 节点容器样式
19
+ flowNodeContainer: {
20
+ get() {
21
+ return {
22
+ position: "absolute",
23
+ width: "200px",
24
+ top: i(this.node.top),
25
+ left: i(this.node.left),
26
+ boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
27
+ backgroundColor: "transparent"
28
+ };
29
+ }
30
+ }
31
+ },
32
+ methods: {
33
+ // 鼠标进入
34
+ showDelete() {
35
+ this.mouseEnter = !0;
36
+ },
37
+ // 鼠标离开
38
+ hideDelete() {
39
+ this.mouseEnter = !1;
40
+ },
41
+ // 鼠标移动后抬起
42
+ changeNodeSite() {
43
+ this.node.left === this.$refs.node.style.left && this.node.top === this.$refs.node.style.top || this.$emit("changeNodeSite", {
44
+ index: this.index,
45
+ left: Number(this.$refs.node.style.left.replace("px", "")),
46
+ top: Number(this.$refs.node.style.top.replace("px", ""))
47
+ });
48
+ }
49
+ }
50
+ }, r = {};
51
+ var m = /* @__PURE__ */ c(
52
+ f,
53
+ p,
54
+ h,
55
+ !1,
56
+ g,
57
+ null,
58
+ null,
59
+ null
60
+ );
61
+ function g(t) {
62
+ for (let e in r)
63
+ this[e] = r[e];
64
+ }
65
+ const b = /* @__PURE__ */ function() {
66
+ return m.exports;
67
+ }();
68
+ var _ = function() {
4
69
  var t = this, e = t.$createElement, n = t._self._c || e;
5
70
  return n("div", {
6
71
  staticClass: "avue-flow",
@@ -12,38 +77,38 @@ var h = function() {
12
77
  }
13
78
  }, [n("div", {
14
79
  staticClass: "avue-grid"
15
- }), t._l(t.option.nodeList, function(i, o) {
16
- return [i.display ? t._e() : n("FlowNode", {
17
- key: o,
80
+ }), t._l(t.option.nodeList, function(o, s) {
81
+ return [o.display ? t._e() : n(b, {
82
+ key: s,
18
83
  attrs: {
19
- id: i.id,
20
- node: i,
21
- index: o,
84
+ id: o.id,
85
+ node: o,
86
+ index: s,
22
87
  active: t.active
23
88
  },
24
89
  on: {
25
90
  changeNodeSite: t.changeNodeSite
26
91
  },
27
92
  nativeOn: {
28
- click: function(s) {
29
- return t.handleClick(i);
93
+ click: function(l) {
94
+ return t.handleClick(o);
30
95
  }
31
96
  },
32
97
  scopedSlots: t._u([{
33
98
  key: "header",
34
- fn: function(s) {
35
- var a = s.node;
99
+ fn: function(l) {
100
+ var u = l.node;
36
101
  return [t._t("header", null, {
37
- node: a
102
+ node: u
38
103
  })];
39
104
  }
40
105
  }], null, !0)
41
106
  }, [t._t("default", null, {
42
- node: i
107
+ node: o
43
108
  })], 2)];
44
109
  })], 2)]);
45
- }, d = [];
46
- const f = {
110
+ }, j = [];
111
+ const L = {
47
112
  name: "Flow",
48
113
  props: {
49
114
  value: {
@@ -136,13 +201,13 @@ const f = {
136
201
  styleName() {
137
202
  return {
138
203
  position: "relative",
139
- width: l(this.width),
140
- height: l(this.height)
204
+ width: i(this.width),
205
+ height: i(this.height)
141
206
  };
142
207
  }
143
208
  },
144
209
  created() {
145
- this.id = c(), this.jsplumbSetting.Container = this.id;
210
+ this.id = d(), this.jsplumbSetting.Container = this.id;
146
211
  },
147
212
  mounted() {
148
213
  this.init();
@@ -159,8 +224,8 @@ const f = {
159
224
  // 是否具有该线
160
225
  hasLine(t, e) {
161
226
  for (let n = 0; n < this.data.lineList.length; n++) {
162
- const i = this.data.lineList[n];
163
- if (i.from === t && i.to === e)
227
+ const o = this.data.lineList[n];
228
+ if (o.from === t && o.to === e)
164
229
  return !0;
165
230
  }
166
231
  return !1;
@@ -181,8 +246,8 @@ const f = {
181
246
  },
182
247
  // 改变节点的位置
183
248
  changeNodeSite({ index: t, left: e, top: n }) {
184
- for (let i = 0; i < this.option.nodeList.length; i++)
185
- i === t && (this.$set(this.option.nodeList[i], "left", e), this.$set(this.option.nodeList[i], "top", n));
249
+ for (let o = 0; o < this.option.nodeList.length; o++)
250
+ o === t && (this.$set(this.option.nodeList[o], "left", e), this.$set(this.option.nodeList[o], "top", n));
186
251
  },
187
252
  // 删除节点
188
253
  deleteNode(t) {
@@ -247,10 +312,10 @@ const f = {
247
312
  });
248
313
  }), t.jsPlumb.bind("connection", function(e) {
249
314
  console.log("connection", e);
250
- const n = e.source.id, i = e.target.id;
315
+ const n = e.source.id, o = e.target.id;
251
316
  t.loadEasyFlowFinish && t.option.lineList.push({
252
317
  from: n,
253
- to: i
318
+ to: o
254
319
  });
255
320
  }), t.jsPlumb.bind("connectionDetached", function(e) {
256
321
  console.log("connectionDetached", e), t.deleteLine(e.sourceId, e.targetId);
@@ -260,32 +325,32 @@ const f = {
260
325
  console.log("contextmenu", e);
261
326
  }), t.jsPlumb.bind("beforeDrop", function(e) {
262
327
  console.log("beforeDrop", e);
263
- const n = e.sourceId, i = e.targetId;
264
- return n === i ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, i) ? (t.$message.error("不能重复连线"), !1) : t.hashOppositeLine(n, i) ? (t.$message.error("不能回环哦"), !1) : !0;
328
+ const n = e.sourceId, o = e.targetId;
329
+ return n === o ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, o) ? (t.$message.error("不能重复连线"), !1) : t.hashOppositeLine(n, o) ? (t.$message.error("不能回环哦"), !1) : !0;
265
330
  }), t.jsPlumb.bind("beforeDetach", function(e) {
266
331
  console.log("beforeDetach", e);
267
332
  });
268
333
  });
269
334
  }
270
335
  }
271
- }, r = {};
272
- var m = /* @__PURE__ */ u(
273
- f,
274
- h,
275
- d,
336
+ }, a = {};
337
+ var y = /* @__PURE__ */ c(
338
+ L,
339
+ _,
340
+ j,
276
341
  !1,
277
- p,
342
+ x,
278
343
  null,
279
344
  null,
280
345
  null
281
346
  );
282
- function p(t) {
283
- for (let e in r)
284
- this[e] = r[e];
347
+ function x(t) {
348
+ for (let e in a)
349
+ this[e] = a[e];
285
350
  }
286
- const j = /* @__PURE__ */ function() {
287
- return m.exports;
351
+ const S = /* @__PURE__ */ function() {
352
+ return y.exports;
288
353
  }();
289
354
  export {
290
- j as default
355
+ S as default
291
356
  };