@web-utils/component 4.0.14 → 4.0.15

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 (168) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-date-picker/index.mjs +20 -18
  58. package/form-holder/index.mjs +14 -13
  59. package/form-input/index.mjs +15 -14
  60. package/form-input-cron-expression/index.mjs +22 -19
  61. package/form-input-email/index.mjs +16 -15
  62. package/form-input-id-card/index.mjs +13 -12
  63. package/form-input-number/index.mjs +17 -16
  64. package/form-input-phone-number/index.mjs +22 -21
  65. package/form-input-tag/index.mjs +15 -14
  66. package/form-input-time/index.mjs +15 -14
  67. package/form-item/index.mjs +3 -140
  68. package/form-item-group/index.mjs +31 -28
  69. package/form-radio-group/index.mjs +28 -27
  70. package/form-select/index.mjs +23 -21
  71. package/form-switch/index.mjs +17 -16
  72. package/form-table/index.mjs +17 -16
  73. package/form-table-plus/index.mjs +22 -21
  74. package/form-textarea/index.mjs +16 -15
  75. package/form-tree-select/index.mjs +15 -14
  76. package/form-tree-select-multiple/index.mjs +15 -14
  77. package/form-view/index.mjs +39 -35
  78. package/fy-array/index.mjs +37 -33
  79. package/fy-cascader/index.mjs +17 -16
  80. package/fy-checkbox/index.mjs +13 -11
  81. package/fy-code/index.mjs +10 -10
  82. package/fy-curd/index.mjs +1147 -1123
  83. package/fy-date/index.mjs +11 -10
  84. package/fy-draggable/index.mjs +10 -9
  85. package/fy-dynamic/index.mjs +25 -22
  86. package/fy-empty/index.mjs +1 -1
  87. package/fy-form/index.mjs +15 -638
  88. package/fy-form-design/index.mjs +1165 -1127
  89. package/fy-input/index.mjs +14 -12
  90. package/fy-input-color/index.mjs +15 -13
  91. package/fy-input-icon/index.mjs +23 -20
  92. package/fy-input-map/index.mjs +31 -28
  93. package/fy-input-number/index.mjs +10 -9
  94. package/fy-input-table/index.mjs +22 -18
  95. package/fy-input-tree/index.mjs +37 -33
  96. package/fy-progress/index.mjs +10 -9
  97. package/fy-radio/index.mjs +16 -15
  98. package/fy-rate/index.mjs +11 -10
  99. package/fy-select/index.mjs +29 -25
  100. package/fy-slider/index.mjs +12 -11
  101. package/fy-switch/index.mjs +10 -9
  102. package/fy-tabs/index.mjs +17 -15
  103. package/fy-time/index.mjs +1 -1
  104. package/fy-title/index.mjs +1 -1
  105. package/fy-tree/index.mjs +24 -18
  106. package/fy-u-editor/index.mjs +1 -1
  107. package/fy-upload/index.mjs +76 -74
  108. package/guide-steps/index.mjs +13 -11
  109. package/iframe-window/index.mjs +10 -9
  110. package/image-cropper/index.mjs +30 -28
  111. package/image-preview/index.mjs +14 -12
  112. package/index.mjs +72 -72
  113. package/input-number/index.mjs +14 -13
  114. package/input-number-range/index.mjs +12 -11
  115. package/license/index.mjs +1 -1
  116. package/login/index.mjs +26 -21
  117. package/nav-bar/index.mjs +10 -9
  118. package/notice/index.mjs +10 -9
  119. package/package.json +1 -1
  120. package/page-index/index.mjs +13 -12
  121. package/page-index-top/index.mjs +28 -23
  122. package/page-skeleton/index.mjs +14 -14
  123. package/page-skeleton-new/index.mjs +9 -8
  124. package/pageable-table/index.mjs +182 -172
  125. package/pageable-view/index.mjs +16 -15
  126. package/picker-table-view/index.mjs +58 -49
  127. package/present-view/index.mjs +39 -35
  128. package/record-video/index.mjs +1 -1
  129. package/resize-observer/index.mjs +1 -1
  130. package/search/index.mjs +22 -20
  131. package/search-popover/index.mjs +1 -1
  132. package/sign/index.mjs +1 -1
  133. package/skeleton-panel/index.mjs +10 -9
  134. package/split-pane/index.mjs +37 -36
  135. package/static-pageable-table/index.mjs +13 -11
  136. package/sub-table/index.mjs +49 -36
  137. package/sub-table-plus/index.mjs +18 -229
  138. package/swiper/index.mjs +12 -11
  139. package/table-column/index.mjs +3 -223
  140. package/table-view/index.mjs +60 -52
  141. package/tabs-view/index.mjs +19 -17
  142. package/tag-render/index.mjs +18 -16
  143. package/text-ellipsis/index.mjs +10 -9
  144. package/toolbar/index.mjs +14 -13
  145. package/toolbar-button/index.mjs +14 -13
  146. package/verify/index.mjs +1 -1
  147. package/vue-cron/index.mjs +267 -259
  148. package/watermark/index.mjs +1 -1
  149. package/web-types.json +1 -1
  150. package/x-input-tag/index.mjs +24 -21
  151. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  152. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  153. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  154. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  155. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  156. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  157. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  158. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  159. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  160. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  161. package/chunks/core.0Exl13Mz.mjs +0 -54
  162. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  163. package/chunks/form-item.LWjePsPa.mjs +0 -233
  164. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  165. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  166. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  167. package/element-listeners/style.css +0 -1
  168. package/element-multi-instance/style.css +0 -1
