@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.
- package/address-input/index.mjs +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +11 -10
- package/flow-designer/index.mjs +1973 -699
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
package/table-column/index.mjs
CHANGED
|
@@ -1,225 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
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
|
-
|
|
4
|
+
a as default
|
|
225
5
|
};
|
package/table-view/index.mjs
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import y from "
|
|
8
|
-
import
|
|
9
|
-
|
|
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
|
-
],
|
|
37
|
+
], V = {
|
|
30
38
|
name: "TableView",
|
|
31
39
|
bus: {
|
|
32
40
|
reloadTableView(t) {
|
|
33
41
|
if (this._viewIds)
|
|
34
|
-
if (
|
|
42
|
+
if (i(t) || u(t)) {
|
|
35
43
|
let e = t;
|
|
36
|
-
|
|
44
|
+
i(e) && (e = e.split(",")), this._viewIds.some((r) => e.includes(r)) && (b.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
37
45
|
} else
|
|
38
|
-
|
|
46
|
+
f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
39
47
|
},
|
|
40
48
|
reloadTreeView(t) {
|
|
41
49
|
if (this._viewIds)
|
|
42
|
-
if (
|
|
50
|
+
if (i(t) || u(t)) {
|
|
43
51
|
let e = t;
|
|
44
|
-
|
|
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
|
-
|
|
54
|
+
f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
47
55
|
}
|
|
48
56
|
},
|
|
49
|
-
components: { FormItemConfigProvider:
|
|
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
|
|
124
|
+
return R.filter((t) => this.$scopedSlots[t]);
|
|
117
125
|
},
|
|
118
126
|
toolbarProps() {
|
|
119
|
-
var s,
|
|
120
|
-
const t = {}, e =
|
|
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 =
|
|
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) =>
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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) &&
|
|
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,
|
|
234
|
+
beforeClose: async (r, s, o) => {
|
|
227
235
|
if (r === "confirm")
|
|
228
236
|
try {
|
|
229
237
|
s.confirmButtonLoading = !0, s.confirmButtonText = "删除...";
|
|
230
|
-
const
|
|
238
|
+
const h = await t.call(
|
|
231
239
|
this,
|
|
232
|
-
this.selectedRows.map((
|
|
240
|
+
this.selectedRows.map((g) => g[this.rowKey])
|
|
233
241
|
);
|
|
234
|
-
this.$message.success(
|
|
242
|
+
this.$message.success(h.data.msg || "删除成功"), this.reloadTableAndTree(), x();
|
|
235
243
|
} catch {
|
|
236
244
|
}
|
|
237
|
-
|
|
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
|
|
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(
|
|
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(
|
|
285
|
+
} } }, [r(c, { attrs: { reactive: "" } }, [r(d, { attrs: { gutter: 0 } }, [e._t("search-form", function() {
|
|
278
286
|
return [r("p", [e._v("请添加搜索条件!")])];
|
|
279
|
-
}), r(
|
|
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(
|
|
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:
|
|
298
|
-
}, { node: s, data:
|
|
299
|
-
} }], null, !0) }, "EditableTree", e.treeProps, !1), e.toHyphenateKey(e.treeListeners)))], 1) : e._e(), r("div", { staticClass: "table-view-table" }, [r(
|
|
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:
|
|
308
|
-
return [e._t(s, null, { row:
|
|
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(
|
|
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(
|
|
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(
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
|
|
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
|
|
331
|
+
const Y = I.exports;
|
|
324
332
|
export {
|
|
325
|
-
|
|
333
|
+
Y as default
|
|
326
334
|
};
|
package/tabs-view/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
-
],
|
|
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
|
|
51
|
+
return c.filter((r) => this.$scopedSlots[r]);
|
|
50
52
|
},
|
|
51
53
|
toolbarProps() {
|
|
52
54
|
var o, s;
|
|
53
|
-
const r = {}, t =
|
|
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 =
|
|
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
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
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
|
|
103
|
+
const x = _.exports;
|
|
102
104
|
export {
|
|
103
|
-
|
|
105
|
+
x as default
|
|
104
106
|
};
|
package/tag-render/index.mjs
CHANGED
|
@@ -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
|
|
3
|
-
const
|
|
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,
|
|
39
|
-
this.elFormItem && t && t.length > 0 && ((
|
|
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
|
|
49
|
-
var e = this,
|
|
50
|
-
return
|
|
51
|
-
return
|
|
52
|
-
return e.$emit("close", e.tags[
|
|
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() : [
|
|
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 ?
|
|
57
|
-
},
|
|
58
|
-
|
|
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
|
|
67
|
+
const v = _.exports;
|
|
66
68
|
export {
|
|
67
|
-
|
|
69
|
+
v as default
|
|
68
70
|
};
|
package/text-ellipsis/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
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:
|
|
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
|
|
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(
|
|
67
|
-
},
|
|
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 =
|
|
76
|
+
const d = m.exports;
|
|
76
77
|
export {
|
|
77
78
|
d as default
|
|
78
79
|
};
|