@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
@@ -14,12 +14,16 @@ var c = (t, e, o) => new Promise((r, s) => {
14
14
  }, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
17
- import { hasOwn as d, toStringArray as b, animate as v, isInContainer as _ } from "@web-utils/core";
18
- import { merge as g } from "@web-utils/integrations/lodash";
19
- import y from "@web-utils/component/resize-observer";
17
+ import { hasOwn as m, toStringArray as v, animate as g, isInContainer as y } from "@web-utils/core";
18
+ import { merge as w } from "@web-utils/integrations/lodash";
19
+ import x from "@web-utils/component/resize-observer";
20
20
  import "@web-utils/component/resize-observer/style.css";
21
- import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
22
- var x = function() {
21
+ import { _ as $, a as S } from "../chunks/FormItemGroup.41daddb6.mjs";
22
+ import { _ as F } from "../chunks/ResizeObserver.60f728f0.mjs";
23
+ import { _ as u } from "../chunks/Toolbar.5c539dbb.mjs";
24
+ import { _ as p } from "../chunks/EmptyView.e2430422.mjs";
25
+ import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
26
+ var B = function() {
23
27
  var t = this, e = t.$createElement, o = t._self._c || e;
24
28
  return o("div", {
25
29
  class: ["form-view", t.className]
@@ -32,7 +36,7 @@ var x = function() {
32
36
  }],
33
37
  staticClass: "form-view-toolbar"
34
38
  }, [t._t("form-view-toolbar", function() {
35
- return [o("Toolbar", t._g(t._b({
39
+ return [o(u, t._g(t._b({
36
40
  on: {
37
41
  edit: t.onEdit
38
42
  },
@@ -84,12 +88,12 @@ var x = function() {
84
88
  }, [t.title ? o("div", {
85
89
  staticClass: "form-view-title"
86
90
  }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
87
- return [o("EmptyView", {
91
+ return [o(p, {
88
92
  attrs: {
89
93
  "empty-tips": "请添加表单内容"
90
94
  }
91
95
  })];
92
- }), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
96
+ }), t.footerBarButtons.length ? o(u, t._g(t._b({
93
97
  attrs: {
94
98
  footer: ""
95
99
  },
@@ -125,12 +129,12 @@ var x = function() {
125
129
  }, [t.title ? o("div", {
126
130
  staticClass: "form-view-title"
127
131
  }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
128
- return [o("EmptyView", {
132
+ return [o(p, {
129
133
  attrs: {
130
134
  "empty-tips": "请添加表单内容"
131
135
  }
132
136
  })];
133
- }), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
137
+ }), t.footerBarButtons.length ? o(u, t._g(t._b({
134
138
  attrs: {
135
139
  footer: ""
136
140
  },
@@ -166,7 +170,7 @@ var x = function() {
166
170
  }
167
171
  }, [o("div", {
168
172
  staticClass: "form-content"
169
- }, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o("FormItemGroup", {
173
+ }, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o($, {
170
174
  attrs: {
171
175
  "block-title": "流程日志"
172
176
  }
@@ -177,7 +181,7 @@ var x = function() {
177
181
  "show-title": !1,
178
182
  "business-key": t.$parent.bizKey
179
183
  }
180
- })], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
184
+ })], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o(F, {
181
185
  on: {
182
186
  notify: t.onFormResize
183
187
  }
@@ -199,14 +203,14 @@ var x = function() {
199
203
  }
200
204
  }
201
205
  }, [t._v(" " + t._s(r.blockTitle) + " ")]);
202
- }), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
206
+ }), 0)]) : t._e(), t.isFormLoading ? o(S, {
203
207
  attrs: {
204
208
  "icon-size": "34px",
205
209
  "font-size": "16px"
206
210
  }
207
211
  }) : t._e()], 1);
208
- }, $ = [];
209
- const p = [
212
+ }, C = [];
213
+ const b = [
210
214
  "back",
211
215
  "create",
212
216
  "save",
@@ -226,17 +230,17 @@ const p = [
226
230
  "disabled",
227
231
  "reload",
228
232
  "slot"
229
- ], S = p.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
233
+ ], L = b.map((t) => `${t}-down`), I = ["back", "withdraw", "edit"], h = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], d = (t, e) => {
230
234
  if (t.classList.contains(e))
231
235
  return t;
232
236
  let o = t.parentNode;
233
237
  for (; o && !o.classList.contains(e); )
234
238
  o = o.parentNode;
235
239
  return o.classList.contains(e) ? o : null;
236
- }, k = {
240
+ }, O = {
237
241
  name: "FormView",
238
242
  components: {
239
- ResizeObserver: y
243
+ ResizeObserver: x
240
244
  },
241
245
  inject: {
242
246
  flowContext: {
@@ -287,19 +291,19 @@ const p = [
287
291
  },
288
292
  computed: {
289
293
  isFormLoading() {
290
- return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
294
+ return this.loading || m(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
291
295
  },
292
296
  toolbarProps() {
293
297
  var r;
294
- const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = g({}, this.toolbarAttrs, t);
295
- return o.buttons = e || ["back"], o.buttons = b(o.buttons), o;
298
+ const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = w({}, this.toolbarAttrs, t);
299
+ return o.buttons = e || ["back"], o.buttons = v(o.buttons), o;
296
300
  },
297
301
  toolbarButtons() {
298
- return this.toolbarProps.buttons.filter((t) => !m.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
302
+ return this.toolbarProps.buttons.filter((t) => !h.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
299
303
  },
300
304
  footerBarButtons() {
301
305
  let t = this.toolbarProps.buttons.filter(
302
- (e) => !F.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)
306
+ (e) => !I.includes(e) && (h.includes(e) || e.indexOf(":down") > -1)
303
307
  ).map((e) => e.replace(":down", ""));
304
308
  return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
305
309
  }
@@ -307,12 +311,12 @@ const p = [
307
311
  created() {
308
312
  this.$on("FormView.addGroup", (t) => {
309
313
  t && (this.activeIndex === -1 && (this.activeIndex = 0), this.groups.push(t), this.groups = this.groups.sort((e, o) => {
310
- const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
314
+ const r = d(e.$el, "form-card"), s = d(o.$el, "form-card");
311
315
  if (r === s) {
312
316
  const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
313
317
  return n - l;
314
318
  } else {
315
- const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
319
+ const n = d(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
316
320
  return l - a;
317
321
  }
318
322
  }), t.active && (this.activeIndex = this.groups.indexOf(t), this.navItemClick(t, this.activeIndex)));
@@ -330,10 +334,10 @@ const p = [
330
334
  },
331
335
  methods: {
332
336
  getToolbarSlotKeys() {
333
- return Object.keys(this.$scopedSlots).filter((t) => p.includes(t));
337
+ return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
334
338
  },
335
339
  getFooterSlotKeys() {
336
- return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
340
+ return Object.keys(this.$scopedSlots).filter((t) => L.includes(t));
337
341
  },
338
342
  getFooterSlotKey(t) {
339
343
  return t.replace("-down", "");
@@ -342,7 +346,7 @@ const p = [
342
346
  this.showNav = t > 1500;
343
347
  },
344
348
  onEdit() {
345
- !this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
349
+ !this.toolbarListeners.edit && m(this.$parent, "disabled") && (this.$parent.disabled = !1);
346
350
  },
347
351
  navItemClick(t, e) {
348
352
  return c(this, null, function* () {
@@ -350,13 +354,13 @@ const p = [
350
354
  });
351
355
  },
352
356
  activeFormItemGroup(t, e) {
353
- this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10, v(t.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = e;
357
+ this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10, g(t.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = e;
354
358
  },
355
359
  tryActive() {
356
360
  return c(this, null, function* () {
357
361
  if (this.showNav) {
358
362
  for (let t = 0; t < this.groups.length; t++)
359
- if (_(this.groups[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
363
+ if (y(this.groups[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
360
364
  this.activeIndex = t;
361
365
  break;
362
366
  }
@@ -370,24 +374,24 @@ const p = [
370
374
  t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
371
375
  }
372
376
  }
373
- }, h = {};
374
- var B = /* @__PURE__ */ w(
375
- k,
376
- x,
377
- $,
378
- !1,
377
+ }, _ = {};
378
+ var N = /* @__PURE__ */ k(
379
+ O,
380
+ B,
379
381
  C,
382
+ !1,
383
+ T,
380
384
  null,
381
385
  null,
382
386
  null
383
387
  );
384
- function C(t) {
385
- for (let e in h)
386
- this[e] = h[e];
388
+ function T(t) {
389
+ for (let e in _)
390
+ this[e] = _[e];
387
391
  }
388
- const z = /* @__PURE__ */ function() {
389
- return B.exports;
392
+ const q = /* @__PURE__ */ function() {
393
+ return N.exports;
390
394
  }();
391
395
  export {
392
- z as default
396
+ q as default
393
397
  };
@@ -1,106 +1,110 @@
1
- import { p as a, e as o } from "../chunks/event.b5d855dd.mjs";
2
- import { i as c } from "../chunks/util.ae730cde.mjs";
3
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var p = function() {
5
- var t = this, n = t.$createElement, e = t._self._c || n;
6
- return e("div", {
1
+ import { p as l, e as c } from "../chunks/event.4377230d.mjs";
2
+ import { v as p } from "../chunks/util.7844e2c2.mjs";
3
+ import o from "element-ui/lib/button";
4
+ import u from "element-ui/lib/input";
5
+ import _ from "element-ui/lib/link";
6
+ import m from "element-ui/lib/tooltip";
7
+ import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
8
+ var y = function() {
9
+ var e = this, n = e.$createElement, t = e._self._c || n;
10
+ return t("div", {
7
11
  staticClass: "avue-array"
8
- }, [t.text ? e("ElButton", {
12
+ }, [e.text ? t(o, {
9
13
  attrs: {
10
14
  type: "primary",
11
15
  icon: "el-icon-plus",
12
16
  circle: "",
13
- size: t.size,
14
- disabled: t.disabled
17
+ size: e.size,
18
+ disabled: e.disabled
15
19
  },
16
20
  on: {
17
- click: function(i) {
18
- return t.add();
21
+ click: function(r) {
22
+ return e.add();
19
23
  }
20
24
  }
21
- }) : t._e(), t._l(t.text, function(i, r) {
22
- return e("div", {
23
- key: r,
25
+ }) : e._e(), e._l(e.text, function(r, i) {
26
+ return t("div", {
27
+ key: i,
24
28
  staticClass: "avue-array__item"
25
- }, [e("div", {
29
+ }, [t("div", {
26
30
  staticClass: "avue-array__input"
27
- }, [e("ElTooltip", {
31
+ }, [t(m, {
28
32
  attrs: {
29
33
  placement: "bottom",
30
- disabled: !t.isImg && !t.isUrl || !!i
34
+ disabled: !e.isImg && !e.isUrl || !!r
31
35
  },
32
- scopedSlots: t._u([{
36
+ scopedSlots: e._u([{
33
37
  key: "content",
34
38
  fn: function() {
35
- return [e("div", [t.isImg ? e(t.isMediaType(i), {
39
+ return [t("div", [e.isImg ? t(e.isMediaType(r), {
36
40
  tag: "Component",
37
41
  staticStyle: {
38
42
  width: "200px"
39
43
  },
40
44
  attrs: {
41
- src: i,
45
+ src: r,
42
46
  controls: "controls"
43
47
  },
44
48
  on: {
45
49
  click: function(s) {
46
- return t.openImg(r);
50
+ return e.openImg(i);
47
51
  }
48
52
  }
49
- }) : t.isUrl ? e("ElLink", {
53
+ }) : e.isUrl ? t(_, {
50
54
  attrs: {
51
55
  type: "primary",
52
- href: i,
53
- target: t.target
56
+ href: r,
57
+ target: e.target
54
58
  }
55
- }, [t._v(" " + t._s(i) + " ")]) : t._e()], 1)];
59
+ }, [e._v(" " + e._s(r) + " ")]) : e._e()], 1)];
56
60
  },
57
61
  proxy: !0
58
62
  }], null, !0)
59
- }, [e("ElInput", {
63
+ }, [t(u, {
60
64
  attrs: {
61
- size: t.size,
62
- placeholder: t.placeholder,
63
- disabled: t.disabled
65
+ size: e.size,
66
+ placeholder: e.placeholder,
67
+ disabled: e.disabled
64
68
  },
65
69
  model: {
66
- value: t.text[r],
70
+ value: e.text[i],
67
71
  callback: function(s) {
68
- t.$set(t.text, r, s);
72
+ e.$set(e.text, i, s);
69
73
  },
70
74
  expression: "text[index]"
71
75
  }
72
- })], 1), t.disabled || t.readonly || t.alone ? t._e() : [t.isLimit ? t._e() : e("ElButton", {
76
+ })], 1), e.disabled || e.readonly || e.alone ? e._e() : [e.isLimit ? e._e() : t(o, {
73
77
  attrs: {
74
78
  type: "primary",
75
79
  icon: "el-icon-plus",
76
80
  circle: "",
77
- size: t.size,
78
- disabled: t.disabled
81
+ size: e.size,
82
+ disabled: e.disabled
79
83
  },
80
84
  on: {
81
85
  click: function(s) {
82
- return t.add(r);
86
+ return e.add(i);
83
87
  }
84
88
  }
85
- }), e("ElButton", {
89
+ }), t(o, {
86
90
  attrs: {
87
91
  type: "danger",
88
92
  icon: "el-icon-minus",
89
93
  circle: "",
90
- size: t.size,
91
- disabled: t.disabled
94
+ size: e.size,
95
+ disabled: e.disabled
92
96
  },
93
97
  on: {
94
98
  click: function(s) {
95
- return t.remove(r);
99
+ return e.remove(i);
96
100
  }
97
101
  }
98
102
  })]], 2)]);
99
103
  })], 2);
100
- }, d = [];
101
- const _ = {
104
+ }, v = [];
105
+ const f = {
102
106
  name: "FyArray",
103
- mixins: [a, o],
107
+ mixins: [l, c],
104
108
  props: {
105
109
  fileType: String,
106
110
  alone: Boolean,
@@ -122,37 +126,37 @@ const _ = {
122
126
  }
123
127
  },
124
128
  methods: {
125
- isMediaType(t) {
126
- return c(t, this.fileType);
129
+ isMediaType(e) {
130
+ return p(e, this.fileType);
127
131
  },
128
- add(t) {
129
- this.text.splice(t + 1, 0, "");
132
+ add(e) {
133
+ this.text.splice(e + 1, 0, "");
130
134
  },
131
- remove(t) {
132
- this.text.splice(t, 1);
135
+ remove(e) {
136
+ this.text.splice(e, 1);
133
137
  },
134
138
  openImg() {
135
- this.text.map((t) => ({ thumbUrl: t, url: t, type: this.fileType }));
139
+ this.text.map((e) => ({ thumbUrl: e, url: e, type: this.fileType }));
136
140
  }
137
141
  }
138
- }, l = {};
139
- var m = /* @__PURE__ */ u(
140
- _,
141
- p,
142
- d,
143
- !1,
142
+ }, a = {};
143
+ var h = /* @__PURE__ */ d(
144
+ f,
144
145
  y,
146
+ v,
147
+ !1,
148
+ g,
145
149
  null,
146
150
  null,
147
151
  null
148
152
  );
149
- function y(t) {
150
- for (let n in l)
151
- this[n] = l[n];
153
+ function g(e) {
154
+ for (let n in a)
155
+ this[n] = a[n];
152
156
  }
153
- const b = /* @__PURE__ */ function() {
154
- return m.exports;
157
+ const I = /* @__PURE__ */ function() {
158
+ return h.exports;
155
159
  }();
156
160
  export {
157
- b as default
161
+ I as default
158
162
  };
@@ -1,8 +1,9 @@
1
- import { p as d, e as u } from "../chunks/event.b5d855dd.mjs";
2
- import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var h = function() {
1
+ import { p as d, e as p } from "../chunks/event.4377230d.mjs";
2
+ import u from "element-ui/lib/cascader";
3
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var f = function() {
4
5
  var e = this, l = e.$createElement, s = e._self._c || l;
5
- return s("ElCascader", {
6
+ return s(u, {
6
7
  attrs: {
7
8
  options: e.dic,
8
9
  placeholder: e.placeholder,
@@ -43,10 +44,10 @@ var h = function() {
43
44
  expression: "text"
44
45
  }
45
46
  });
46
- }, f = [];
47
- const y = {
47
+ }, y = [];
48
+ const v = {
48
49
  name: "FyCascader",
49
- mixins: [d, u],
50
+ mixins: [d, p],
50
51
  props: {
51
52
  checkStrictly: {
52
53
  type: Boolean,
@@ -110,10 +111,10 @@ const y = {
110
111
  }
111
112
  }
112
113
  }, o = {};
113
- var v = /* @__PURE__ */ p(
114
- y,
115
- h,
114
+ var m = /* @__PURE__ */ h(
115
+ v,
116
116
  f,
117
+ y,
117
118
  !1,
118
119
  _,
119
120
  null,
@@ -124,9 +125,9 @@ function _(e) {
124
125
  for (let l in o)
125
126
  this[l] = o[l];
126
127
  }
127
- const g = /* @__PURE__ */ function() {
128
- return v.exports;
128
+ const z = /* @__PURE__ */ function() {
129
+ return m.exports;
129
130
  }();
130
131
  export {
131
- g as default
132
+ z as default
132
133
  };
@@ -1,10 +1,12 @@
1
- import { p as c, e as i } from "../chunks/event.b5d855dd.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var r = function() {
4
- var e = this, t = e.$createElement, l = e._self._c || t;
1
+ import { p as i, e as o } from "../chunks/event.4377230d.mjs";
2
+ import s from "element-ui/lib/checkbox";
3
+ import r from "element-ui/lib/checkbox-group";
4
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ var d = function() {
6
+ var e = this, n = e.$createElement, l = e._self._c || n;
5
7
  return l("div", {
6
8
  staticClass: "avue-checkbox"
7
- }, [e.all ? l("ElCheckbox", {
9
+ }, [e.all ? l(s, {
8
10
  attrs: {
9
11
  disabled: e.disabled,
10
12
  indeterminate: e.isIndeterminate
@@ -14,12 +16,12 @@ var r = function() {
14
16
  },
15
17
  model: {
16
18
  value: e.checkAll,
17
- callback: function(n) {
18
- e.checkAll = n;
19
+ callback: function(t) {
20
+ e.checkAll = t;
19
21
  },
20
22
  expression: "checkAll"
21
23
  }
22
- }, [e._v(" 全选 ")]) : e._e(), l("ElCheckboxGroup", {
24
+ }, [e._v(" 全选 ")]) : e._e(), l(r, {
23
25
  attrs: {
24
26
  disabled: e.disabled,
25
27
  size: e.size,
@@ -30,34 +32,37 @@ var r = function() {
30
32
  change: e.handleCheckChange
31
33
  },
32
34
  nativeOn: {
33
- click: function(n) {
35
+ click: function(t) {
34
36
  return e.handleClick.apply(null, arguments);
35
37
  }
36
38
  },
37
39
  model: {
38
40
  value: e.text,
39
- callback: function(n) {
40
- e.text = n;
41
+ callback: function(t) {
42
+ e.text = t;
41
43
  },
42
44
  expression: "text"
43
45
  }
44
- }, e._l(e.dic, function(n, s) {
46
+ }, e._l(e.dic, function(t, c) {
45
47
  return l(e.componentName, {
46
- key: s,
48
+ key: c,
47
49
  tag: "Component",
48
50
  attrs: {
49
- label: n[e.valueKey],
51
+ label: t[e.valueKey],
50
52
  border: e.border,
51
53
  size: e.size,
52
54
  readonly: e.readonly,
53
- disabled: n[e.disabledKey]
55
+ disabled: t[e.disabledKey]
54
56
  }
55
- }, [e._v(" " + e._s(n[e.labelKey]) + " ")]);
57
+ }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
56
58
  }), 1)], 1);
57
- }, h = [];
58
- const d = {
59
+ }, u = [];
60
+ const m = {
59
61
  name: "FyCheckbox",
60
- mixins: [c, i],
62
+ components: {
63
+ ElCheckbox: s
64
+ },
65
+ mixins: [i, o],
61
66
  props: {
62
67
  all: {
63
68
  type: Boolean,
@@ -84,34 +89,34 @@ const d = {
84
89
  },
85
90
  methods: {
86
91
  handleCheckAll(e) {
87
- this.all && (this.text = e ? this.dic.map((t) => t[this.valueKey]) : [], this.isIndeterminate = !1);
92
+ this.all && (this.text = e ? this.dic.map((n) => n[this.valueKey]) : [], this.isIndeterminate = !1);
88
93
  },
89
94
  handleCheckChange() {
90
95
  const e = this.text;
91
96
  if (!this.all)
92
97
  return;
93
- const t = e.length, l = this.dic.length;
94
- this.checkAll = t === l, this.isIndeterminate = t > 0 && t < l;
98
+ const n = e.length, l = this.dic.length;
99
+ this.checkAll = n === l, this.isIndeterminate = n > 0 && n < l;
95
100
  }
96
101
  }
97
102
  }, a = {};
98
- var u = /* @__PURE__ */ o(
103
+ var _ = /* @__PURE__ */ h(
104
+ m,
99
105
  d,
100
- r,
101
- h,
106
+ u,
102
107
  !1,
103
- _,
108
+ p,
104
109
  null,
105
110
  null,
106
111
  null
107
112
  );
108
- function _(e) {
109
- for (let t in a)
110
- this[t] = a[t];
113
+ function p(e) {
114
+ for (let n in a)
115
+ this[n] = a[n];
111
116
  }
112
- const v = /* @__PURE__ */ function() {
113
- return u.exports;
117
+ const C = /* @__PURE__ */ function() {
118
+ return _.exports;
114
119
  }();
115
120
  export {
116
- v as default
121
+ C as default
117
122
  };
package/fy-code/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import s from "element-ui/lib/scrollbar";
2
- import { s as o } from "../chunks/util.ae730cde.mjs";
3
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var i = function() {
1
+ import { s as o } from "../chunks/util.7844e2c2.mjs";
2
+ import r from "element-ui/lib/scrollbar";
3
+ import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var l = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
6
6
  return n("div", {
7
7
  staticClass: "avue-code"
8
- }, [n("ElScrollbar", {
8
+ }, [n(r, {
9
9
  style: t.styleName
10
10
  }, [n("pre", [t._v(" "), n("code", {
11
11
  ref: "container",
@@ -17,9 +17,6 @@ var i = function() {
17
17
  }, a = [];
18
18
  const c = {
19
19
  name: "FyCode",
20
- components: {
21
- ElScrollbar: s
22
- },
23
20
  props: {
24
21
  height: {
25
22
  type: Number,
@@ -43,10 +40,10 @@ const c = {
43
40
  methods: {
44
41
  setPx: o
45
42
  }
46
- }, r = {};
47
- var h = /* @__PURE__ */ l(
43
+ }, s = {};
44
+ var _ = /* @__PURE__ */ i(
48
45
  c,
49
- i,
46
+ l,
50
47
  a,
51
48
  !1,
52
49
  u,
@@ -55,11 +52,11 @@ var h = /* @__PURE__ */ l(
55
52
  null
56
53
  );
57
54
  function u(t) {
58
- for (let e in r)
59
- this[e] = r[e];
55
+ for (let e in s)
56
+ this[e] = s[e];
60
57
  }
61
58
  const m = /* @__PURE__ */ function() {
62
- return h.exports;
59
+ return _.exports;
63
60
  }();
64
61
  export {
65
62
  m as default