@@ -1,225 +1,5 @@
1
- import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
2
- import { h as d } from "vue";
3
- import { g as C } from "../chunks/dictionary.DGt59Ir7.mjs";
4
- import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- import { f as V } from "../chunks/core.0Exl13Mz.mjs";
6
- const D = {
7
- name: "DictRender",
8
- inheritAttrs: !1,
9
- props: {
10
- row: Object,
11
- column: Object,
12
- dictType: String,
13
- options: Array,
14
- treeDict: Boolean,
15
- idAsValue: {
16
- type: Boolean,
17
- default: !0
18
- },
19
- labelAsValue: Boolean
20
- },
21
- data() {
22
- return {
23
- label: ""
24
- };
25
- },
26
- computed: {
27
- value() {
28
- return this.row[this.column.property];
29
- }
30
- },
31
- watch: {
32
- value: {
33
- immediate: !0,
34
- async handler() {
35
- var l, e;
36
- this.dictType ? this.label = await C(this.dictType, this.value, !0, {
37
- treeDict: this.treeDict,
38
- idAsValue: this.idAsValue,
39
- labelAsValue: this.labelAsValue
40
- }) : this.label = ((e = (l = this.options) == null ? void 0 : l.find((t) => `${t.value}` == `${this.value}`)) == null ? void 0 : e.label) ?? `${this.value}`;
41
- }
42
- }
43
- },
44
- render() {
45
- return d("span", T([{}, {
46
- on: this.$listeners
47
- }, {}, {
48
- domProps: this.$attrs
49
- }]), [this.label]);
50
- }
51
- }, F = null, O = null;
52
- var $ = /* @__PURE__ */ B(
53
- D,
54
- F,
55
- O,
56
- !1,
57
- null,
58
- null
59
- );
60
- const x = $.exports, N = {
61
- props: {
62
- type: {
63
- type: String,
64
- default: "default"
65
- },
66
- label: String,
67
- className: String,
68
- labelClassName: String,
69
- property: String,
70
- prop: String,
71
- width: {},
72
- minWidth: {},
73
- renderHeader: Function,
74
- sortable: {
75
- type: [Boolean, String],
76
- default: !0
77
- },
78
- sortMethod: Function,
79
- sortBy: [String, Function, Array],
80
- resizable: {
81
- type: Boolean,
82
- default: !0
83
- },
84
- columnKey: String,
85
- align: String,
86
- headerAlign: String,
87
- showTooltipWhenOverflow: Boolean,
88
- clickable: Boolean,
89
- cellClick: Function,
90
- showOverflowTooltip: {
91
- type: Boolean,
92
- default: !0
93
- },
94
- fixed: [Boolean, String],
95
- formatter: Function,
96
- selectable: Function,
97
- reserveSelection: Boolean,
98
- filterMethod: Function,
99
- filteredValue: Array,
100
- filters: Array,
101
- filterPlacement: String,
102
- filterMultiple: {
103
- type: Boolean,
104
- default: !0
105
- },
106
- index: [Number, Function],
107
- sortOrders: {
108
- type: Array,
109
- default() {
110
- return ["ascending", "descending", null];
111
- },
112
- validator(l) {
113
- return l.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
114
- }
115
- },
116
- dictType: String,
117
- options: Array,
118
- autoUpdate: Boolean,
119
- treeDict: Boolean,
120
- idAsValue: {
121
- type: Boolean,
122
- default: !0
123
- },
124
- labelAsValue: Boolean
125
- }
126
- }, M = {
127
- selection: !0,
128
- "single-selection": !0,
129
- index: !0,
130
- expand: !0
131
- }, k = (l, e, t, y, p) => {
132
- var i;
133
- const n = l.rowDbClick || ((i = l.$children.find((f) => f.$options.name === "TableView")) == null ? void 0 : i.rowDbClick);
134
- n == null || n(e, t, y, p);
135
- }, H = (l) => {
136
- let e = l.target;
137
- for (; e && e.tagName.toUpperCase() !== "HTML"; ) {
138
- if (e.tagName.toUpperCase() === "TD")
139
- return e;
140
- e = e.parentNode;
141
- }
142
- return null;
143
- }, P = () => {
144
- }, R = (l) => !V(l).length, U = {
145
- name: "TableColumn",
146
- functional: !0,
147
- mixins: [N],
148
- render(l, {
149
- data: e,
150
- props: t,
151
- children: y,
152
- parent: p,
153
- listeners: {
154
- click: n
155
- }
156
- }) {
157
- const {
158
- scopedSlots: i,
159
- ...f
160
- } = e, {
161
- clickable: v,
162
- cellClick: a,
163
- ...b
164
- } = t, g = {
165
- ...i || {}
166
- }, _ = M[t.type];
167
- if (!_) {
168
- const m = i == null ? void 0 : i.default, c = v || n || a;
169
- (c || t.dictType || t.options) && (g.default = (A) => {
170
- const {
171
- row: o,
172
- column: r
173
- } = A, S = c ? (u) => {
174
- const h = H(u);
175
- n || a ? (n == null || n(o, r, o, r, h, u), a == null || a(o, r, o, r, h, u)) : k(p, o, r, h, u);
176
- } : P;
177
- let s = m == null ? void 0 : m(A);
178
- return R(s) && (s = null), (t.dictType || t.options) && !s ? d(x, {
179
- class: {
180
- "is-clickable": c
181
- },
182
- on: {
183
- click: S
184
- },
185
- attrs: {
186
- row: o,
187
- column: r,
188
- dictType: t.dictType,
189
- treeDict: t.treeDict,
190
- idAsValue: t.idAsValue,
191
- labelAsValue: t.labelAsValue,
192
- options: t.options
193
- }
194
- }) : c ? d("span", {
195
- class: "is-clickable",
196
- on: {
197
- click: S
198
- }
199
- }, [s || (o == null ? void 0 : o[r == null ? void 0 : r.property])]) : s;
200
- });
201
- }
202
- const w = {
203
- ...f,
204
- props: {
205
- ...b,
206
- showOverflowTooltip: _ ? !1 : b.showOverflowTooltip
207
- }
208
- };
209
- return d("ElTableColumn", T([{}, w, {
210
- scopedSlots: g
211
- }]));
212
- }
213
- }, j = null, z = null;
214
- var E = /* @__PURE__ */ B(
215
- U,
216
- j,
217
- z,
218
- !1,
219
- null,
220
- null
221
- );
222
- const X = E.exports;
1
+ import { T as a } from "../chunks/TableColumn.BzivvXMF.mjs";
2
+ import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
223
3
  export {
224
- X as default
4
+ a as default
225
5
  };
