@web-utils/component 4.0.15 → 4.0.16

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 (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -1,5 +1,225 @@
1
- import { T as a } from "../chunks/TableColumn.BzivvXMF.mjs";
2
- import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
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;
3
223
  export {
4
- a as default
224
+ X as default
5
225
  };
@@ -1,20 +1,12 @@
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 = [
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 = [
18
10
  "back",
19
11
  "create",
20
12
  "save",
@@ -34,27 +26,27 @@ const R = [
34
26
  "disabled",
35
27
  "reload",
36
28
  "slot"
37
- ], V = {
29
+ ], P = {
38
30
  name: "TableView",
39
31
  bus: {
40
32
  reloadTableView(t) {
41
33
  if (this._viewIds)
42
- if (i(t) || u(t)) {
34
+ if (o(t) || c(t)) {
43
35
  let e = t;
44
- i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (b.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
36
+ o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (h.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
45
37
  } else
46
- f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
38
+ d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
47
39
  },
48
40
  reloadTreeView(t) {
49
41
  if (this._viewIds)
50
- if (i(t) || u(t)) {
42
+ if (o(t) || c(t)) {
51
43
  let e = t;
52
- i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (b.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
44
+ o(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && this.$refs.tree && (h.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
53
45
  } else
54
- f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
46
+ d.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
55
47
  }
56
48
  },
57
- components: { FormItemConfigProvider: c, ElCollapseTransition: $(w) },
49
+ components: { FormItemConfigProvider: g, ElCollapseTransition: m(y) },
58
50
  props: {
59
51
  viewId: [String, Array],
60
52
  searchPanelAttrs: {
@@ -121,20 +113,20 @@ const R = [
121
113
  },
122
114
  computed: {
123
115
  buttonSlots() {
124
- return R.filter((t) => this.$scopedSlots[t]);
116
+ return T.filter((t) => this.$scopedSlots[t]);
125
117
  },
126
118
  toolbarProps() {
127
- var s, o;
128
- const t = {}, e = a({}, this.toolbarAttrs, t);
119
+ var s, l;
120
+ const t = {}, e = i({}, this.toolbarAttrs, t);
129
121
  let r = (e == null ? void 0 : e.buttons) || this.$parent.buttons;
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;
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;
131
123
  },
132
124
  treeProps() {
133
125
  const t = {
134
126
  treeProps: {
135
127
  children: "children",
136
128
  label: "label",
137
- isLeaf: (e) => m(e, "hasChildren") ? !e.hasChildren : m(e, "hasChild") ? !e.hasChild : !0
129
+ isLeaf: (e) => u(e, "hasChildren") ? !e.hasChildren : u(e, "hasChild") ? !e.hasChild : !0
138
130
  },
139
131
  show: !1,
140
132
  lazy: !0,
@@ -143,7 +135,7 @@ const R = [
143
135
  expandFirstNode: !0,
144
136
  defaultExpandAll: !1
145
137
  };
146
- return n(a({}, this.treeAttrs, t));
138
+ return a(i({}, this.treeAttrs, t));
147
139
  },
148
140
  tableProps() {
149
141
  const t = this.tableAttrs.api || this.$parent.getPage, e = {
@@ -152,14 +144,14 @@ const R = [
152
144
  highlightCurrentRow: !0,
153
145
  api: t
154
146
  };
155
- return n(a({}, this.tableAttrs, e));
147
+ return a(i({}, this.tableAttrs, e));
156
148
  },
157
149
  searchPanelProps() {
158
150
  const t = {
159
151
  width: 350,
160
152
  model: this.searchModel || {}
161
153
  };
162
- return n(a({}, this.searchPanelAttrs, t));
154
+ return a(i({}, this.searchPanelAttrs, t));
163
155
  },
164
156
  toolbarEventHandlers() {
165
157
  if (this.toolbarListeners) {
@@ -188,7 +180,7 @@ const R = [
188
180
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
189
181
  },
190
182
  methods: {
191
- toHyphenateKey: n,
183
+ toHyphenateKey: a,
192
184
  onTreeScroll() {
193
185
  this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
194
186
  },
@@ -202,7 +194,7 @@ const R = [
202
194
  this.$emit("reset"), this.$refs.form.resetFields(), await this.reloadTable();
203
195
  },
204
196
  openFrom(t) {
205
- this.$router.push(k(this.formPath, t));
197
+ this.$router.push(w(this.formPath, t));
206
198
  },
207
199
  rowDbClick(t) {
208
200
  var e;
@@ -218,7 +210,7 @@ const R = [
218
210
  async del() {
219
211
  var e;
220
212
  const t = this.deleteApi || this.$parent.del;
221
- if (!((e = this.toolbarListeners) != null && e.del) && P(t)) {
213
+ if (!((e = this.toolbarListeners) != null && e.del) && p(t)) {
222
214
  if (!this.selectedRows.length) {
223
215
  this.$message.warning(this.selectTips || "请选择要删除的记录!");
224
216
  return;
@@ -231,18 +223,18 @@ const R = [
231
223
  modal: !0,
232
224
  dangerouslyUseHTMLString: !0,
233
225
  closeOnClickModal: !1,
234
- beforeClose: async (r, s, o) => {
226
+ beforeClose: async (r, s, l) => {
235
227
  if (r === "confirm")
236
228
  try {
237
229
  s.confirmButtonLoading = !0, s.confirmButtonText = "删除...";
238
- const h = await t.call(
230
+ const n = await t.call(
239
231
  this,
240
- this.selectedRows.map((g) => g[this.rowKey])
232
+ this.selectedRows.map((b) => b[this.rowKey])
241
233
  );
242
- this.$message.success(h.data.msg || "删除成功"), this.reloadTableAndTree(), x();
234
+ this.$message.success(n.data.msg || "删除成功"), this.reloadTableAndTree(), v();
243
235
  } catch {
244
236
  }
245
- o();
237
+ l();
246
238
  }
247
239
  }
248
240
  ).catch((r) => r);
@@ -278,13 +270,13 @@ const R = [
278
270
  }
279
271
  }
280
272
  };
281
- var F = function() {
273
+ var C = function() {
282
274
  var e = this, r = e._self._c;
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) {
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) {
284
276
  return s.preventDefault(), e.onSearchClick.apply(null, arguments);
285
- } } }, [r(c, { attrs: { reactive: "" } }, [r(d, { attrs: { gutter: 0 } }, [e._t("search-form", function() {
277
+ } } }, [r("FormItemConfigProvider", { attrs: { reactive: "" } }, [r("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
286
278
  return [r("p", [e._v("请添加搜索条件!")])];
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) {
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) {
288
280
  e.importDialogVisible = !0;
289
281
  } }, scopedSlots: e._u([{ key: "default", fn: function() {
290
282
  return [e._t("toolbar-button", null, { selectedRows: e.selectedRows })];
@@ -298,13 +290,13 @@ var F = function() {
298
290
  return { key: s, fn: function() {
299
291
  return [e._t(s, null, { selectedRows: e.selectedRows })];
300
292
  }, proxy: !0 };
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 }) {
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 }) {
302
294
  return [e._t("tree-node", function() {
303
295
  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() {
304
296
  return [e._v(e._s(s.label))];
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: [
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: [
308
300
  {
309
301
  "border-top": e.borderTop,
310
302
  "border-bottom": e.borderBottom,
@@ -312,23 +304,23 @@ var F = function() {
312
304
  "border-right": e.borderRight
313
305
  }
314
306
  ], attrs: { border: e.border }, on: { "row-dblclick": e.rowDbClick, "selection-change": e.onSelectionChange }, scopedSlots: e._u([e._l(e.tableScopeSlotNames, function(s) {
315
- return { key: s, fn: function({ row: o }) {
316
- return [e._t(s, null, { row: o })];
307
+ return { key: s, fn: function({ row: l }) {
308
+ return [e._t(s, null, { row: l })];
317
309
  } };
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) {
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) {
319
311
  return s.preventDefault(), e.onSearchClick.apply(null, arguments);
320
- } } }, [r(c, { attrs: { block: "", "wrap-col": !1 } }, [r(d, { attrs: { gutter: 0 } }, [e._t("search-form", function() {
312
+ } } }, [r("FormItemConfigProvider", { attrs: { block: "", "wrap-col": !1 } }, [r("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form", function() {
321
313
  return [r("p", [e._v("请添加搜索条件!")])];
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,
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
+ $,
327
319
  !1,
328
320
  null,
329
321
  null
330
322
  );
331
- const Y = I.exports;
323
+ const V = k.exports;
332
324
  export {
333
- Y as default
325
+ V as default
334
326
  };
@@ -1,10 +1,8 @@
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 = [
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 = [
8
6
  "back",
9
7
  "create",
10
8
  "save",
@@ -24,7 +22,7 @@ const c = [
24
22
  "disabled",
25
23
  "reload",
26
24
  "slot"
27
- ], f = {
25
+ ], b = {
28
26
  name: "TabsView",
29
27
  props: {
30
28
  toolbarAttrs: {
@@ -48,13 +46,13 @@ const c = [
48
46
  },
49
47
  computed: {
50
48
  buttonSlots() {
51
- return c.filter((r) => this.$scopedSlots[r]);
49
+ return u.filter((r) => this.$scopedSlots[r]);
52
50
  },
53
51
  toolbarProps() {
54
52
  var o, s;
55
- const r = {}, t = i({}, this.toolbarAttrs, r);
53
+ const r = {}, t = n({}, this.toolbarAttrs, r);
56
54
  let e = (t == null ? void 0 : t.buttons) || this.$parent.buttons;
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;
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;
58
56
  },
59
57
  toolbarEventHandlers() {
60
58
  if (this.toolbarListeners) {
@@ -73,14 +71,14 @@ const c = [
73
71
  }
74
72
  }
75
73
  };
76
- var d = function() {
74
+ var c = function() {
77
75
  var t = this, e = t._self._c;
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() {
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() {
79
77
  return [t._t("toolbar-button")];
80
78
  }, proxy: !0 }, { key: "toolbar-left", fn: function() {
81
79
  return [t._t("toolbar-left", function() {
82
80
  return t._l(t.tabs, function(o) {
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) {
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) {
84
82
  t.tab = o.value;
85
83
  } } }, [t._v(" " + t._s(o.label) + " ")]);
86
84
  });
@@ -92,15 +90,15 @@ var d = function() {
92
90
  return [t._t(o)];
93
91
  }, proxy: !0 };
94
92
  })], 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)]);
95
- }, p = [], _ = /* @__PURE__ */ b(
93
+ }, f = [], d = /* @__PURE__ */ i(
94
+ b,
95
+ c,
96
96
  f,
97
- d,
98
- p,
99
97
  !1,
100
98
  null,
101
99
  null
102
100
  );
103
- const x = _.exports;
101
+ const m = d.exports;
104
102
  export {
105
- x as default
103
+ m as default
106
104
  };
@@ -1,8 +1,6 @@
1
- import l from "element-ui/lib/button";
2
- import o from "element-ui/lib/tag";
3
1
  import { hasOwn as r } from "@web-utils/core";
4
- import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- const m = {
2
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const i = {
6
4
  name: "TagRender",
7
5
  inject: {
8
6
  elFormItem: {
@@ -37,8 +35,8 @@ const m = {
37
35
  },
38
36
  watch: {
39
37
  tags(t) {
40
- var e, n;
41
- this.elFormItem && t && t.length > 0 && ((n = (e = this.elFormItem).clearValidate) == null || n.call(e));
38
+ var e, a;
39
+ this.elFormItem && t && t.length > 0 && ((a = (e = this.elFormItem).clearValidate) == null || a.call(e));
42
40
  }
43
41
  },
44
42
  methods: {
@@ -47,24 +45,24 @@ const m = {
47
45
  }
48
46
  }
49
47
  };
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);
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);
55
53
  } } }, [e._v(" " + e._s(e.getTagName(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) {
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) {
57
55
  return e.$emit("add");
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,
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,
61
60
  c,
62
- u,
63
61
  !1,
64
62
  null,
65
63
  null
66
64
  );
67
- const v = _.exports;
65
+ const _ = u.exports;
68
66
  export {
69
- v as default
67
+ _ as default
70
68
  };
@@ -1,7 +1,6 @@
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 = {
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 = {
5
4
  name: "TextEllipsis",
6
5
  props: {
7
6
  text: String,
@@ -39,7 +38,7 @@ const r = {
39
38
  this.init();
40
39
  },
41
40
  methods: {
42
- setPx: o,
41
+ setPx: l,
43
42
  init() {
44
43
  this.oversize = !1, this.keyIndex += 1;
45
44
  const i = this.$refs.more;
@@ -62,18 +61,18 @@ const r = {
62
61
  }
63
62
  }
64
63
  };
65
- var a = function() {
64
+ var r = function() {
66
65
  var t = this, e = t._self._c;
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(
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,
69
69
  r,
70
70
  a,
71
- f,
72
71
  !1,
73
72
  null,
74
73
  null
75
74
  );
76
- const d = m.exports;
75
+ const d = f.exports;
77
76
  export {
78
77
  d as default
79
78
  };