@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
package/fy-tree/index.mjs CHANGED
@@ -1,162 +1,11 @@
1
1
  import { s as d, o as l, a as r } from "../chunks/util.ae730cde.mjs";
2
- import { p as u } from "../chunks/permission.ce5d2121.mjs";
3
- import { isBlank as p } from "@web-utils/core";
4
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var m = function() {
6
- var e = this, i = e.$createElement, t = e._self._c || i;
7
- return t("div", {
8
- staticClass: "avue-tree"
9
- }, [e.optVal(e.option.filter, !0) ? t("div", {
10
- staticClass: "avue-tree__filter"
11
- }, [t("ElInput", {
12
- attrs: {
13
- placeholder: e.optVal(e.option.filterText, "输入关键字进行过滤"),
14
- size: e.size
15
- },
16
- model: {
17
- value: e.filterValue,
18
- callback: function(n) {
19
- e.filterValue = n;
20
- },
21
- expression: "filterValue"
22
- }
23
- }), e.optVal(e.option.addBtn, !0) ? t("ElButton", {
24
- directives: [{
25
- name: "permission",
26
- rawName: "v-permission",
27
- value: e.getPermission("addBtn"),
28
- expression: "getPermission('addBtn')"
29
- }],
30
- attrs: {
31
- size: e.size,
32
- icon: "el-icon-plus"
33
- },
34
- on: {
35
- click: e.parentAdd
36
- }
37
- }) : e._t("addBtn")], 2) : e._e(), t("ElScrollbar", {
38
- staticClass: "avue-tree__content"
39
- }, [t("ElTree", {
40
- directives: [{
41
- name: "loading",
42
- rawName: "v-loading",
43
- value: e.loading,
44
- expression: "loading"
45
- }],
46
- ref: "tree",
47
- attrs: {
48
- data: e.data,
49
- lazy: e.lazy,
50
- load: e.treeLoad,
51
- props: e.treeProps,
52
- "icon-class": e.iconClass,
53
- indent: e.indent,
54
- "highlight-current": !e.multiple,
55
- "show-checkbox": e.multiple,
56
- accordion: e.accordion,
57
- "node-key": e.valueKey,
58
- "check-strictly": e.checkStrictly,
59
- "check-on-click-node": e.checkOnClickNode,
60
- "filter-node-method": e.filterNode,
61
- "expand-on-click-node": e.expandOnClickNode,
62
- "default-expand-all": e.defaultExpandAll,
63
- "default-expanded-keys": e.defaultExpandedKeys
64
- },
65
- on: {
66
- "check-change": e.handleCheckChange,
67
- "node-click": e.nodeClick,
68
- "node-contextmenu": e.nodeContextmenu
69
- },
70
- scopedSlots: e._u([{
71
- key: "default",
72
- fn: function(n) {
73
- var o = n.node, s = n.data;
74
- return [e._t("default", function() {
75
- return [t("span", {
76
- staticClass: "el-tree-node__label"
77
- }, [t("span", [e._v(e._s(o.label))])])];
78
- }, {
79
- node: o,
80
- data: s
81
- })];
82
- }
83
- }], null, !0)
84
- })], 1), e.client.show && e.menu ? t("div", {
85
- staticClass: "el-cascader-panel is-bordered avue-tree__menu",
86
- style: e.styleName,
87
- on: {
88
- click: function(n) {
89
- e.client.show = !1;
90
- }
91
- }
92
- }, [e.optVal(e.option.addBtn, !0) ? t("div", {
93
- directives: [{
94
- name: "permission",
95
- rawName: "v-permission",
96
- value: e.getPermission("addBtn"),
97
- expression: "getPermission('addBtn')"
98
- }],
99
- staticClass: "avue-tree__item",
100
- on: {
101
- click: e.rowAdd
102
- }
103
- }, [e._v(" " + e._s(e.menuIcon("addBtn")) + " ")]) : e._e(), e.optVal(e.option.editBtn, !0) ? t("div", {
104
- directives: [{
105
- name: "permission",
106
- rawName: "v-permission",
107
- value: e.getPermission("editBtn"),
108
- expression: "getPermission('editBtn')"
109
- }],
110
- staticClass: "avue-tree__item",
111
- on: {
112
- click: e.rowEdit
113
- }
114
- }, [e._v(" " + e._s(e.menuIcon("editBtn")) + " ")]) : e._e(), e.optVal(e.option.delBtn, !0) ? t("div", {
115
- directives: [{
116
- name: "permission",
117
- rawName: "v-permission",
118
- value: e.getPermission("delBtn"),
119
- expression: "getPermission('delBtn')"
120
- }],
121
- staticClass: "avue-tree__item",
122
- on: {
123
- click: e.rowRemove
124
- }
125
- }, [e._v(" " + e._s(e.menuIcon("delBtn")) + " ")]) : e._e(), e._t("menu", null, {
126
- node: e.node
127
- })], 2) : e._e(), e.box ? t("div", [t("ElementDialog", {
128
- attrs: {
129
- title: e.node[e.labelKey] || e.title,
130
- visible: e.box,
131
- "before-close": e.hide,
132
- width: e.optVal(e.option.dialogWidth, "50%")
133
- },
134
- on: {
135
- "update:visible": function(n) {
136
- e.box = n;
137
- }
138
- }
139
- }, [t("FyForm", {
140
- ref: "form",
141
- attrs: {
142
- option: e.formOption
143
- },
144
- on: {
145
- submit: e.handleSubmit
146
- },
147
- model: {
148
- value: e.form,
149
- callback: function(n) {
150
- e.form = n;
151
- },
152
- expression: "form"
153
- }
154
- })], 1)], 1) : e._e()], 1);
155
- }, y = [];
156
- const v = {
2
+ import { p as h } from "../chunks/permission.ce5d2121.mjs";
3
+ import { isBlank as u } from "@web-utils/core";
4
+ import { n as p } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
5
+ const f = {
157
6
  name: "FyTree",
158
7
  directives: {
159
- permission: u
8
+ permission: h
160
9
  },
161
10
  props: {
162
11
  indent: Number,
@@ -279,14 +128,14 @@ const v = {
279
128
  }
280
129
  },
281
130
  watch: {
282
- filterValue(e) {
283
- this.$refs.tree.filter(e);
131
+ filterValue(t) {
132
+ this.$refs.tree.filter(t);
284
133
  },
285
- value(e) {
286
- this.form = e;
134
+ value(t) {
135
+ this.form = t;
287
136
  },
288
- form(e) {
289
- this.$emit("input", e), this.$emit("change", e);
137
+ form(t) {
138
+ this.$emit("input", t), this.$emit("change", t);
290
139
  }
291
140
  },
292
141
  mounted() {
@@ -296,14 +145,14 @@ const v = {
296
145
  },
297
146
  methods: {
298
147
  optVal: l,
299
- hideClient(e) {
300
- this.$el.contains(e.target) || (this.client.show = !1);
148
+ hideClient(t) {
149
+ this.$el.contains(t.target) || (this.client.show = !1);
301
150
  },
302
- menuIcon(e) {
303
- return l(this.option[`${e}Text`], e);
151
+ menuIcon(t) {
152
+ return l(this.option[`${t}Text`], t);
304
153
  },
305
- getPermission(e) {
306
- return typeof this.permission == "function" ? this.permission(e, this.node.data || {}) : p(this.permission[e]) ? !0 : this.permission[e];
154
+ getPermission(t) {
155
+ return typeof this.permission == "function" ? this.permission(t, this.node.data || {}) : u(this.permission[t]) ? !0 : this.permission[t];
307
156
  },
308
157
  initFun() {
309
158
  [
@@ -325,50 +174,50 @@ const v = {
325
174
  "append",
326
175
  "insertBefore",
327
176
  "insertAfter"
328
- ].forEach((e) => {
329
- this[e] = this.$refs.tree[e];
177
+ ].forEach((t) => {
178
+ this[t] = this.$refs.tree[t];
330
179
  });
331
180
  },
332
- nodeContextmenu(e, i, t) {
333
- this.node = t, this.client.x = e.clientX, this.client.y = e.clientY, this.client.show = !0;
181
+ nodeContextmenu(t, e, i) {
182
+ this.node = i, this.client.x = t.clientX, this.client.y = t.clientY, this.client.show = !0;
334
183
  },
335
- handleCheckChange(e, i, t) {
336
- this.$emit("check-change", e, i, t);
184
+ handleCheckChange(t, e, i) {
185
+ this.$emit("check-change", t, e, i);
337
186
  },
338
- handleSubmit(e, i) {
339
- this.addFlag ? this.save(e, i) : this.update(e, i);
187
+ handleSubmit(t, e) {
188
+ this.addFlag ? this.save(t, e) : this.update(t, e);
340
189
  },
341
- nodeClick(e, i, t) {
342
- this.client.show = !1, this.$emit("node-click", e, i, t);
190
+ nodeClick(t, e, i) {
191
+ this.client.show = !1, this.$emit("node-click", t, e, i);
343
192
  },
344
- filterNode(e, i) {
345
- return typeof this.filterNodeMethod == "function" ? this.filterNodeMethod(e, i) : e ? i[this.labelKey].indexOf(e) !== -1 : !0;
193
+ filterNode(t, e) {
194
+ return typeof this.filterNodeMethod == "function" ? this.filterNodeMethod(t, e) : t ? e[this.labelKey].indexOf(t) !== -1 : !0;
346
195
  },
347
- hide(e) {
348
- const i = () => {
349
- e && e(), this.node = {}, this.form = {}, this.box = !1;
196
+ hide(t) {
197
+ const e = () => {
198
+ t && t(), this.node = {}, this.form = {}, this.box = !1;
350
199
  };
351
- typeof this.beforeClose == "function" ? this.beforeClose(i, this.type) : i();
200
+ typeof this.beforeClose == "function" ? this.beforeClose(e, this.type) : e();
352
201
  },
353
- save(e, i) {
354
- const t = (n) => {
355
- n = n || this.form, this.type === "add" ? this.$refs.tree.append(n, this.node.data[this.valueKey]) : this.type === "parentAdd" && this.$refs.tree.append(n), this.hide(), i();
202
+ save(t, e) {
203
+ const i = (n) => {
204
+ n = n || this.form, this.type === "add" ? this.$refs.tree.append(n, this.node.data[this.valueKey]) : this.type === "parentAdd" && this.$refs.tree.append(n), this.hide(), e();
356
205
  };
357
- this.$emit("save", this.node, e, t, i);
206
+ this.$emit("save", this.node, t, i, e);
358
207
  },
359
- update(e, i) {
360
- const t = (n) => {
208
+ update(t, e) {
209
+ const i = (n) => {
361
210
  n = n || this.form;
362
211
  const o = n[this.valueKey];
363
212
  this.node.data = this.form;
364
213
  const { parentList: s, index: a } = this.findData(o);
365
214
  if (s) {
366
- const h = s.splice(a, 1)[0];
367
- n[this.childrenKey] = h[this.childrenKey], s.splice(a, 0, n);
215
+ const c = s.splice(a, 1)[0];
216
+ n[this.childrenKey] = c[this.childrenKey], s.splice(a, 0, n);
368
217
  }
369
- this.hide(), i();
218
+ this.hide(), e();
370
219
  };
371
- this.$emit("update", this.node, e, t, i);
220
+ this.$emit("update", this.node, t, i, e);
372
221
  },
373
222
  rowEdit() {
374
223
  this.type = "edit", this.form = this.node.data, this.show();
@@ -380,51 +229,60 @@ const v = {
380
229
  this.type = "add", this.show();
381
230
  },
382
231
  show() {
383
- const e = () => {
232
+ const t = () => {
384
233
  this.client.show = !1, this.box = !0;
385
234
  };
386
- typeof this.beforeOpen == "function" ? this.beforeOpen(e, this.type) : e();
235
+ typeof this.beforeOpen == "function" ? this.beforeOpen(t, this.type) : t();
387
236
  },
388
237
  rowRemove() {
389
238
  this.client.show = !1;
390
- const e = () => {
239
+ const t = () => {
391
240
  this.$refs.tree.remove(this.node.data[this.valueKey]);
392
241
  };
393
- this.$emit("del", this.node, e);
242
+ this.$emit("del", this.node, t);
394
243
  },
395
- findData(e) {
396
- let i = {};
397
- const t = (n, o) => {
244
+ findData(t) {
245
+ let e = {};
246
+ const i = (n, o) => {
398
247
  n.forEach((s, a) => {
399
- s[this.valueKey] === e && (i = {
248
+ s[this.valueKey] === t && (e = {
400
249
  item: s,
401
250
  index: a,
402
251
  parentList: n,
403
252
  parent: o
404
- }), s[this.childrenKey] && t(s[this.childrenKey], s);
253
+ }), s[this.childrenKey] && i(s[this.childrenKey], s);
405
254
  });
406
255
  };
407
- return t(this.data), i;
256
+ return i(this.data), e;
408
257
  }
409
258
  }
410
- }, c = {};
411
- var _ = /* @__PURE__ */ f(
412
- v,
259
+ };
260
+ var m = function() {
261
+ var e = this, i = e._self._c;
262
+ return i("div", { staticClass: "avue-tree" }, [e.optVal(e.option.filter, !0) ? i("div", { staticClass: "avue-tree__filter" }, [i("ElInput", { attrs: { placeholder: e.optVal(e.option.filterText, "输入关键字进行过滤"), size: e.size }, model: { value: e.filterValue, callback: function(n) {
263
+ e.filterValue = n;
264
+ }, expression: "filterValue" } }), e.optVal(e.option.addBtn, !0) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.getPermission("addBtn"), expression: "getPermission('addBtn')" }], attrs: { size: e.size, icon: "el-icon-plus" }, on: { click: e.parentAdd } }) : e._t("addBtn")], 2) : e._e(), i("ElScrollbar", { staticClass: "avue-tree__content" }, [i("ElTree", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "tree", attrs: { data: e.data, lazy: e.lazy, load: e.treeLoad, props: e.treeProps, "icon-class": e.iconClass, indent: e.indent, "highlight-current": !e.multiple, "show-checkbox": e.multiple, accordion: e.accordion, "node-key": e.valueKey, "check-strictly": e.checkStrictly, "check-on-click-node": e.checkOnClickNode, "filter-node-method": e.filterNode, "expand-on-click-node": e.expandOnClickNode, "default-expand-all": e.defaultExpandAll, "default-expanded-keys": e.defaultExpandedKeys }, on: { "check-change": e.handleCheckChange, "node-click": e.nodeClick, "node-contextmenu": e.nodeContextmenu }, scopedSlots: e._u([{ key: "default", fn: function({ node: n, data: o }) {
265
+ return [e._t("default", function() {
266
+ return [i("span", { staticClass: "el-tree-node__label" }, [i("span", [e._v(e._s(n.label))])])];
267
+ }, { node: n, data: o })];
268
+ } }], null, !0) })], 1), e.client.show && e.menu ? i("div", { staticClass: "el-cascader-panel is-bordered avue-tree__menu", style: e.styleName, on: { click: function(n) {
269
+ e.client.show = !1;
270
+ } } }, [e.optVal(e.option.addBtn, !0) ? i("div", { directives: [{ name: "permission", rawName: "v-permission", value: e.getPermission("addBtn"), expression: "getPermission('addBtn')" }], staticClass: "avue-tree__item", on: { click: e.rowAdd } }, [e._v(" " + e._s(e.menuIcon("addBtn")) + " ")]) : e._e(), e.optVal(e.option.editBtn, !0) ? i("div", { directives: [{ name: "permission", rawName: "v-permission", value: e.getPermission("editBtn"), expression: "getPermission('editBtn')" }], staticClass: "avue-tree__item", on: { click: e.rowEdit } }, [e._v(" " + e._s(e.menuIcon("editBtn")) + " ")]) : e._e(), e.optVal(e.option.delBtn, !0) ? i("div", { directives: [{ name: "permission", rawName: "v-permission", value: e.getPermission("delBtn"), expression: "getPermission('delBtn')" }], staticClass: "avue-tree__item", on: { click: e.rowRemove } }, [e._v(" " + e._s(e.menuIcon("delBtn")) + " ")]) : e._e(), e._t("menu", null, { node: e.node })], 2) : e._e(), e.box ? i("div", [i("ElementDialog", { attrs: { title: e.node[e.labelKey] || e.title, visible: e.box, "before-close": e.hide, width: e.optVal(e.option.dialogWidth, "50%") }, on: { "update:visible": function(n) {
271
+ e.box = n;
272
+ } } }, [i("FyForm", { ref: "form", attrs: { option: e.formOption }, on: { submit: e.handleSubmit }, model: { value: e.form, callback: function(n) {
273
+ e.form = n;
274
+ }, expression: "form" } })], 1)], 1) : e._e()], 1);
275
+ }, y = [], v = /* @__PURE__ */ p(
276
+ f,
413
277
  m,
414
278
  y,
415
279
  !1,
416
- k,
280
+ null,
417
281
  null,
418
282
  null,
419
283
  null
420
284
  );
421
- function k(e) {
422
- for (let i in c)
423
- this[i] = c[i];
424
- }
425
- const K = /* @__PURE__ */ function() {
426
- return _.exports;
427
- }();
285
+ const C = v.exports;
428
286
  export {
429
- K as default
287
+ C as default
430
288
  };
@@ -1,44 +1,44 @@
1
- var S = Object.defineProperty, C = Object.defineProperties;
2
- var v = Object.getOwnPropertyDescriptors;
1
+ var g = Object.defineProperty, S = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var p = (e, t, r) => t in e ? S(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, u = (e, t) => {
4
+ var b = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var p = (e, t, r) => t in e ? g(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, u = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- _.call(t, r) && p(e, r, t[r]);
7
+ b.call(t, r) && p(e, r, t[r]);
8
8
  if (f)
9
9
  for (var r of f(t))
10
- b.call(t, r) && p(e, r, t[r]);
10
+ x.call(t, r) && p(e, r, t[r]);
11
11
  return e;
12
- }, m = (e, t) => C(e, v(t));
12
+ }, m = (e, t) => S(e, C(t));
13
13
  var h = (e, t, r) => new Promise((o, i) => {
14
- var a = (s) => {
14
+ var n = (s) => {
15
15
  try {
16
16
  d(r.next(s));
17
- } catch (n) {
18
- i(n);
17
+ } catch (a) {
18
+ i(a);
19
19
  }
20
20
  }, l = (s) => {
21
21
  try {
22
22
  d(r.throw(s));
23
- } catch (n) {
24
- i(n);
23
+ } catch (a) {
24
+ i(a);
25
25
  }
26
- }, d = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, l);
26
+ }, d = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(n, l);
27
27
  d((r = r.apply(e, t)).next());
28
28
  });
29
29
  import "@wangeditor/editor/dist/css/style.css";
30
- import { createEditor as x, createToolbar as A } from "@wangeditor/editor";
31
- import { p as O } from "../chunks/util.ae730cde.mjs";
32
- import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
33
- const K = (e) => {
34
- const { region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: a } = e;
35
- return new window.OSS({ region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: a });
36
- }, H = (e, t, r) => {
30
+ import { createEditor as _, createToolbar as v } from "@wangeditor/editor";
31
+ import { p as A } from "../chunks/util.ae730cde.mjs";
32
+ import { n as O } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
33
+ const w = (e) => {
34
+ const { region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: n } = e;
35
+ return new window.OSS({ region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: n });
36
+ }, K = (e, t, r) => {
37
37
  let { scope: o, deadline: i } = r;
38
- var a = JSON.stringify({ scope: o, deadline: i }), l = j(k(a)), d = window.CryptoJS.HmacSHA1(l, t), s = d.toString(window.CryptoJS.enc.Base64), n = e + ":" + E(s) + ":" + l;
39
- return n;
38
+ var n = JSON.stringify({ scope: o, deadline: i }), l = k(H(n)), d = window.CryptoJS.HmacSHA1(l, t), s = d.toString(window.CryptoJS.enc.Base64), a = e + ":" + j(s) + ":" + l;
39
+ return a;
40
40
  };
41
- function k(e) {
41
+ function H(e) {
42
42
  var t, r, o, i;
43
43
  for (t = "", o = e.length, r = 0; r < o; r++)
44
44
  i = e.charCodeAt(r), i >= 1 && i <= 127 ? t += e.charAt(r) : i > 2047 ? (t += String.fromCharCode(224 | i >> 12 & 15), t += String.fromCharCode(128 | i >> 6 & 63), t += String.fromCharCode(128 | i >> 0 & 63)) : (t += String.fromCharCode(192 | i >> 6 & 31), t += String.fromCharCode(128 | i >> 0 & 63));
@@ -175,36 +175,25 @@ new Array(
175
175
  -1,
176
176
  -1
177
177
  );
178
- function j(e) {
179
- var t, r, o, i, a, l;
178
+ function k(e) {
179
+ var t, r, o, i, n, l;
180
180
  for (o = e.length, r = 0, t = ""; r < o; ) {
181
181
  if (i = e.charCodeAt(r++) & 255, r == o) {
182
182
  t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4), t += "==";
183
183
  break;
184
184
  }
185
- if (a = e.charCodeAt(r++), r == o) {
186
- t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (a & 240) >> 4), t += c.charAt((a & 15) << 2), t += "=";
185
+ if (n = e.charCodeAt(r++), r == o) {
186
+ t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (n & 240) >> 4), t += c.charAt((n & 15) << 2), t += "=";
187
187
  break;
188
188
  }
189
- l = e.charCodeAt(r++), t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (a & 240) >> 4), t += c.charAt((a & 15) << 2 | (l & 192) >> 6), t += c.charAt(l & 63);
189
+ l = e.charCodeAt(r++), t += c.charAt(i >> 2), t += c.charAt((i & 3) << 4 | (n & 240) >> 4), t += c.charAt((n & 15) << 2 | (l & 192) >> 6), t += c.charAt(l & 63);
190
190
  }
191
191
  return t;
192
192
  }
193
- var E = function(e) {
193
+ var j = function(e) {
194
194
  return e = e.replace(/\+/g, "-"), e = e.replace(/\//g, "_"), e;
195
- }, F = function() {
196
- var e = this, t = e.$createElement, r = e._self._c || t;
197
- return r("div", {
198
- staticClass: "avue-ueditor"
199
- }, [r("div", {
200
- ref: "toolbar",
201
- staticClass: "fy-editor-toolbar"
202
- }), r("div", {
203
- ref: "editor",
204
- staticClass: "fy-editor"
205
- })]);
206
- }, U = [];
207
- const I = {
195
+ };
196
+ const E = {
208
197
  name: "FyUEditor",
209
198
  props: {
210
199
  data: {
@@ -323,7 +312,7 @@ const I = {
323
312
  }
324
313
  });
325
314
  this.editor = Object.seal(
326
- x({
315
+ _({
327
316
  selector: this.$refs.editor,
328
317
  config: t,
329
318
  html: this.value,
@@ -331,7 +320,7 @@ const I = {
331
320
  })
332
321
  );
333
322
  const r = u({}, this.toolbarConfig);
334
- this.toolbar = A({
323
+ this.toolbar = v({
335
324
  editor: this.editor,
336
325
  selector: this.$refs.toolbar,
337
326
  config: r,
@@ -343,31 +332,31 @@ const I = {
343
332
  const o = Object.assign(this.headers, {
344
333
  "Content-Type": "multipart/form-data"
345
334
  });
346
- let i = {}, a;
335
+ let i = {}, n;
347
336
  const l = new FormData();
348
337
  let d = this.action;
349
338
  if (l.append(this.fileName, e), Object.keys(this.data).forEach((s) => {
350
339
  l.append(s, this.data[s]);
351
340
  }), this.isQiniuOSS) {
352
341
  i = this.qiniu;
353
- const s = H(i.AK, i.SK, {
342
+ const s = K(i.AK, i.SK, {
354
343
  scope: i.scope,
355
344
  deadline: (/* @__PURE__ */ new Date()).getTime() + i.deadline * 3600
356
345
  });
357
346
  l.append("token", s), d = "http://up.qiniu.com/";
358
347
  } else
359
- this.isAliOSS && (i = this.ali, a = K({
348
+ this.isAliOSS && (i = this.ali, n = w({
360
349
  region: i.region,
361
350
  endpoint: i.endpoint,
362
351
  accessKeyId: i.accessKeyId,
363
352
  accessKeySecret: i.accessKeySecret,
364
353
  bucket: i.bucket
365
354
  }));
366
- (() => this.isAliOSS ? a.put(e.name, e) : this.$axios.post(d, l, { headers: o }))().then((s) => {
367
- let n;
368
- this.isAliOSS ? n = s : this.isQiniuOSS ? (n = s.data, n.key = i.url + n.key) : typeof this.resKey == "function" ? n = this.resKey(s.data) : (n = O(s.data, this.resKey), n = n[this.urlKey]);
369
- const g = this.homeUrl + n;
370
- t(g);
355
+ (() => this.isAliOSS ? n.put(e.name, e) : this.$axios.post(d, l, { headers: o }))().then((s) => {
356
+ let a;
357
+ this.isAliOSS ? a = s : this.isQiniuOSS ? (a = s.data, a.key = i.url + a.key) : typeof this.resKey == "function" ? a = this.resKey(s.data) : (a = A(s.data, this.resKey), a = a[this.urlKey]);
358
+ const y = this.homeUrl + a;
359
+ t(y);
371
360
  }).catch((s) => {
372
361
  r(s);
373
362
  });
@@ -377,24 +366,21 @@ const I = {
377
366
  return this.editor.getHtml();
378
367
  }
379
368
  }
380
- }, y = {};
381
- var N = /* @__PURE__ */ w(
382
- I,
369
+ };
370
+ var F = function() {
371
+ var t = this, r = t._self._c;
372
+ return r("div", { staticClass: "avue-ueditor" }, [r("div", { ref: "toolbar", staticClass: "fy-editor-toolbar" }), r("div", { ref: "editor", staticClass: "fy-editor" })]);
373
+ }, U = [], I = /* @__PURE__ */ O(
374
+ E,
383
375
  F,
384
376
  U,
385
377
  !1,
386
- $,
378
+ null,
387
379
  null,
388
380
  null,
389
381
  null
390
382
  );
391
- function $(e) {
392
- for (let t in y)
393
- this[t] = y[t];
394
- }
395
- const Q = /* @__PURE__ */ function() {
396
- return N.exports;
397
- }();
383
+ const D = I.exports;
398
384
  export {
399
- Q as default
385
+ D as default
400
386
  };