@@ -1,12 +1,20 @@
1
- import { isFunction as p, toStringArray as f, isString as o, isArray as c, trace as h, warning as d, hasOwn as u } from "@web-utils/core";
2
- import { merge as i } from "@web-utils/integrations/lodash";
3
- import { g as m, h as w } from "../chunks/index.B2TRddqf.mjs";
4
- import g from "../form-item-config-provider/index.mjs";
5
- import { reloadTable as v, processButtons as _ } from "../configComponents.mjs";
6
- import { t as a } from "../chunks/core.0Exl13Mz.mjs";
7
- import y from "element-ui/lib/transitions/collapse-transition";
8
- import { n as S } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- const T = [
1
+ import l from "element-ui/lib/button";
2
+ import _ from "element-ui/lib/form-item";
3
+ import d from "element-ui/lib/row";
4
+ import c from "../form-item-config-provider/index.mjs";
5
+ import p from "element-ui/lib/form";
6
+ import v from "../pageable-table/index.mjs";
7
+ import y from "../editable-tree/index.mjs";
8
+ import S from "../toolbar/index.mjs";
9
+ import { F as T } from "../chunks/FormItem.Bhsy_O2B.mjs";
10
+ import w from "element-ui/lib/transitions/collapse-transition";
11
+ import { isFunction as P, toStringArray as C, isString as i, isArray as u, trace as b, warning as f, hasOwn as m } from "@web-utils/core";
12
+ import { merge as a } from "@web-utils/integrations/lodash";
13
+ import { g as $, j as k } from "../chunks/index.Cn7aq-Et.mjs";
14
+ import { reloadTable as x, processButtons as A } from "../configComponents.mjs";
15
+ import { t as n } from "../chunks/TableColumn.BzivvXMF.mjs";
16
+ import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
17
+ const R = [
10
18
  "back",
11
19
  "create",
12
20
  "save",
@@ -26,27 +34,27 @@ const T = [
26
34
  "disabled",
27
35
  "reload",
28
36
  "slot"
29
- ], P = {
37
+ ], V = {
30
38
  name: "TableView",
31
39
  bus: {
32
40
  reloadTableView(t) {
33
41
  if (this._viewIds)
34
- if (o(t) || c(t)) {
42
+ if (i(t) || u(t)) {
35
43
  let e = t;
36
- o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (h.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
44
+ i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (b.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
37
45
  } else
38
- d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
46
+ f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
39
47
  },
40
48
  reloadTreeView(t) {
41
49
  if (this._viewIds)
42
- if (o(t) || c(t)) {
50
+ if (i(t) || u(t)) {
43
51
  let e = t;
44
- o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (h.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
52
+ i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (b.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
45
53
  } else
46
- d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
54
+ f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
47
55
  }
48
56
  },
49
- components: { FormItemConfigProvider: g, ElCollapseTransition: m(y) },
57
+ components: { FormItemConfigProvider: c, ElCollapseTransition: $(w) },
50
58
  props: {
51
59
  viewId: [String, Array],
52
60
  searchPanelAttrs: {
@@ -113,20 +121,20 @@ const T = [
113
121
  },
114
122
  computed: {
115
123
  buttonSlots() {
116
- return T.filter((t) => this.$scopedSlots[t]);
124
+ return R.filter((t) => this.$scopedSlots[t]);
117
125
  },
118
126
  toolbarProps() {
119
- var s, l;
120
- const t = {}, e = i({}, this.toolbarAttrs, t);
127
+ var s, o;
128
+ const t = {}, e = a({}, this.toolbarAttrs, t);
121
129
  let r = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
122
- return r = r || [], e.buttons = r, e.buttons = _(e.buttons), e.buttons = f(e.buttons), e.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), e;
130
+ return r = r || [], e.buttons = r, e.buttons = A(e.buttons), e.buttons = C(e.buttons), e.searchable = !!((o = (s = this.$scopedSlots)["search-form"]) != null && o.call(s)), e;
123
131
  },
124
132
  treeProps() {
125
133
  const t = {
126
134
  treeProps: {
127
135
  children: "children",
128
136
  label: "label",
129
- isLeaf: (e) => u(e, "hasChildren") ? !e.hasChildren : u(e, "hasChild") ? !e.hasChild : !0
137
+ isLeaf: (e) => m(e, "hasChildren") ? !e.hasChildren : m(e, "hasChild") ? !e.hasChild : !0
130
138
  },
131
139
  show: !1,
132
140
  lazy: !0,
@@ -135,7 +143,7 @@ const T = [
135
143
  expandFirstNode: !0,
136
144
  defaultExpandAll: !1
137
145
  };
138
- return a(i({}, this.treeAttrs, t));
146
+ return n(a({}, this.treeAttrs, t));
139
147
  },
140
148
  tableProps() {
141
149
  const t = this.tableAttrs.api || this.$parent.getPage, e = {
@@ -144,14 +152,14 @@ const T = [
144
152
  highlightCurrentRow: !0,
145
153
  api: t
146
154
  };
147
- return a(i({}, this.tableAttrs, e));
155
+ return n(a({}, this.tableAttrs, e));
148
156
  },
149
157
  searchPanelProps() {
150
158
  const t = {
151
159
  width: 350,
152
160
  model: this.searchModel || {}
153
161
  };
154
- return a(i({}, this.searchPanelAttrs, t));
162
+ return n(a({}, this.searchPanelAttrs, t));
155
163
  },
156
164
  toolbarEventHandlers() {
157
165
  if (this.toolbarListeners) {
@@ -180,7 +188,7 @@ const T = [
180
188
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
181
189
  },
182
190
  methods: {
183
- toHyphenateKey: a,
191
+ toHyphenateKey: n,
184
192
  onTreeScroll() {
185
193
  this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
186
194
  },
@@ -194,7 +202,7 @@ const T = [
194
202
  this.$emit("reset"), this.$refs.form.resetFields(), await this.reloadTable();
195
203
  },
196
204
  openFrom(t) {
197
- this.$router.push(w(this.formPath, t));
205
+ this.$router.push(k(this.formPath, t));
198
206
  },
199
207
  rowDbClick(t) {
200
208
  var e;
@@ -210,7 +218,7 @@ const T = [
210
218
  async del() {
211
219
  var e;
212
220
  const t = this.deleteApi || this.$parent.del;
213
- if (!((e = this.toolbarListeners) != null && e.del) && p(t)) {
221
+ if (!((e = this.toolbarListeners) != null && e.del) && P(t)) {
214
222
  if (!this.selectedRows.length) {
215
223
  this.$message.warning(this.selectTips || "请选择要删除的记录!");
216
224
  return;
@@ -223,18 +231,18 @@ const T = [
223
231
  modal: !0,
224
232
  dangerouslyUseHTMLString: !0,
225
233
  closeOnClickModal: !1,
226
- beforeClose: async (r, s, l) => {
234
+ beforeClose: async (r, s, o) => {
227
235
  if (r === "confirm")
228
236
  try {
229
237
  s.confirmButtonLoading = !0, s.confirmButtonText = "删除...";
230
- const n = await t.call(
238
+ const h = await t.call(
231
239
  this,
232
- this.selectedRows.map((b) => b[this.rowKey])
240
+ this.selectedRows.map((g) => g[this.rowKey])
233
241
  );
234
- this.$message.success(n.data.msg || "删除成功"), this.reloadTableAndTree(), v();
242
+ this.$message.success(h.data.msg || "删除成功"), this.reloadTableAndTree(), x();
235
243
  } catch {
236
244
  }
237
- l();
245
+ o();
238
246
  }
239
247
  }
240
248
  ).catch((r) => r);
@@ -270,13 +278,13 @@ const T = [
270
278
  }
271
279
  }
272
280
  };
273
- var C = function() {
281
+ var F = function() {
274
282
  var e = this, r = e._self._c;
275
- return r("div", { class: ["table-view", { embed: e.embed, "has-tree": e.treeProps.show }] }, [r("div", { staticClass: "table-view-wrapper" }, [e.searchFormPosition === "top" ? [r("ElCollapseTransition", [e.toolbarProps.searchable ? r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSearchVisible, expression: "isSearchVisible" }], staticClass: "search-form-top" }, [r("ElForm", { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
283
+ return r("div", { class: ["table-view", { embed: e.embed, "has-tree": e.treeProps.show }] }, [r("div", { staticClass: "table-view-wrapper" }, [e.searchFormPosition === "top" ? [r(w, [e.toolbarProps.searchable ? r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSearchVisible, expression: "isSearchVisible" }], staticClass: "search-form-top" }, [r(p, { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
276
284
  return s.preventDefault(), e.onSearchClick.apply(null, arguments);
277
- } } }, [r("FormItemConfigProvider", { attrs: { reactive: "" } }, [r("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
285
+ } } }, [r(c, { attrs: { reactive: "" } }, [r(d, { attrs: { gutter: 0 } }, [e._t("search-form", function() {
278
286
  return [r("p", [e._v("请添加搜索条件!")])];
279
- }), r("FormItem", { staticClass: "search-actions", attrs: { "hide-label": "" } }, [r("ElButton", { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v("开始搜索")]), r("ElButton", { staticStyle: { "margin-left": "10px" }, attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v("清除条件")])], 1)], 2)], 1)], 1)], 1) : e._e()])] : e._e(), e.showToolbar ? r("Toolbar", e._g(e._b({ attrs: { refreshable: "" }, on: { search: e.toggleSearch, settings: () => e.$refs.table.toggleSettings(), del: e.del, create: e.create, reload: e.reloadTableAndTree, exp: e.exp, imp: function(s) {
287
+ }), r(T, { staticClass: "search-actions", attrs: { "hide-label": "" } }, [r(l, { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v("开始搜索")]), r(l, { staticStyle: { "margin-left": "10px" }, attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v("清除条件")])], 1)], 2)], 1)], 1)], 1) : e._e()])] : e._e(), e.showToolbar ? r(S, e._g(e._b({ attrs: { refreshable: "" }, on: { search: e.toggleSearch, settings: () => e.$refs.table.toggleSettings(), del: e.del, create: e.create, reload: e.reloadTableAndTree, exp: e.exp, imp: function(s) {
280
288
  e.importDialogVisible = !0;
281
289
  } }, scopedSlots: e._u([{ key: "default", fn: function() {
282
290
  return [e._t("toolbar-button", null, { selectedRows: e.selectedRows })];
@@ -290,13 +298,13 @@ var C = function() {
290
298
  return { key: s, fn: function() {
291
299
  return [e._t(s, null, { selectedRows: e.selectedRows })];
292
300
  }, proxy: !0 };
293
- })], null, !0) }, "Toolbar", e.toolbarProps, !1), e.toolbarEventHandlers)) : e._e(), r("div", { staticClass: "table-view-content-wrapper" }, [r("div", { staticClass: "table-view-content" }, [e.treeProps.show ? r("div", { ref: "treeScroller", staticClass: "table-view-sidebar", on: { scroll: e.onTreeScroll } }, [r("EditableTree", e._g(e._b({ ref: "tree", attrs: { readonly: "" }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: l }) {
301
+ })], null, !0) }, "Toolbar", e.toolbarProps, !1), e.toolbarEventHandlers)) : e._e(), r("div", { staticClass: "table-view-content-wrapper" }, [r("div", { staticClass: "table-view-content" }, [e.treeProps.show ? r("div", { ref: "treeScroller", staticClass: "table-view-sidebar", on: { scroll: e.onTreeScroll } }, [r(y, e._g(e._b({ ref: "tree", attrs: { readonly: "" }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: o }) {
294
302
  return [e._t("tree-node", function() {
295
303
  return [r("span", [r("i", { staticClass: "node-icon", class: s.childNodes.length > 0 ? s.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets" }), e._t("tree-label", function() {
296
304
  return [e._v(e._s(s.label))];
297
- }, { node: s, data: l })], 2)];
298
- }, { node: s, data: l })];
299
- } }], null, !0) }, "EditableTree", e.treeProps, !1), e.toHyphenateKey(e.treeListeners)))], 1) : e._e(), r("div", { staticClass: "table-view-table" }, [r("PageableTable", e._g(e._b({ ref: "table", class: [
305
+ }, { node: s, data: o })], 2)];
306
+ }, { node: s, data: o })];
307
+ } }], null, !0) }, "EditableTree", e.treeProps, !1), e.toHyphenateKey(e.treeListeners)))], 1) : e._e(), r("div", { staticClass: "table-view-table" }, [r(v, e._g(e._b({ ref: "table", class: [
300
308
  {
301
309
  "border-top": e.borderTop,
302
310
  "border-bottom": e.borderBottom,
@@ -304,23 +312,23 @@ var C = function() {
304
312
  "border-right": e.borderRight
305
313
  }
306
314
  ], attrs: { border: e.border }, on: { "row-dblclick": e.rowDbClick, "selection-change": e.onSelectionChange }, scopedSlots: e._u([e._l(e.tableScopeSlotNames, function(s) {
307
- return { key: s, fn: function({ row: l }) {
308
- return [e._t(s, null, { row: l })];
315
+ return { key: s, fn: function({ row: o }) {
316
+ return [e._t(s, null, { row: o })];
309
317
  } };
310
- })], null, !0) }, "PageableTable", e.tableProps, !1), e.toHyphenateKey(e.tableListeners)), [e._t("columns")], 2)], 1)]), e.searchFormPosition === "right" ? [r("Transition", { attrs: { name: "slide" } }, [e.toolbarProps.searchable ? r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSearchVisible, expression: "isSearchVisible" }], staticClass: "slide-panel", style: { width: `${e.searchPanelProps.width}px` } }, [r("div", { staticClass: "slide-panel-content" }, [r("ElForm", { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
318
+ })], null, !0) }, "PageableTable", e.tableProps, !1), e.toHyphenateKey(e.tableListeners)), [e._t("columns")], 2)], 1)]), e.searchFormPosition === "right" ? [r("Transition", { attrs: { name: "slide" } }, [e.toolbarProps.searchable ? r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isSearchVisible, expression: "isSearchVisible" }], staticClass: "slide-panel", style: { width: `${e.searchPanelProps.width}px` } }, [r("div", { staticClass: "slide-panel-content" }, [r(p, { ref: "form", attrs: { "label-position": "right", model: e.searchModel || e.searchPanelProps.model, size: "mini", "label-width": e.labelWidth }, nativeOn: { "!submit": function(s) {
311
319
  return s.preventDefault(), e.onSearchClick.apply(null, arguments);
312
- } } }, [r("FormItemConfigProvider", { attrs: { block: "", "wrap-col": !1 } }, [r("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
320
+ } } }, [r(c, { attrs: { block: "", "wrap-col": !1 } }, [r(d, { attrs: { gutter: 0 } }, [e._t("search-form", function() {
313
321
  return [r("p", [e._v("请添加搜索条件!")])];
314
- })], 2)], 1), r("ElFormItem", { attrs: { "label-width": "0" } }, [r("div", { staticClass: "slide-panel-actions" }, [r("ElButton", { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v("开始搜索")]), r("ElButton", { attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v("清除条件")])], 1)])], 1)], 1)]) : e._e()])] : e._e()], 2), e._t("default")], 2)]);
315
- }, $ = [], k = /* @__PURE__ */ S(
316
- P,
317
- C,
318
- $,
322
+ })], 2)], 1), r(_, { attrs: { "label-width": "0" } }, [r("div", { staticClass: "slide-panel-actions" }, [r(l, { attrs: { type: "primary", "native-type": "submit", size: "mini" } }, [e._v("开始搜索")]), r(l, { attrs: { size: "mini" }, on: { click: e.onClearClick } }, [e._v("清除条件")])], 1)])], 1)], 1)]) : e._e()])] : e._e()], 2), e._t("default")], 2)]);
323
+ }, B = [], I = /* @__PURE__ */ L(
324
+ V,
325
+ F,
326
+ B,
319
327
  !1,
320
328
  null,
321
329
  null
322
330
  );
323
- const V = k.exports;
331
+ const Y = I.exports;
324
332
  export {
325
- V as default
333
+ Y as default
326
334
  };
@@ -1,8 +1,10 @@
1
- import { toStringArray as a } from "@web-utils/core";
2
- import { merge as n } from "@web-utils/integrations/lodash";
3
- import { processButtons as l } from "../configComponents.mjs";
4
- import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const u = [
1
+ import a from "element-ui/lib/tag";
2
+ import n from "../toolbar/index.mjs";
3
+ import { toStringArray as l } from "@web-utils/core";
4
+ import { merge as i } from "@web-utils/integrations/lodash";
5
+ import { processButtons as u } from "../configComponents.mjs";
6
+ import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ const c = [
6
8
  "back",
7
9
  "create",
8
10
  "save",
@@ -22,7 +24,7 @@ const u = [
22
24
  "disabled",
23
25
  "reload",
24
26
  "slot"
25
- ], b = {
27
+ ], f = {
26
28
  name: "TabsView",
27
29
  props: {
28
30
  toolbarAttrs: {
@@ -46,13 +48,13 @@ const u = [
46
48
  },
47
49
  computed: {
48
50
  buttonSlots() {
49
- return u.filter((r) => this.$scopedSlots[r]);
51
+ return c.filter((r) => this.$scopedSlots[r]);
50
52
  },
51
53
  toolbarProps() {
52
54
  var o, s;
53
- const r = {}, t = n({}, this.toolbarAttrs, r);
55
+ const r = {}, t = i({}, this.toolbarAttrs, r);
54
56
  let e = (t == null ? void 0 : t.buttons) || this.$parent.buttons;
55
- return e = e || [], t.buttons = e, t.buttons = l(t.buttons), t.buttons = a(t.buttons), t.searchable = !!((s = (o = this.$scopedSlots)["search-form"]) != null && s.call(o)), t;
57
+ return e = e || [], t.buttons = e, t.buttons = u(t.buttons), t.buttons = l(t.buttons), t.searchable = !!((s = (o = this.$scopedSlots)["search-form"]) != null && s.call(o)), t;
56
58
  },
57
59
  toolbarEventHandlers() {
58
60
  if (this.toolbarListeners) {
@@ -71,14 +73,14 @@ const u = [
71
73
  }
72
74
  }
73
75
  };
74
- var c = function() {
76
+ var d = function() {
75
77
  var t = this, e = t._self._c;
76
- return e("div", { class: ["tabs-view", { embed: t.embed }] }, [e("div", { staticClass: "tabs-view-wrapper" }, [e("Toolbar", t._g(t._b({ staticStyle: { "border-bottom": "1px solid #eee" }, scopedSlots: t._u([{ key: "default", fn: function() {
78
+ return e("div", { class: ["tabs-view", { embed: t.embed }] }, [e("div", { staticClass: "tabs-view-wrapper" }, [e(n, t._g(t._b({ staticStyle: { "border-bottom": "1px solid #eee" }, scopedSlots: t._u([{ key: "default", fn: function() {
77
79
  return [t._t("toolbar-button")];
78
80
  }, proxy: !0 }, { key: "toolbar-left", fn: function() {
79
81
  return [t._t("toolbar-left", function() {
80
82
  return t._l(t.tabs, function(o) {
81
- return e("ElTag", { key: o.value, staticStyle: { "margin-right": "14px", cursor: "pointer" }, attrs: { effect: o.value === t.tab ? "dark" : null, type: "primary" }, on: { click: function(s) {
83
+ return e(a, { key: o.value, staticStyle: { "margin-right": "14px", cursor: "pointer" }, attrs: { effect: o.value === t.tab ? "dark" : null, type: "primary" }, on: { click: function(s) {
82
84
  t.tab = o.value;
83
85
  } } }, [t._v(" " + t._s(o.label) + " ")]);
84
86
  });
@@ -90,15 +92,15 @@ var c = function() {
90
92
  return [t._t(o)];
91
93
  }, proxy: !0 };
92
94
  })], null, !0) }, "Toolbar", t.toolbarProps, !1), t.toolbarEventHandlers)), e("div", { staticClass: "tabs-view-content-wrapper" }, [e("div", { staticClass: "tabs-view-content" }, [t.leftSide ? e("div", { ref: "treeScroller", staticClass: "tabs-view-sidebar" }, [t._t("left")], 2) : t._e(), e("div", { staticClass: "tabs-view-right" }, [t._t("default", null, { tab: t.tab })], 2)])])], 1)]);
93
- }, f = [], d = /* @__PURE__ */ i(
94
- b,
95
- c,
95
+ }, p = [], _ = /* @__PURE__ */ b(
96
96
  f,
97
+ d,
98
+ p,
97
99
  !1,
98
100
  null,
99
101
  null
100
102
  );
101
- const m = d.exports;
103
+ const x = _.exports;
102
104
  export {
103
- m as default
105
+ x as default
104
106
  };
@@ -1,6 +1,8 @@
1
+ import l from "element-ui/lib/button";
2
+ import o from "element-ui/lib/tag";
1
3
  import { hasOwn as r } from "@web-utils/core";
2
- import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const i = {
4
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const m = {
4
6
  name: "TagRender",
5
7
  inject: {
6
8
  elFormItem: {
@@ -35,8 +37,8 @@ const i = {
35
37
  },
36
38
  watch: {
37
39
  tags(t) {
38
- var e, a;
39
- this.elFormItem && t && t.length > 0 && ((a = (e = this.elFormItem).clearValidate) == null || a.call(e));
40
+ var e, n;
41
+ this.elFormItem && t && t.length > 0 && ((n = (e = this.elFormItem).clearValidate) == null || n.call(e));
40
42
  }
41
43
  },
42
44
  methods: {
@@ -45,24 +47,24 @@ const i = {
45
47
  }
46
48
  }
47
49
  };
48
- var o = function() {
49
- var e = this, a = e._self._c;
50
- return a("div", { staticClass: "tag-render" }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, n) {
51
- return a("ElTag", { key: n, attrs: { closable: e.enable, size: "medium", "disable-transitions": "" }, on: { close: function(m) {
52
- return e.$emit("close", e.tags[n], n);
50
+ var c = function() {
51
+ var e = this, n = e._self._c;
52
+ return n("div", { staticClass: "tag-render" }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
53
+ return n(o, { key: a, attrs: { closable: e.enable, size: "medium", "disable-transitions": "" }, on: { close: function(f) {
54
+ return e.$emit("close", e.tags[a], a);
53
55
  } } }, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
54
- }) : e.enable ? e._e() : [a("span", { staticStyle: { "margin-left": "4px", color: "#b5b5b5", "line-height": "16px" } }, [e._v("无")])], e.enable ? a("ElButton", { staticClass: "add-tag", attrs: { size: "mini" }, on: { click: function(s) {
56
+ }) : e.enable ? e._e() : [n("span", { staticStyle: { "margin-left": "4px", color: "#b5b5b5", "line-height": "16px" } }, [e._v("无")])], e.enable ? n(l, { staticClass: "add-tag", attrs: { size: "mini" }, on: { click: function(s) {
55
57
  return e.$emit("add");
56
- } } }, [e._v("+ 添加")]) : e._e(), e.count ? a("span", { staticClass: "tags-count" }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
57
- }, c = [], u = /* @__PURE__ */ l(
58
- i,
59
- o,
58
+ } } }, [e._v("+ 添加")]) : e._e(), e.count ? n("span", { staticClass: "tags-count" }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
59
+ }, u = [], _ = /* @__PURE__ */ i(
60
+ m,
60
61
  c,
62
+ u,
61
63
  !1,
62
64
  null,
63
65
  null
64
66
  );
65
- const _ = u.exports;
67
+ const v = _.exports;
66
68
  export {
67
- _ as default
69
+ v as default
68
70
  };
@@ -1,6 +1,7 @@
1
- import { s as l } from "../chunks/util.DqFv_pWg.mjs";
2
- import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const h = {
1
+ import l from "element-ui/lib/tooltip";
2
+ import { s as o } from "../chunks/util.DI42t5GU.mjs";
3
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const r = {
4
5
  name: "TextEllipsis",
5
6
  props: {
6
7
  text: String,
@@ -38,7 +39,7 @@ const h = {
38
39
  this.init();
39
40
  },
40
41
  methods: {
41
- setPx: l,
42
+ setPx: o,
42
43
  init() {
43
44
  this.oversize = !1, this.keyIndex += 1;
44
45
  const i = this.$refs.more;
@@ -61,18 +62,18 @@ const h = {
61
62
  }
62
63
  }
63
64
  };
64
- var r = function() {
65
+ var a = function() {
65
66
  var t = this, e = t._self._c;
66
- return e("div", { staticClass: "avue-text-ellipsis", style: { width: t.setPx(t.width, "100%") } }, [t._t("before"), e("ElTooltip", { attrs: { content: t.text, disabled: !(t.useTooltip && t.isHide), placement: t.placement } }, [e("span", [e("span", { key: t.keyIndex, ref: "text", staticClass: "avue-text-ellipsis__text" }, [t._v(t._s(t.text))])])]), e("span", { ref: "more", staticClass: "avue-text-ellipsis__more" }, [t._t("more")], 2), t._t("after")], 2);
67
- }, a = [], f = /* @__PURE__ */ o(
68
- h,
67
+ return e("div", { staticClass: "avue-text-ellipsis", style: { width: t.setPx(t.width, "100%") } }, [t._t("before"), e(l, { attrs: { content: t.text, disabled: !(t.useTooltip && t.isHide), placement: t.placement } }, [e("span", [e("span", { key: t.keyIndex, ref: "text", staticClass: "avue-text-ellipsis__text" }, [t._v(t._s(t.text))])])]), e("span", { ref: "more", staticClass: "avue-text-ellipsis__more" }, [t._t("more")], 2), t._t("after")], 2);
68
+ }, f = [], m = /* @__PURE__ */ h(
69
69
  r,
70
70
  a,
71
+ f,
71
72
  !1,
72
73
  null,
73
74
  null
74
75
  );
75
- const d = f.exports;
76
+ const d = m.exports;
76
77
  export {
77
78
  d as default
78
79
  };