sunyard-szyy-ui 0.7.11 → 0.7.13
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/dist/index.full.js +4 -4
- package/dist/index.full.mjs +811 -780
- package/es/hooks/dist/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/make-installer.mjs +1 -1
- package/es/pro-table/src/ProTable.vue.mjs +1 -1
- package/es/pro-table/src/context.d.ts +1 -2
- package/es/pro-table/src/context.d.ts.map +1 -1
- package/es/pro-table/src/hooks/use-pro-table.d.ts.map +1 -1
- package/es/pro-table/src/hooks/use-pro-table.mjs +1 -1
- package/es/pro-table/src/variants/classic/ClassicLayout.vue.mjs +1 -1
- package/es/pro-table/src/variants/custom/CustomLayout.vue.mjs +1 -1
- package/es/pro-table/src/variants/unify/UnifyLayout.vue.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/lib/hooks/dist/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/make-installer.js +1 -1
- package/lib/pro-table/src/ProTable.vue.js +1 -1
- package/lib/pro-table/src/context.d.ts +1 -2
- package/lib/pro-table/src/hooks/use-pro-table.js +1 -1
- package/lib/pro-table/src/variants/classic/ClassicLayout.vue.js +1 -1
- package/lib/pro-table/src/variants/custom/CustomLayout.vue.js +1 -1
- package/lib/pro-table/src/variants/unify/UnifyLayout.vue.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +4 -4
package/dist/index.full.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var un = Object.defineProperty, dn = Object.defineProperties;
|
|
|
2
2
|
var pn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Vt = Object.getOwnPropertySymbols;
|
|
4
4
|
var fn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Mt = (n, o, s) => o in n ? un(n, o, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[o] = s,
|
|
5
|
+
var Mt = (n, o, s) => o in n ? un(n, o, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[o] = s, N = (n, o) => {
|
|
6
6
|
for (var s in o || (o = {}))
|
|
7
7
|
fn.call(o, s) && Mt(n, s, o[s]);
|
|
8
8
|
if (Vt)
|
|
@@ -10,38 +10,38 @@ var Mt = (n, o, s) => o in n ? un(n, o, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
mn.call(o, s) && Mt(n, s, o[s]);
|
|
11
11
|
return n;
|
|
12
12
|
}, ce = (n, o) => dn(n, pn(o));
|
|
13
|
-
var
|
|
13
|
+
var We = (n, o, s) => new Promise((c, i) => {
|
|
14
14
|
var l = (a) => {
|
|
15
15
|
try {
|
|
16
16
|
e(s.next(a));
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
17
|
+
} catch (k) {
|
|
18
|
+
i(k);
|
|
19
19
|
}
|
|
20
20
|
}, t = (a) => {
|
|
21
21
|
try {
|
|
22
22
|
e(s.throw(a));
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
23
|
+
} catch (k) {
|
|
24
|
+
i(k);
|
|
25
25
|
}
|
|
26
26
|
}, e = (a) => a.done ? c(a.value) : Promise.resolve(a.value).then(l, t);
|
|
27
27
|
e((s = s.apply(n, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { withInstall as
|
|
29
|
+
import { withInstall as w, SY_UI_CONFIG_KEY as He, getMasterConfig as qt, detectMicroAppName as Ut } from "@sunyard-szyy-ui/utils";
|
|
30
30
|
import { SY_UI_CONFIG_KEY as hr } from "@sunyard-szyy-ui/utils";
|
|
31
|
-
import { defineComponent as v, useAttrs as _, useSlots as
|
|
31
|
+
import { defineComponent as v, useAttrs as _, useSlots as x, ref as D, h as y, mergeProps as C, unref as r, inject as Ae, computed as O, withCtx as S, onMounted as Fe, onUnmounted as Xe, openBlock as P, createBlock as Q, withModifiers as Kt, createElementVNode as te, normalizeStyle as _e, createElementBlock as Z, Fragment as de, renderList as Ve, createCommentVNode as F, renderSlot as z, createVNode as I, createSlots as Ye, toDisplayString as ke, createTextVNode as fe, resolveDynamicComponent as It, reactive as Je, watch as Ie, provide as Ft, toRef as hn, resolveComponent as vn, normalizeProps as we, guardReactiveProps as ot, nextTick as Be, withDirectives as et, withKeys as jt, normalizeClass as yn, onBeforeUnmount as dt, Transition as pt, vShow as ft } from "vue";
|
|
32
32
|
import { useNamespace as R } from "@sunyard-szyy-ui/hooks";
|
|
33
|
-
import { AdapterAutocomplete as Wt, AdapterAlert as bn, AdapterBacktop as gn, AdapterButton as Sn, AdapterCard as Cn, AdapterCascader as
|
|
34
|
-
import { InfoFilled as To, ArrowDown as
|
|
33
|
+
import { AdapterAutocomplete as Wt, AdapterAlert as bn, AdapterBacktop as gn, AdapterButton as Sn, AdapterCard as Cn, AdapterCascader as kn, AdapterCheckbox as An, AdapterCheckboxGroup as wn, AdapterCheckboxButton as xn, AdapterColorPicker as Gt, AdapterCollapse as _n, AdapterCollapseItem as Rn, AdapterAside as Pn, AdapterContainer as Tn, AdapterFooter as $n, AdapterHeader as Bn, AdapterMain as Ln, AdapterConfigProvider as Vn, AdapterDatePicker as Qt, AdapterDescriptions as Mn, AdapterDescriptionsItem as In, AdapterDialog as Fn, AdapterDivider as Dn, AdapterDrawer as zn, AdapterDropdown as On, AdapterDropdownItem as Nn, AdapterDropdownMenu as Hn, AdapterEmpty as En, AdapterForm as qn, AdapterFormItem as Un, AdapterIcon as Kn, AdapterImage as jn, AdapterInput as Wn, AdapterInputNumber as Gn, AdapterCol as Qn, AdapterRow as Yn, AdapterLink as Jn, AdapterLoading as it, AdapterLoadingDirective as Yt, AdapterMenu as Zn, AdapterMenuItem as Xn, AdapterMenuItemGroup as eo, AdapterSubMenu as to, AdapterMessage as Pe, AdapterMessageBox as Me, AdapterNotification as Le, AdapterPagination as no, AdapterPopconfirm as oo, AdapterPopover as so, AdapterProgress as ao, AdapterRadio as lo, AdapterRadioGroup as ro, AdapterRadioButton as co, AdapterScrollbar as io, AdapterOption as uo, AdapterSelect as po, AdapterSelectV2 as Jt, AdapterSkeleton as fo, AdapterSkeletonItem as mo, AdapterSlider as Zt, AdapterSpace as ho, AdapterStep as vo, AdapterSteps as yo, AdapterSwitch as bo, AdapterTable as go, AdapterTableColumn as Dt, AdapterTabPane as So, AdapterTabs as Co, AdapterTag as ko, AdapterText as Ao, AdapterTimePicker as wo, AdapterTimeSelect as xo, AdapterTooltip as _o, AdapterTree as Ro, AdapterTreeSelect as Xt, AdapterUpload as Po } from "@sunyard-szyy-ui/adapter";
|
|
34
|
+
import { InfoFilled as To, ArrowDown as zt, ArrowUp as Ot, DCaret as $o, Refresh as en, Operation as tn, Search as nn, Close as on, Filter as Bo } from "@element-plus/icons-vue";
|
|
35
35
|
import Lo from "sortablejs";
|
|
36
36
|
/*!
|
|
37
|
-
* sunyard-szyy-ui v0.7.
|
|
37
|
+
* sunyard-szyy-ui v0.7.13
|
|
38
38
|
* (c) 2026 Sunyard SZYY Base Team
|
|
39
39
|
*/
|
|
40
40
|
const Vo = v({
|
|
41
41
|
name: "SyAutocomplete",
|
|
42
42
|
inheritAttrs: !1,
|
|
43
43
|
setup(n, { expose: o }) {
|
|
44
|
-
const s = R("autocomplete"), c = _(), i =
|
|
44
|
+
const s = R("autocomplete"), c = _(), i = x(), l = D();
|
|
45
45
|
return o({
|
|
46
46
|
focus: () => {
|
|
47
47
|
var t, e;
|
|
@@ -67,27 +67,27 @@ const Vo = v({
|
|
|
67
67
|
var e, a;
|
|
68
68
|
return (a = (e = l.value) == null ? void 0 : e.handleSelect) == null ? void 0 : a.call(e, t);
|
|
69
69
|
}
|
|
70
|
-
}), () => y(Wt,
|
|
70
|
+
}), () => y(Wt, C({ ref: l, class: s.b() }, c), i);
|
|
71
71
|
}
|
|
72
|
-
}), bl =
|
|
72
|
+
}), bl = w(Vo), Mo = v({
|
|
73
73
|
name: "SyAlert",
|
|
74
74
|
inheritAttrs: !1,
|
|
75
75
|
setup() {
|
|
76
|
-
const n = R("alert"), o = _(), s =
|
|
77
|
-
return () => y(bn,
|
|
76
|
+
const n = R("alert"), o = _(), s = x();
|
|
77
|
+
return () => y(bn, C({ class: n.b() }, o), s);
|
|
78
78
|
}
|
|
79
|
-
}), gl =
|
|
79
|
+
}), gl = w(Mo), Io = v({
|
|
80
80
|
name: "SyBacktop",
|
|
81
81
|
inheritAttrs: !1,
|
|
82
82
|
setup() {
|
|
83
|
-
const n = R("backtop"), o = _(), s =
|
|
84
|
-
return () => y(gn,
|
|
83
|
+
const n = R("backtop"), o = _(), s = x();
|
|
84
|
+
return () => y(gn, C({ class: n.b() }, o), s);
|
|
85
85
|
}
|
|
86
|
-
}), Sl =
|
|
86
|
+
}), Sl = w(Io), Fo = v({
|
|
87
87
|
name: "SyButton",
|
|
88
88
|
inheritAttrs: !1,
|
|
89
89
|
setup(n, { expose: o }) {
|
|
90
|
-
const s = R("button"), c = _(), i =
|
|
90
|
+
const s = R("button"), c = _(), i = x(), l = D();
|
|
91
91
|
return o({
|
|
92
92
|
focus: () => {
|
|
93
93
|
var t, e;
|
|
@@ -97,48 +97,48 @@ const Vo = v({
|
|
|
97
97
|
var t, e;
|
|
98
98
|
return (e = (t = l.value) == null ? void 0 : t.blur) == null ? void 0 : e.call(t);
|
|
99
99
|
}
|
|
100
|
-
}), () => y(Sn,
|
|
100
|
+
}), () => y(Sn, C({ ref: l, class: s.b() }, c), i);
|
|
101
101
|
}
|
|
102
|
-
}), le =
|
|
102
|
+
}), le = w(Fo), Do = v({
|
|
103
103
|
name: "SyCard",
|
|
104
104
|
inheritAttrs: !1,
|
|
105
105
|
setup() {
|
|
106
|
-
const n = R("card"), o = _(), s =
|
|
107
|
-
return () => y(Cn,
|
|
106
|
+
const n = R("card"), o = _(), s = x();
|
|
107
|
+
return () => y(Cn, C({ class: n.b() }, o), s);
|
|
108
108
|
}
|
|
109
|
-
}), Cl =
|
|
109
|
+
}), Cl = w(Do), zo = v({
|
|
110
110
|
name: "SyCascader",
|
|
111
111
|
inheritAttrs: !1,
|
|
112
112
|
setup() {
|
|
113
|
-
const n = R("cascader"), o = _(), s =
|
|
114
|
-
return () => y(
|
|
113
|
+
const n = R("cascader"), o = _(), s = x();
|
|
114
|
+
return () => y(kn, C({ class: n.b() }, o), s);
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), Oo = w(zo), No = v({
|
|
117
117
|
name: "SyCheckbox",
|
|
118
118
|
inheritAttrs: !1,
|
|
119
119
|
setup() {
|
|
120
|
-
const n = R("checkbox"), o = _(), s =
|
|
121
|
-
return () => y(
|
|
120
|
+
const n = R("checkbox"), o = _(), s = x();
|
|
121
|
+
return () => y(An, C({ class: n.b() }, o), s);
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), Ho = v({
|
|
124
124
|
name: "SyCheckboxGroup",
|
|
125
125
|
inheritAttrs: !1,
|
|
126
126
|
setup() {
|
|
127
|
-
const n = R("checkbox-group"), o = _(), s =
|
|
128
|
-
return () => y(wn,
|
|
127
|
+
const n = R("checkbox-group"), o = _(), s = x();
|
|
128
|
+
return () => y(wn, C({ class: n.b() }, o), s);
|
|
129
129
|
}
|
|
130
|
-
}), Eo =
|
|
130
|
+
}), Eo = w(No), qo = w(Ho), Uo = v({
|
|
131
131
|
name: "SyCheckboxButton",
|
|
132
132
|
inheritAttrs: !1,
|
|
133
133
|
setup() {
|
|
134
|
-
const n = R("checkbox-button"), o = _(), s =
|
|
135
|
-
return () => y(
|
|
134
|
+
const n = R("checkbox-button"), o = _(), s = x();
|
|
135
|
+
return () => y(xn, C({ class: n.b() }, o), s);
|
|
136
136
|
}
|
|
137
|
-
}),
|
|
137
|
+
}), kl = w(Uo), Ko = v({
|
|
138
138
|
name: "SyColorPicker",
|
|
139
139
|
inheritAttrs: !1,
|
|
140
140
|
setup(n, { expose: o }) {
|
|
141
|
-
const s = R("color-picker"), c = _(), i =
|
|
141
|
+
const s = R("color-picker"), c = _(), i = x(), l = D();
|
|
142
142
|
return o({
|
|
143
143
|
show: () => {
|
|
144
144
|
var t, e;
|
|
@@ -156,23 +156,23 @@ const Vo = v({
|
|
|
156
156
|
var t, e;
|
|
157
157
|
return (e = (t = l.value) == null ? void 0 : t.blur) == null ? void 0 : e.call(t);
|
|
158
158
|
}
|
|
159
|
-
}), () => y(Gt,
|
|
159
|
+
}), () => y(Gt, C({ ref: l, class: s.b() }, c), i);
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Al = w(Ko), jo = v({
|
|
162
162
|
name: "SyCollapse",
|
|
163
163
|
inheritAttrs: !1,
|
|
164
164
|
setup() {
|
|
165
|
-
const n = R("collapse"), o = _(), s =
|
|
166
|
-
return () => y(_n,
|
|
165
|
+
const n = R("collapse"), o = _(), s = x();
|
|
166
|
+
return () => y(_n, C({ class: n.b() }, o), s);
|
|
167
167
|
}
|
|
168
168
|
}), Wo = v({
|
|
169
169
|
name: "SyCollapseItem",
|
|
170
170
|
inheritAttrs: !1,
|
|
171
171
|
setup() {
|
|
172
|
-
const n = R("collapse-item"), o = _(), s =
|
|
173
|
-
return () => y(Rn,
|
|
172
|
+
const n = R("collapse-item"), o = _(), s = x();
|
|
173
|
+
return () => y(Rn, C({ class: n.b() }, o), s);
|
|
174
174
|
}
|
|
175
|
-
}), wl =
|
|
175
|
+
}), wl = w(jo), xl = w(Wo), Go = /* @__PURE__ */ new Set(["SyHeader", "SyFooter", "ElHeader", "ElFooter"]);
|
|
176
176
|
function Qo(n) {
|
|
177
177
|
return n.some((o) => {
|
|
178
178
|
var c;
|
|
@@ -184,56 +184,56 @@ const Yo = v({
|
|
|
184
184
|
name: "SyContainer",
|
|
185
185
|
inheritAttrs: !1,
|
|
186
186
|
setup() {
|
|
187
|
-
const n = R("container"), o = _(), s =
|
|
187
|
+
const n = R("container"), o = _(), s = x();
|
|
188
188
|
return () => {
|
|
189
189
|
const c = { class: n.b() };
|
|
190
190
|
if (!("direction" in o) && s.default) {
|
|
191
191
|
const i = s.default();
|
|
192
192
|
Qo(i) && (c.direction = "vertical");
|
|
193
193
|
}
|
|
194
|
-
return y(Tn,
|
|
194
|
+
return y(Tn, C(c, o), s);
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
}), Jo = v({
|
|
198
198
|
name: "SyHeader",
|
|
199
199
|
inheritAttrs: !1,
|
|
200
200
|
setup() {
|
|
201
|
-
const n = R("header"), o = _(), s =
|
|
202
|
-
return () => y(Bn,
|
|
201
|
+
const n = R("header"), o = _(), s = x();
|
|
202
|
+
return () => y(Bn, C({ class: n.b() }, o), s);
|
|
203
203
|
}
|
|
204
204
|
}), Zo = v({
|
|
205
205
|
name: "SyAside",
|
|
206
206
|
inheritAttrs: !1,
|
|
207
207
|
setup() {
|
|
208
|
-
const n = R("aside"), o = _(), s =
|
|
209
|
-
return () => y(Pn,
|
|
208
|
+
const n = R("aside"), o = _(), s = x();
|
|
209
|
+
return () => y(Pn, C({ class: n.b() }, o), s);
|
|
210
210
|
}
|
|
211
211
|
}), Xo = v({
|
|
212
212
|
name: "SyMain",
|
|
213
213
|
inheritAttrs: !1,
|
|
214
214
|
setup() {
|
|
215
|
-
const n = R("main"), o = _(), s =
|
|
216
|
-
return () => y(Ln,
|
|
215
|
+
const n = R("main"), o = _(), s = x();
|
|
216
|
+
return () => y(Ln, C({ class: n.b() }, o), s);
|
|
217
217
|
}
|
|
218
218
|
}), es = v({
|
|
219
219
|
name: "SyFooter",
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
setup() {
|
|
222
|
-
const n = R("footer"), o = _(), s =
|
|
223
|
-
return () => y($n,
|
|
222
|
+
const n = R("footer"), o = _(), s = x();
|
|
223
|
+
return () => y($n, C({ class: n.b() }, o), s);
|
|
224
224
|
}
|
|
225
|
-
}), _l =
|
|
225
|
+
}), _l = w(Yo), Rl = w(Jo), Pl = w(Zo), Tl = w(Xo), $l = w(es), ts = v({
|
|
226
226
|
name: "SyConfigProvider",
|
|
227
227
|
inheritAttrs: !1,
|
|
228
228
|
setup(n, { expose: o }) {
|
|
229
|
-
const s = _(), c =
|
|
230
|
-
return o({}), () => y(Vn,
|
|
229
|
+
const s = _(), c = x(), i = D();
|
|
230
|
+
return o({}), () => y(Vn, C({ ref: i }, s), c);
|
|
231
231
|
}
|
|
232
|
-
}), Bl =
|
|
232
|
+
}), Bl = w(ts), ns = v({
|
|
233
233
|
name: "SyDatePicker",
|
|
234
234
|
inheritAttrs: !1,
|
|
235
235
|
setup(n, { expose: o }) {
|
|
236
|
-
const s = R("date-picker"), c = _(), i =
|
|
236
|
+
const s = R("date-picker"), c = _(), i = x(), l = D();
|
|
237
237
|
return o({
|
|
238
238
|
focus: () => {
|
|
239
239
|
var t, e;
|
|
@@ -251,13 +251,13 @@ const Yo = v({
|
|
|
251
251
|
var t, e;
|
|
252
252
|
return (e = (t = l.value) == null ? void 0 : t.handleClose) == null ? void 0 : e.call(t);
|
|
253
253
|
}
|
|
254
|
-
}), () => y(Qt,
|
|
254
|
+
}), () => y(Qt, C({ ref: l, class: s.b() }, c), i);
|
|
255
255
|
}
|
|
256
|
-
}), os =
|
|
256
|
+
}), os = w(ns), ss = v({
|
|
257
257
|
name: "SyDateTimePicker",
|
|
258
258
|
inheritAttrs: !1,
|
|
259
259
|
setup(n, { expose: o }) {
|
|
260
|
-
const s = R("date-time-picker"), c = _(), i =
|
|
260
|
+
const s = R("date-time-picker"), c = _(), i = x(), l = D();
|
|
261
261
|
return o({
|
|
262
262
|
focus: () => {
|
|
263
263
|
var t, e;
|
|
@@ -275,76 +275,76 @@ const Yo = v({
|
|
|
275
275
|
var t, e;
|
|
276
276
|
return (e = (t = l.value) == null ? void 0 : t.handleClose) == null ? void 0 : e.call(t);
|
|
277
277
|
}
|
|
278
|
-
}), () => y(Qt,
|
|
278
|
+
}), () => y(Qt, C({ ref: l, class: s.b(), type: "datetime" }, c), i);
|
|
279
279
|
}
|
|
280
|
-
}), Ll =
|
|
280
|
+
}), Ll = w(ss), as = v({
|
|
281
281
|
name: "SyDescriptions",
|
|
282
282
|
inheritAttrs: !1,
|
|
283
283
|
setup() {
|
|
284
|
-
const n = R("descriptions"), o = _(), s =
|
|
285
|
-
return () => y(Mn,
|
|
284
|
+
const n = R("descriptions"), o = _(), s = x();
|
|
285
|
+
return () => y(Mn, C({ class: n.b() }, o), s);
|
|
286
286
|
}
|
|
287
287
|
}), ls = v({
|
|
288
288
|
name: "ElDescriptionsItem",
|
|
289
289
|
inheritAttrs: !1,
|
|
290
290
|
setup() {
|
|
291
|
-
const n = R("descriptions-item"), o = _(), s =
|
|
292
|
-
return () => y(In,
|
|
291
|
+
const n = R("descriptions-item"), o = _(), s = x();
|
|
292
|
+
return () => y(In, C({ class: n.b() }, o), s);
|
|
293
293
|
}
|
|
294
|
-
}), Vl =
|
|
294
|
+
}), Vl = w(as), Ml = w(ls, "SyDescriptionsItem"), rs = v({
|
|
295
295
|
name: "SyDialog",
|
|
296
296
|
inheritAttrs: !1,
|
|
297
297
|
setup() {
|
|
298
|
-
const n = R("dialog"), o = _(), s =
|
|
299
|
-
return () => y(Fn,
|
|
298
|
+
const n = R("dialog"), o = _(), s = x();
|
|
299
|
+
return () => y(Fn, C({ class: n.b() }, o), s);
|
|
300
300
|
}
|
|
301
|
-
}), Il =
|
|
301
|
+
}), Il = w(rs), cs = v({
|
|
302
302
|
name: "SyDivider",
|
|
303
303
|
inheritAttrs: !1,
|
|
304
304
|
setup() {
|
|
305
|
-
const n = R("divider"), o = _(), s =
|
|
306
|
-
return () => y(Dn,
|
|
305
|
+
const n = R("divider"), o = _(), s = x();
|
|
306
|
+
return () => y(Dn, C({ class: n.b() }, o), s);
|
|
307
307
|
}
|
|
308
|
-
}), Fl =
|
|
308
|
+
}), Fl = w(cs), is = v({
|
|
309
309
|
name: "SyDrawer",
|
|
310
310
|
inheritAttrs: !1,
|
|
311
311
|
setup() {
|
|
312
|
-
const n = R("drawer"), o = _(), s =
|
|
313
|
-
return () => y(
|
|
312
|
+
const n = R("drawer"), o = _(), s = x();
|
|
313
|
+
return () => y(zn, C({ class: n.b() }, o), s);
|
|
314
314
|
}
|
|
315
|
-
}), us =
|
|
315
|
+
}), us = w(is), ds = v({
|
|
316
316
|
name: "SyDropdown",
|
|
317
317
|
inheritAttrs: !1,
|
|
318
318
|
setup() {
|
|
319
|
-
const n = R("dropdown"), o = _(), s =
|
|
320
|
-
return () => y(
|
|
319
|
+
const n = R("dropdown"), o = _(), s = x();
|
|
320
|
+
return () => y(On, C({ class: n.b() }, o), s);
|
|
321
321
|
}
|
|
322
322
|
}), ps = v({
|
|
323
323
|
name: "SyDropdownMenu",
|
|
324
324
|
inheritAttrs: !1,
|
|
325
325
|
setup() {
|
|
326
|
-
const n = R("dropdown-menu"), o = _(), s =
|
|
327
|
-
return () => y(
|
|
326
|
+
const n = R("dropdown-menu"), o = _(), s = x();
|
|
327
|
+
return () => y(Hn, C({ class: n.b() }, o), s);
|
|
328
328
|
}
|
|
329
329
|
}), fs = v({
|
|
330
330
|
name: "SyDropdownItem",
|
|
331
331
|
inheritAttrs: !1,
|
|
332
332
|
setup() {
|
|
333
|
-
const n = R("dropdown-item"), o = _(), s =
|
|
334
|
-
return () => y(
|
|
333
|
+
const n = R("dropdown-item"), o = _(), s = x();
|
|
334
|
+
return () => y(Nn, C({ class: n.b() }, o), s);
|
|
335
335
|
}
|
|
336
|
-
}), Dl =
|
|
336
|
+
}), Dl = w(ds), zl = w(ps), Ol = w(fs), ms = v({
|
|
337
337
|
name: "SyEmpty",
|
|
338
338
|
inheritAttrs: !1,
|
|
339
339
|
setup() {
|
|
340
|
-
const n = R("empty"), o = _(), s =
|
|
341
|
-
return () => y(En,
|
|
340
|
+
const n = R("empty"), o = _(), s = x();
|
|
341
|
+
return () => y(En, C({ class: n.b() }, o), s);
|
|
342
342
|
}
|
|
343
|
-
}), hs =
|
|
343
|
+
}), hs = w(ms), vs = v({
|
|
344
344
|
name: "SyForm",
|
|
345
345
|
inheritAttrs: !1,
|
|
346
346
|
setup(n, { expose: o }) {
|
|
347
|
-
const s = R("form"), c = _(), i =
|
|
347
|
+
const s = R("form"), c = _(), i = x(), l = D();
|
|
348
348
|
return o({
|
|
349
349
|
validate: (...t) => {
|
|
350
350
|
var e, a;
|
|
@@ -366,13 +366,13 @@ const Yo = v({
|
|
|
366
366
|
var e, a;
|
|
367
367
|
return (a = (e = l.value) == null ? void 0 : e.clearValidate) == null ? void 0 : a.call(e, ...t);
|
|
368
368
|
}
|
|
369
|
-
}), () => y(qn,
|
|
369
|
+
}), () => y(qn, C({ ref: l, class: s.b() }, c), i);
|
|
370
370
|
}
|
|
371
371
|
}), ys = v({
|
|
372
372
|
name: "SyFormItem",
|
|
373
373
|
inheritAttrs: !1,
|
|
374
374
|
setup(n, { expose: o }) {
|
|
375
|
-
const s = R("form-item"), c = _(), i =
|
|
375
|
+
const s = R("form-item"), c = _(), i = x(), l = D();
|
|
376
376
|
return o({
|
|
377
377
|
resetField: () => {
|
|
378
378
|
var t, e;
|
|
@@ -382,32 +382,32 @@ const Yo = v({
|
|
|
382
382
|
var t, e;
|
|
383
383
|
return (e = (t = l.value) == null ? void 0 : t.clearValidate) == null ? void 0 : e.call(t);
|
|
384
384
|
}
|
|
385
|
-
}), () => y(Un,
|
|
385
|
+
}), () => y(Un, C({ ref: l, class: s.b() }, c), i);
|
|
386
386
|
}
|
|
387
|
-
}), bs =
|
|
387
|
+
}), bs = w(vs), gs = w(ys), Ss = v({
|
|
388
388
|
name: "SyIcon",
|
|
389
389
|
inheritAttrs: !1,
|
|
390
390
|
setup() {
|
|
391
|
-
const n = _(), o =
|
|
392
|
-
return () => y(Kn,
|
|
391
|
+
const n = _(), o = x();
|
|
392
|
+
return () => y(Kn, C(n), o);
|
|
393
393
|
}
|
|
394
|
-
}), Ne =
|
|
394
|
+
}), Ne = w(Ss), Cs = v({
|
|
395
395
|
name: "SyImage",
|
|
396
396
|
inheritAttrs: !1,
|
|
397
397
|
setup(n, { expose: o }) {
|
|
398
|
-
const s = R("image"), c = _(), i =
|
|
398
|
+
const s = R("image"), c = _(), i = x(), l = D();
|
|
399
399
|
return o({
|
|
400
400
|
showPreview: () => {
|
|
401
401
|
var t, e;
|
|
402
402
|
return (e = (t = l.value) == null ? void 0 : t.showPreview) == null ? void 0 : e.call(t);
|
|
403
403
|
}
|
|
404
|
-
}), () => y(jn,
|
|
404
|
+
}), () => y(jn, C({ ref: l, class: s.b() }, c), i);
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), Nl = w(Cs), ks = v({
|
|
407
407
|
name: "SyInput",
|
|
408
408
|
inheritAttrs: !1,
|
|
409
409
|
setup(n, { expose: o }) {
|
|
410
|
-
const s = R("input"), c = _(), i =
|
|
410
|
+
const s = R("input"), c = _(), i = x(), l = D();
|
|
411
411
|
return o({
|
|
412
412
|
focus: () => {
|
|
413
413
|
var t, e;
|
|
@@ -429,13 +429,13 @@ const Yo = v({
|
|
|
429
429
|
var t, e;
|
|
430
430
|
return (e = (t = l.value) == null ? void 0 : t.resizeTextarea) == null ? void 0 : e.call(t);
|
|
431
431
|
}
|
|
432
|
-
}), () => y(Wn,
|
|
432
|
+
}), () => y(Wn, C({ ref: l, class: s.b() }, c), i);
|
|
433
433
|
}
|
|
434
|
-
}), sn =
|
|
434
|
+
}), sn = w(ks), As = v({
|
|
435
435
|
name: "SyInputNumber",
|
|
436
436
|
inheritAttrs: !1,
|
|
437
437
|
setup(n, { expose: o }) {
|
|
438
|
-
const s = R("input-number"), c = _(), i =
|
|
438
|
+
const s = R("input-number"), c = _(), i = x(), l = D();
|
|
439
439
|
return o({
|
|
440
440
|
focus: () => {
|
|
441
441
|
var t, e;
|
|
@@ -445,59 +445,59 @@ const Yo = v({
|
|
|
445
445
|
var t, e;
|
|
446
446
|
return (e = (t = l.value) == null ? void 0 : t.blur) == null ? void 0 : e.call(t);
|
|
447
447
|
}
|
|
448
|
-
}), () => y(Gn,
|
|
448
|
+
}), () => y(Gn, C({ ref: l, class: s.b() }, c), i);
|
|
449
449
|
}
|
|
450
|
-
}), ws =
|
|
450
|
+
}), ws = w(As), xs = v({
|
|
451
451
|
name: "SyRow",
|
|
452
452
|
inheritAttrs: !1,
|
|
453
453
|
setup() {
|
|
454
|
-
const n = R("row"), o = _(), s =
|
|
455
|
-
return () => y(Yn,
|
|
454
|
+
const n = R("row"), o = _(), s = x();
|
|
455
|
+
return () => y(Yn, C({ class: n.b() }, o), s);
|
|
456
456
|
}
|
|
457
457
|
}), _s = v({
|
|
458
458
|
name: "SyCol",
|
|
459
459
|
inheritAttrs: !1,
|
|
460
460
|
setup() {
|
|
461
|
-
const n = R("col"), o = _(), s =
|
|
462
|
-
return () => y(Qn,
|
|
461
|
+
const n = R("col"), o = _(), s = x();
|
|
462
|
+
return () => y(Qn, C({ class: n.b() }, o), s);
|
|
463
463
|
}
|
|
464
|
-
}),
|
|
464
|
+
}), Hl = w(xs), El = w(_s), Rs = v({
|
|
465
465
|
name: "SyLink",
|
|
466
466
|
inheritAttrs: !1,
|
|
467
467
|
setup() {
|
|
468
|
-
const n = R("link"), o = _(), s =
|
|
469
|
-
return () => y(Jn,
|
|
468
|
+
const n = R("link"), o = _(), s = x();
|
|
469
|
+
return () => y(Jn, C({ class: n.b() }, o), s);
|
|
470
470
|
}
|
|
471
|
-
}), ql =
|
|
471
|
+
}), ql = w(Rs), Re = "sy-loading", st = "element-loading-custom-class";
|
|
472
472
|
function Ps(n) {
|
|
473
473
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
474
474
|
}
|
|
475
475
|
function Ts(n) {
|
|
476
476
|
if (n == null || n === "")
|
|
477
|
-
return
|
|
477
|
+
return Re;
|
|
478
478
|
const o = String(r(n));
|
|
479
|
-
return o.includes(
|
|
479
|
+
return o.includes(Re) ? o : `${Re} ${o}`;
|
|
480
480
|
}
|
|
481
481
|
function $s(n) {
|
|
482
482
|
if (n === void 0)
|
|
483
|
-
return { customClass:
|
|
484
|
-
const o =
|
|
485
|
-
return s === void 0 ? o.customClass =
|
|
483
|
+
return { customClass: Re };
|
|
484
|
+
const o = N({}, n), s = o.customClass;
|
|
485
|
+
return s === void 0 ? o.customClass = Re : typeof s == "string" && (o.customClass = `${Re} ${s}`), o;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Nt(n, o) {
|
|
488
488
|
if (!o.value)
|
|
489
489
|
return o;
|
|
490
490
|
if (Ps(o.value))
|
|
491
|
-
return ce(
|
|
492
|
-
value: ce(
|
|
491
|
+
return ce(N({}, o), {
|
|
492
|
+
value: ce(N({}, o.value), {
|
|
493
493
|
customClass: Ts(o.value.customClass)
|
|
494
494
|
})
|
|
495
495
|
});
|
|
496
496
|
const s = n.getAttribute(st);
|
|
497
|
-
return s ? s.includes(
|
|
497
|
+
return s ? s.includes(Re) || n.setAttribute(st, `${Re} ${s}`) : n.setAttribute(st, Re), o;
|
|
498
498
|
}
|
|
499
|
-
const ge = Yt,
|
|
500
|
-
Object.defineProperty(
|
|
499
|
+
const ge = Yt, Ze = (n, o) => it.service($s(n), o);
|
|
500
|
+
Object.defineProperty(Ze, "_context", {
|
|
501
501
|
get() {
|
|
502
502
|
return it.service._context;
|
|
503
503
|
},
|
|
@@ -508,11 +508,11 @@ Object.defineProperty(Xe, "_context", {
|
|
|
508
508
|
const at = {
|
|
509
509
|
mounted(n, o, s, c) {
|
|
510
510
|
var i;
|
|
511
|
-
(i = ge.mounted) == null || i.call(ge, n,
|
|
511
|
+
(i = ge.mounted) == null || i.call(ge, n, Nt(n, o), s, c);
|
|
512
512
|
},
|
|
513
513
|
updated(n, o, s, c) {
|
|
514
514
|
var i;
|
|
515
|
-
(i = ge.updated) == null || i.call(ge, n,
|
|
515
|
+
(i = ge.updated) == null || i.call(ge, n, Nt(n, o), s, c);
|
|
516
516
|
},
|
|
517
517
|
unmounted(n, o, s, c) {
|
|
518
518
|
var i;
|
|
@@ -526,132 +526,132 @@ const at = {
|
|
|
526
526
|
}
|
|
527
527
|
}, Ul = {
|
|
528
528
|
install(n) {
|
|
529
|
-
|
|
529
|
+
Ze._context = n._context, at._context = n._context, n.directive("loading", at), n.config.globalProperties.$loading = Ze;
|
|
530
530
|
},
|
|
531
531
|
directive: at,
|
|
532
|
-
service:
|
|
532
|
+
service: Ze
|
|
533
533
|
}, Bs = v({
|
|
534
534
|
name: "SyMenu",
|
|
535
535
|
inheritAttrs: !1,
|
|
536
536
|
setup() {
|
|
537
|
-
const n = R("menu"), o = _(), s =
|
|
538
|
-
return () => y(Zn,
|
|
537
|
+
const n = R("menu"), o = _(), s = x();
|
|
538
|
+
return () => y(Zn, C({ class: n.b() }, o), s);
|
|
539
539
|
}
|
|
540
540
|
}), Ls = v({
|
|
541
541
|
name: "SySubMenu",
|
|
542
542
|
inheritAttrs: !1,
|
|
543
543
|
setup() {
|
|
544
|
-
const n = R("sub-menu"), o = _(), s =
|
|
545
|
-
return () => y(to,
|
|
544
|
+
const n = R("sub-menu"), o = _(), s = x();
|
|
545
|
+
return () => y(to, C({ class: n.b() }, o), s);
|
|
546
546
|
}
|
|
547
547
|
}), Vs = v({
|
|
548
548
|
name: "SyMenuItem",
|
|
549
549
|
inheritAttrs: !1,
|
|
550
550
|
setup() {
|
|
551
|
-
const n = R("menu-item"), o = _(), s =
|
|
552
|
-
return () => y(Xn,
|
|
551
|
+
const n = R("menu-item"), o = _(), s = x();
|
|
552
|
+
return () => y(Xn, C({ class: n.b() }, o), s);
|
|
553
553
|
}
|
|
554
554
|
}), Ms = v({
|
|
555
555
|
name: "SyMenuItemGroup",
|
|
556
556
|
inheritAttrs: !1,
|
|
557
557
|
setup() {
|
|
558
|
-
const n = R("menu-item-group"), o = _(), s =
|
|
559
|
-
return () => y(eo,
|
|
558
|
+
const n = R("menu-item-group"), o = _(), s = x();
|
|
559
|
+
return () => y(eo, C({ class: n.b() }, o), s);
|
|
560
560
|
}
|
|
561
|
-
}), Kl =
|
|
562
|
-
function
|
|
561
|
+
}), Kl = w(Bs), jl = w(Ls), Wl = w(Vs), Gl = w(Ms), Ge = "sy-message";
|
|
562
|
+
function Ee(n) {
|
|
563
563
|
if (n === void 0)
|
|
564
|
-
return { customClass:
|
|
564
|
+
return { customClass: Ge };
|
|
565
565
|
if (typeof n != "object" || n.__v_isVNode === !0)
|
|
566
|
-
return { message: n, customClass:
|
|
566
|
+
return { message: n, customClass: Ge };
|
|
567
567
|
const o = n;
|
|
568
|
-
return ce(
|
|
568
|
+
return ce(N({}, o), { customClass: o.customClass ? `${Ge} ${o.customClass}` : Ge });
|
|
569
569
|
}
|
|
570
|
-
const mt = (n, o) =>
|
|
571
|
-
mt.closeAll = (n) =>
|
|
572
|
-
mt.closeAllByPlacement = (n) =>
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
Object.defineProperty(
|
|
570
|
+
const mt = (n, o) => Pe(Ee(n), o);
|
|
571
|
+
mt.closeAll = (n) => Pe.closeAll(n);
|
|
572
|
+
mt.closeAllByPlacement = (n) => Pe.closeAllByPlacement(n);
|
|
573
|
+
const qe = mt;
|
|
574
|
+
qe.success = (n, o) => Pe.success(Ee(n), o);
|
|
575
|
+
qe.warning = (n, o) => Pe.warning(Ee(n), o);
|
|
576
|
+
qe.info = (n, o) => Pe.info(Ee(n), o);
|
|
577
|
+
qe.error = (n, o) => Pe.error(Ee(n), o);
|
|
578
|
+
Object.defineProperty(qe, "_context", {
|
|
579
579
|
get() {
|
|
580
|
-
return
|
|
580
|
+
return Pe._context;
|
|
581
581
|
},
|
|
582
582
|
set(n) {
|
|
583
|
-
|
|
583
|
+
Pe._context = n;
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
586
|
const lt = "sy-message-box";
|
|
587
|
-
function
|
|
588
|
-
return n ? ce(
|
|
587
|
+
function tt(n) {
|
|
588
|
+
return n ? ce(N({}, n), { customClass: n.customClass ? `${lt} ${n.customClass}` : lt }) : { customClass: lt };
|
|
589
589
|
}
|
|
590
|
-
const
|
|
591
|
-
|
|
590
|
+
const Ue = (n, o) => Me(tt(n), o);
|
|
591
|
+
Ue.alert = (...n) => {
|
|
592
592
|
const [o, s, c, i] = n;
|
|
593
|
-
return
|
|
593
|
+
return Me.alert(o, s, tt(c), i);
|
|
594
594
|
};
|
|
595
|
-
|
|
595
|
+
Ue.confirm = (...n) => {
|
|
596
596
|
const [o, s, c, i] = n;
|
|
597
|
-
return
|
|
597
|
+
return Me.confirm(o, s, tt(c), i);
|
|
598
598
|
};
|
|
599
|
-
|
|
599
|
+
Ue.prompt = (...n) => {
|
|
600
600
|
const [o, s, c, i] = n;
|
|
601
|
-
return
|
|
601
|
+
return Me.prompt(o, s, tt(c), i);
|
|
602
602
|
};
|
|
603
|
-
|
|
604
|
-
const Is =
|
|
603
|
+
Ue.close = () => Me.close();
|
|
604
|
+
const Is = Ue;
|
|
605
605
|
Object.defineProperty(Is, "_context", {
|
|
606
606
|
get() {
|
|
607
|
-
return
|
|
607
|
+
return Me._context;
|
|
608
608
|
},
|
|
609
609
|
set(n) {
|
|
610
|
-
|
|
610
|
+
Me._context = n;
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
|
-
const
|
|
614
|
-
function
|
|
613
|
+
const Qe = "sy-notification";
|
|
614
|
+
function Ke(n) {
|
|
615
615
|
if (n === void 0)
|
|
616
|
-
return { customClass:
|
|
616
|
+
return { customClass: Qe };
|
|
617
617
|
if (typeof n != "object" || n.__v_isVNode === !0)
|
|
618
|
-
return { message: n, customClass:
|
|
618
|
+
return { message: n, customClass: Qe };
|
|
619
619
|
const o = n;
|
|
620
|
-
return ce(
|
|
620
|
+
return ce(N({}, o), { customClass: o.customClass ? `${Qe} ${o.customClass}` : Qe });
|
|
621
621
|
}
|
|
622
|
-
const
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
const Fs =
|
|
622
|
+
const De = (n, o) => Le(Ke(n), o);
|
|
623
|
+
De.success = (n, o) => Le.success(Ke(n), o);
|
|
624
|
+
De.warning = (n, o) => Le.warning(Ke(n), o);
|
|
625
|
+
De.info = (n, o) => Le.info(Ke(n), o);
|
|
626
|
+
De.error = (n, o) => Le.error(Ke(n), o);
|
|
627
|
+
De.closeAll = () => Le.closeAll();
|
|
628
|
+
const Fs = De;
|
|
629
629
|
Object.defineProperty(Fs, "_context", {
|
|
630
630
|
get() {
|
|
631
|
-
return
|
|
631
|
+
return Le._context;
|
|
632
632
|
},
|
|
633
633
|
set(n) {
|
|
634
|
-
|
|
634
|
+
Le._context = n;
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
637
|
const Ds = v({
|
|
638
638
|
name: "SyPagination",
|
|
639
639
|
inheritAttrs: !1,
|
|
640
640
|
setup() {
|
|
641
|
-
const n = R("pagination"), o = _(), s =
|
|
642
|
-
return () => y(no,
|
|
641
|
+
const n = R("pagination"), o = _(), s = x();
|
|
642
|
+
return () => y(no, C({ class: n.b() }, o), s);
|
|
643
643
|
}
|
|
644
|
-
}),
|
|
644
|
+
}), zs = w(Ds), Os = v({
|
|
645
645
|
name: "SyPopconfirm",
|
|
646
646
|
inheritAttrs: !1,
|
|
647
647
|
setup() {
|
|
648
|
-
const n = R("popconfirm"), o = _(), s =
|
|
649
|
-
return () => y(oo,
|
|
648
|
+
const n = R("popconfirm"), o = _(), s = x();
|
|
649
|
+
return () => y(oo, C({ class: n.b() }, o), s);
|
|
650
650
|
}
|
|
651
|
-
}), Ql =
|
|
652
|
-
function
|
|
651
|
+
}), Ql = w(Os);
|
|
652
|
+
function Ns(n, o) {
|
|
653
653
|
var t;
|
|
654
|
-
const s =
|
|
654
|
+
const s = N({}, n), c = s.class, i = (t = s.popperClass) != null ? t : s["popper-class"];
|
|
655
655
|
delete s.class, delete s.popperClass, delete s["popper-class"];
|
|
656
656
|
const l = [o, i, c].flat(10).filter((e) => typeof e == "string" && e.length > 0);
|
|
657
657
|
return {
|
|
@@ -659,49 +659,49 @@ function Os(n, o) {
|
|
|
659
659
|
popperClass: l.length ? l : [o]
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Hs = v({
|
|
663
663
|
name: "SyPopover",
|
|
664
664
|
inheritAttrs: !1,
|
|
665
665
|
setup() {
|
|
666
|
-
const n = R("popover"), o = _(), s =
|
|
666
|
+
const n = R("popover"), o = _(), s = x();
|
|
667
667
|
return () => {
|
|
668
|
-
const { rest: c, popperClass: i } =
|
|
669
|
-
return y(so,
|
|
668
|
+
const { rest: c, popperClass: i } = Ns(o, n.b());
|
|
669
|
+
return y(so, C(c, { popperClass: i }), s);
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
}), Yl =
|
|
672
|
+
}), Yl = w(Hs), Es = v({
|
|
673
673
|
name: "SyProgress",
|
|
674
674
|
inheritAttrs: !1,
|
|
675
675
|
setup() {
|
|
676
|
-
const n = R("progress"), o = _(), s =
|
|
677
|
-
return () => y(ao,
|
|
676
|
+
const n = R("progress"), o = _(), s = x();
|
|
677
|
+
return () => y(ao, C({ class: n.b() }, o), s);
|
|
678
678
|
}
|
|
679
|
-
}), Jl =
|
|
679
|
+
}), Jl = w(Es), qs = v({
|
|
680
680
|
name: "SyRadio",
|
|
681
681
|
inheritAttrs: !1,
|
|
682
682
|
setup() {
|
|
683
|
-
const n = R("radio"), o = _(), s =
|
|
684
|
-
return () => y(lo,
|
|
683
|
+
const n = R("radio"), o = _(), s = x();
|
|
684
|
+
return () => y(lo, C({ class: n.b() }, o), s);
|
|
685
685
|
}
|
|
686
686
|
}), Us = v({
|
|
687
687
|
name: "SyRadioGroup",
|
|
688
688
|
inheritAttrs: !1,
|
|
689
689
|
setup() {
|
|
690
|
-
const n = R("radio-group"), o = _(), s =
|
|
691
|
-
return () => y(ro,
|
|
690
|
+
const n = R("radio-group"), o = _(), s = x();
|
|
691
|
+
return () => y(ro, C({ class: n.b() }, o), s);
|
|
692
692
|
}
|
|
693
|
-
}), an =
|
|
693
|
+
}), an = w(qs), Ks = w(Us), js = v({
|
|
694
694
|
name: "SyRadioButton",
|
|
695
695
|
inheritAttrs: !1,
|
|
696
696
|
setup() {
|
|
697
|
-
const n = R("radio-button"), o = _(), s =
|
|
698
|
-
return () => y(co,
|
|
697
|
+
const n = R("radio-button"), o = _(), s = x();
|
|
698
|
+
return () => y(co, C({ class: n.b() }, o), s);
|
|
699
699
|
}
|
|
700
|
-
}), Ws =
|
|
700
|
+
}), Ws = w(js), Gs = v({
|
|
701
701
|
name: "SyScrollbar",
|
|
702
702
|
inheritAttrs: !1,
|
|
703
703
|
setup(n, { expose: o }) {
|
|
704
|
-
const s = R("scrollbar"), c = _(), i =
|
|
704
|
+
const s = R("scrollbar"), c = _(), i = x(), l = D();
|
|
705
705
|
return o({
|
|
706
706
|
handleScroll: () => {
|
|
707
707
|
var t, e;
|
|
@@ -727,13 +727,13 @@ const Ns = v({
|
|
|
727
727
|
var t;
|
|
728
728
|
return (t = l.value) == null ? void 0 : t.wrapRef;
|
|
729
729
|
}
|
|
730
|
-
}), () => y(io,
|
|
730
|
+
}), () => y(io, C({ ref: l, class: s.b() }, c), i);
|
|
731
731
|
}
|
|
732
|
-
}), Zl =
|
|
732
|
+
}), Zl = w(Gs), Qs = v({
|
|
733
733
|
name: "SySelect",
|
|
734
734
|
inheritAttrs: !1,
|
|
735
735
|
setup(n, { expose: o }) {
|
|
736
|
-
const s = R("select"), c = _(), i =
|
|
736
|
+
const s = R("select"), c = _(), i = x(), l = D();
|
|
737
737
|
return o({
|
|
738
738
|
focus: () => {
|
|
739
739
|
var t, e;
|
|
@@ -743,20 +743,20 @@ const Ns = v({
|
|
|
743
743
|
var t, e;
|
|
744
744
|
return (e = (t = l.value) == null ? void 0 : t.blur) == null ? void 0 : e.call(t);
|
|
745
745
|
}
|
|
746
|
-
}), () => y(po,
|
|
746
|
+
}), () => y(po, C({ ref: l, class: s.b() }, c), i);
|
|
747
747
|
}
|
|
748
748
|
}), Ys = v({
|
|
749
749
|
name: "SyOption",
|
|
750
750
|
inheritAttrs: !1,
|
|
751
751
|
setup() {
|
|
752
|
-
const n = R("option"), o = _(), s =
|
|
753
|
-
return () => y(uo,
|
|
752
|
+
const n = R("option"), o = _(), s = x();
|
|
753
|
+
return () => y(uo, C({ class: n.b() }, o), s);
|
|
754
754
|
}
|
|
755
|
-
}), Js =
|
|
755
|
+
}), Js = w(Qs), Zs = w(Ys), Xs = Jt, ea = v({
|
|
756
756
|
name: "SySelectV2",
|
|
757
757
|
inheritAttrs: !1,
|
|
758
758
|
setup(n, { expose: o }) {
|
|
759
|
-
const s = R("select-v2"), c = _(), i =
|
|
759
|
+
const s = R("select-v2"), c = _(), i = x(), l = D();
|
|
760
760
|
return o({
|
|
761
761
|
focus: () => {
|
|
762
762
|
var t, e;
|
|
@@ -774,70 +774,70 @@ const Ns = v({
|
|
|
774
774
|
var t, e;
|
|
775
775
|
return (e = (t = l.value) == null ? void 0 : t.toggleMenu) == null ? void 0 : e.call(t);
|
|
776
776
|
}
|
|
777
|
-
}), () => y(Xs,
|
|
777
|
+
}), () => y(Xs, C({ ref: l, class: s.b() }, c), i);
|
|
778
778
|
}
|
|
779
|
-
}), Xl =
|
|
779
|
+
}), Xl = w(ea), ta = v({
|
|
780
780
|
name: "SySkeleton",
|
|
781
781
|
inheritAttrs: !1,
|
|
782
782
|
setup(n, { expose: o }) {
|
|
783
|
-
const s = R("skeleton"), c = _(), i =
|
|
783
|
+
const s = R("skeleton"), c = _(), i = x(), l = D();
|
|
784
784
|
return o({
|
|
785
785
|
get uiLoading() {
|
|
786
786
|
var t;
|
|
787
787
|
return (t = l.value) == null ? void 0 : t.uiLoading;
|
|
788
788
|
}
|
|
789
|
-
}), () => y(fo,
|
|
789
|
+
}), () => y(fo, C({ ref: l, class: s.b() }, c), i);
|
|
790
790
|
}
|
|
791
791
|
}), na = v({
|
|
792
792
|
name: "SySkeletonItem",
|
|
793
793
|
inheritAttrs: !1,
|
|
794
794
|
setup() {
|
|
795
|
-
const n = R("skeleton-item"), o = _(), s =
|
|
796
|
-
return () => y(mo,
|
|
795
|
+
const n = R("skeleton-item"), o = _(), s = x();
|
|
796
|
+
return () => y(mo, C({ class: n.b() }, o), s);
|
|
797
797
|
}
|
|
798
|
-
}), er =
|
|
798
|
+
}), er = w(ta), tr = w(na), oa = v({
|
|
799
799
|
name: "SySlider",
|
|
800
800
|
inheritAttrs: !1,
|
|
801
801
|
setup() {
|
|
802
|
-
const n = R("slider"), o = _(), s =
|
|
803
|
-
return () => y(Zt,
|
|
802
|
+
const n = R("slider"), o = _(), s = x(), c = D();
|
|
803
|
+
return () => y(Zt, C({ ref: c, class: n.b() }, o), s);
|
|
804
804
|
}
|
|
805
|
-
}), nr =
|
|
805
|
+
}), nr = w(oa), sa = v({
|
|
806
806
|
name: "SySpace",
|
|
807
807
|
inheritAttrs: !1,
|
|
808
808
|
setup() {
|
|
809
|
-
const n = R("space"), o = _(), s =
|
|
810
|
-
return () => y(ho,
|
|
809
|
+
const n = R("space"), o = _(), s = x();
|
|
810
|
+
return () => y(ho, C({ class: n.b() }, o), s);
|
|
811
811
|
}
|
|
812
|
-
}), or =
|
|
812
|
+
}), or = w(sa), aa = v({
|
|
813
813
|
name: "SySteps",
|
|
814
814
|
inheritAttrs: !1,
|
|
815
815
|
setup() {
|
|
816
|
-
const n = R("steps"), o = _(), s =
|
|
817
|
-
return () => y(yo,
|
|
816
|
+
const n = R("steps"), o = _(), s = x();
|
|
817
|
+
return () => y(yo, C({ class: n.b() }, o), s);
|
|
818
818
|
}
|
|
819
819
|
}), la = v({
|
|
820
820
|
name: "SyStep",
|
|
821
821
|
inheritAttrs: !1,
|
|
822
822
|
setup() {
|
|
823
|
-
const n = R("step"), o = _(), s =
|
|
824
|
-
return () => y(vo,
|
|
823
|
+
const n = R("step"), o = _(), s = x();
|
|
824
|
+
return () => y(vo, C({ class: n.b() }, o), s);
|
|
825
825
|
}
|
|
826
|
-
}), sr =
|
|
826
|
+
}), sr = w(aa), ar = w(la), ra = v({
|
|
827
827
|
name: "SySwitch",
|
|
828
828
|
inheritAttrs: !1,
|
|
829
829
|
setup(n, { expose: o }) {
|
|
830
|
-
const s = R("switch"), c = _(), i =
|
|
830
|
+
const s = R("switch"), c = _(), i = x(), l = D();
|
|
831
831
|
return o({ focus: () => {
|
|
832
832
|
var t, e;
|
|
833
833
|
return (e = (t = l.value) == null ? void 0 : t.focus) == null ? void 0 : e.call(t);
|
|
834
|
-
} }), () => y(bo,
|
|
834
|
+
} }), () => y(bo, C({ ref: l, class: s.b() }, c), i);
|
|
835
835
|
}
|
|
836
|
-
}), ut =
|
|
836
|
+
}), ut = w(ra), ca = v({
|
|
837
837
|
name: "SyTable",
|
|
838
838
|
inheritAttrs: !1,
|
|
839
839
|
setup(n, { expose: o }) {
|
|
840
|
-
const s = R("table"), c = _(), i =
|
|
840
|
+
const s = R("table"), c = _(), i = x(), l = D();
|
|
841
841
|
return o({
|
|
842
842
|
clearSelection: () => {
|
|
843
843
|
var t, e;
|
|
@@ -891,15 +891,15 @@ const Ns = v({
|
|
|
891
891
|
var e, a;
|
|
892
892
|
return (a = (e = l.value) == null ? void 0 : e.setScrollLeft) == null ? void 0 : a.call(e, ...t);
|
|
893
893
|
}
|
|
894
|
-
}), () => y(go,
|
|
894
|
+
}), () => y(go, C({ ref: l, class: s.b() }, c), i);
|
|
895
895
|
}
|
|
896
896
|
}), ia = v({
|
|
897
897
|
name: "SyTableColumn",
|
|
898
898
|
inheritAttrs: !1,
|
|
899
899
|
setup() {
|
|
900
|
-
const n = R("table-column"), o = _(), s =
|
|
900
|
+
const n = R("table-column"), o = _(), s = x();
|
|
901
901
|
return () => {
|
|
902
|
-
const c = s.default ? ce(
|
|
902
|
+
const c = s.default ? ce(N({}, s), {
|
|
903
903
|
default: (...i) => {
|
|
904
904
|
var l;
|
|
905
905
|
return ((l = s.default(...i)) != null ? l : []).map(
|
|
@@ -910,14 +910,14 @@ const Ns = v({
|
|
|
910
910
|
);
|
|
911
911
|
}
|
|
912
912
|
}) : s;
|
|
913
|
-
return y(Dt,
|
|
913
|
+
return y(Dt, C({ class: n.b() }, o), c);
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
}), ln =
|
|
916
|
+
}), ln = w(ca), xe = w(ia), ua = v({
|
|
917
917
|
name: "SyTabs",
|
|
918
918
|
inheritAttrs: !1,
|
|
919
919
|
setup(n, { expose: o }) {
|
|
920
|
-
const s = R("tabs"), c = _(), i =
|
|
920
|
+
const s = R("tabs"), c = _(), i = x(), l = D();
|
|
921
921
|
return o({
|
|
922
922
|
get currentName() {
|
|
923
923
|
var t;
|
|
@@ -927,36 +927,36 @@ const Ns = v({
|
|
|
927
927
|
var t;
|
|
928
928
|
return (t = l.value) == null ? void 0 : t.tabNavRef;
|
|
929
929
|
}
|
|
930
|
-
}), () => y(Co,
|
|
930
|
+
}), () => y(Co, C({ ref: l, class: s.b() }, c), i);
|
|
931
931
|
}
|
|
932
932
|
}), da = v({
|
|
933
933
|
name: "SyTabPane",
|
|
934
934
|
inheritAttrs: !1,
|
|
935
935
|
setup() {
|
|
936
|
-
const n = R("tab-pane"), o = _(), s =
|
|
937
|
-
return () => y(So,
|
|
936
|
+
const n = R("tab-pane"), o = _(), s = x();
|
|
937
|
+
return () => y(So, C({ class: n.b() }, o), s);
|
|
938
938
|
}
|
|
939
|
-
}), lr =
|
|
939
|
+
}), lr = w(ua), rr = w(da), pa = v({
|
|
940
940
|
name: "SyTag",
|
|
941
941
|
inheritAttrs: !1,
|
|
942
942
|
setup(n, { expose: o }) {
|
|
943
|
-
const s = R("tag"), c = _(), i =
|
|
943
|
+
const s = R("tag"), c = _(), i = x(), l = D();
|
|
944
944
|
return o({
|
|
945
945
|
ref: () => l.value
|
|
946
|
-
}), () => y(
|
|
946
|
+
}), () => y(ko, C({ ref: l, class: s.b() }, c), i);
|
|
947
947
|
}
|
|
948
|
-
}), rt =
|
|
948
|
+
}), rt = w(pa), fa = v({
|
|
949
949
|
name: "SyText",
|
|
950
950
|
inheritAttrs: !1,
|
|
951
951
|
setup() {
|
|
952
|
-
const n = R("text"), o = _(), s =
|
|
953
|
-
return () => y(
|
|
952
|
+
const n = R("text"), o = _(), s = x();
|
|
953
|
+
return () => y(Ao, C({ class: n.b() }, o), s);
|
|
954
954
|
}
|
|
955
|
-
}), cr =
|
|
955
|
+
}), cr = w(fa), ma = v({
|
|
956
956
|
name: "SyTimePicker",
|
|
957
957
|
inheritAttrs: !1,
|
|
958
958
|
setup(n, { expose: o }) {
|
|
959
|
-
const s = R("time-picker"), c = _(), i =
|
|
959
|
+
const s = R("time-picker"), c = _(), i = x(), l = D();
|
|
960
960
|
return o({
|
|
961
961
|
focus: () => {
|
|
962
962
|
var t, e;
|
|
@@ -974,13 +974,13 @@ const Ns = v({
|
|
|
974
974
|
var t, e;
|
|
975
975
|
return (e = (t = l.value) == null ? void 0 : t.handleClose) == null ? void 0 : e.call(t);
|
|
976
976
|
}
|
|
977
|
-
}), () => y(wo,
|
|
977
|
+
}), () => y(wo, C({ ref: l, class: s.b() }, c), i);
|
|
978
978
|
}
|
|
979
|
-
}), ha =
|
|
979
|
+
}), ha = w(ma), va = v({
|
|
980
980
|
name: "SyTimeSelect",
|
|
981
981
|
inheritAttrs: !1,
|
|
982
982
|
setup(n, { expose: o }) {
|
|
983
|
-
const s = R("time-select"), c = _(), i =
|
|
983
|
+
const s = R("time-select"), c = _(), i = x(), l = D();
|
|
984
984
|
return o({
|
|
985
985
|
focus: () => {
|
|
986
986
|
var t, e;
|
|
@@ -990,12 +990,12 @@ const Ns = v({
|
|
|
990
990
|
var t, e;
|
|
991
991
|
return (e = (t = l.value) == null ? void 0 : t.blur) == null ? void 0 : e.call(t);
|
|
992
992
|
}
|
|
993
|
-
}), () => y(
|
|
993
|
+
}), () => y(xo, C({ ref: l, class: s.b() }, c), i);
|
|
994
994
|
}
|
|
995
|
-
}), ya =
|
|
995
|
+
}), ya = w(va);
|
|
996
996
|
function ba(n, o) {
|
|
997
997
|
var t;
|
|
998
|
-
const s =
|
|
998
|
+
const s = N({}, n), c = s.class, i = (t = s.popperClass) != null ? t : s["popper-class"];
|
|
999
999
|
delete s.class, delete s.popperClass, delete s["popper-class"];
|
|
1000
1000
|
const l = [o, i, c].flat(10).filter((e) => typeof e == "string" && e.length > 0);
|
|
1001
1001
|
return {
|
|
@@ -1007,17 +1007,17 @@ const ga = v({
|
|
|
1007
1007
|
name: "SyTooltip",
|
|
1008
1008
|
inheritAttrs: !1,
|
|
1009
1009
|
setup() {
|
|
1010
|
-
const n = R("tooltip"), o = _(), s =
|
|
1010
|
+
const n = R("tooltip"), o = _(), s = x();
|
|
1011
1011
|
return () => {
|
|
1012
1012
|
const { rest: c, popperClass: i } = ba(o, n.b());
|
|
1013
|
-
return y(_o,
|
|
1013
|
+
return y(_o, C(c, { popperClass: i }), s);
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
}),
|
|
1016
|
+
}), $e = w(ga), Sa = v({
|
|
1017
1017
|
name: "SyTree",
|
|
1018
1018
|
inheritAttrs: !1,
|
|
1019
1019
|
setup(n, { expose: o }) {
|
|
1020
|
-
const s = R("tree"), c = _(), i =
|
|
1020
|
+
const s = R("tree"), c = _(), i = x(), l = D();
|
|
1021
1021
|
return o({
|
|
1022
1022
|
filter: (...t) => {
|
|
1023
1023
|
var e, a;
|
|
@@ -1091,13 +1091,13 @@ const ga = v({
|
|
|
1091
1091
|
var e, a;
|
|
1092
1092
|
return (a = (e = l.value) == null ? void 0 : e.insertAfter) == null ? void 0 : a.call(e, ...t);
|
|
1093
1093
|
}
|
|
1094
|
-
}), () => y(Ro,
|
|
1094
|
+
}), () => y(Ro, C({ ref: l, class: s.b() }, c), i);
|
|
1095
1095
|
}
|
|
1096
|
-
}), ir =
|
|
1096
|
+
}), ir = w(Sa), Ca = v({
|
|
1097
1097
|
name: "SyTreeSelect",
|
|
1098
1098
|
inheritAttrs: !1,
|
|
1099
1099
|
setup(n, { expose: o }) {
|
|
1100
|
-
const s = R("tree-select"), c = _(), i =
|
|
1100
|
+
const s = R("tree-select"), c = _(), i = x(), l = D();
|
|
1101
1101
|
return o({
|
|
1102
1102
|
focus: () => {
|
|
1103
1103
|
var t, e;
|
|
@@ -1112,16 +1112,16 @@ const ga = v({
|
|
|
1112
1112
|
return (a = (e = l.value) == null ? void 0 : e.filter) == null ? void 0 : a.call(e, t);
|
|
1113
1113
|
},
|
|
1114
1114
|
updateKeyChildren: (t, e) => {
|
|
1115
|
-
var a,
|
|
1116
|
-
return (
|
|
1115
|
+
var a, k;
|
|
1116
|
+
return (k = (a = l.value) == null ? void 0 : a.updateKeyChildren) == null ? void 0 : k.call(a, t, e);
|
|
1117
1117
|
}
|
|
1118
|
-
}), () => y(Xt,
|
|
1118
|
+
}), () => y(Xt, C({ ref: l, class: s.b() }, c), i);
|
|
1119
1119
|
}
|
|
1120
|
-
}), ur =
|
|
1120
|
+
}), ur = w(Ca), ka = v({
|
|
1121
1121
|
name: "SyUpload",
|
|
1122
1122
|
inheritAttrs: !1,
|
|
1123
1123
|
setup(n, { expose: o }) {
|
|
1124
|
-
const s = R("upload"), c = _(), i =
|
|
1124
|
+
const s = R("upload"), c = _(), i = x(), l = D();
|
|
1125
1125
|
return o({
|
|
1126
1126
|
abort: (t) => {
|
|
1127
1127
|
var e, a;
|
|
@@ -1143,9 +1143,9 @@ const ga = v({
|
|
|
1143
1143
|
var e, a;
|
|
1144
1144
|
return (a = (e = l.value) == null ? void 0 : e.handleRemove) == null ? void 0 : a.call(e, t);
|
|
1145
1145
|
}
|
|
1146
|
-
}), () => y(Po,
|
|
1146
|
+
}), () => y(Po, C({ ref: l, class: s.b() }, c), i);
|
|
1147
1147
|
}
|
|
1148
|
-
}), dr =
|
|
1148
|
+
}), dr = w(ka), Aa = {
|
|
1149
1149
|
input: sn,
|
|
1150
1150
|
"input-number": ws,
|
|
1151
1151
|
"time-picker": ha,
|
|
@@ -1178,52 +1178,52 @@ const ht = v({
|
|
|
1178
1178
|
},
|
|
1179
1179
|
emits: ["update:modelValue"],
|
|
1180
1180
|
setup(n, { emit: o }) {
|
|
1181
|
-
const s =
|
|
1181
|
+
const s = Ae("proTableEnumMap", { value: /* @__PURE__ */ new Map() }), c = O({
|
|
1182
1182
|
get: () => n.modelValue,
|
|
1183
1183
|
set: (p) => o("update:modelValue", p)
|
|
1184
|
-
}), i =
|
|
1184
|
+
}), i = O(() => {
|
|
1185
1185
|
var p, d;
|
|
1186
1186
|
return (d = (p = n.schema.fieldNames) == null ? void 0 : p.label) != null ? d : "label";
|
|
1187
|
-
}), l =
|
|
1187
|
+
}), l = O(() => {
|
|
1188
1188
|
var p, d;
|
|
1189
1189
|
return (d = (p = n.schema.fieldNames) == null ? void 0 : p.value) != null ? d : "value";
|
|
1190
|
-
}), t =
|
|
1190
|
+
}), t = O(() => {
|
|
1191
1191
|
var p, d;
|
|
1192
1192
|
return (d = (p = n.schema.fieldNames) == null ? void 0 : p.children) != null ? d : "children";
|
|
1193
|
-
}), e =
|
|
1193
|
+
}), e = O(() => {
|
|
1194
1194
|
var p;
|
|
1195
1195
|
return n.schema.options != null ? n.schema.options : (p = s.value.get(n.schema.field)) != null ? p : [];
|
|
1196
|
-
}), a =
|
|
1196
|
+
}), a = O(() => {
|
|
1197
1197
|
const { label: p, value: d } = { label: i.value, value: l.value };
|
|
1198
|
-
return p === "label" && d === "value" ? e.value : e.value.map((f) => ce(
|
|
1199
|
-
}),
|
|
1200
|
-
const p =
|
|
1201
|
-
return ce(
|
|
1202
|
-
}), A =
|
|
1203
|
-
const p =
|
|
1204
|
-
return ce(
|
|
1205
|
-
}), $ =
|
|
1198
|
+
return p === "label" && d === "value" ? e.value : e.value.map((f) => ce(N({}, f), { label: f[p], value: f[d] }));
|
|
1199
|
+
}), k = O(() => {
|
|
1200
|
+
const p = N({}, n.schema.props), { label: d, value: f, children: B } = { label: i.value, value: l.value, children: t.value };
|
|
1201
|
+
return ce(N({}, p), { props: ce(N({}, p.props), { label: d, children: B }), nodeKey: f });
|
|
1202
|
+
}), A = O(() => {
|
|
1203
|
+
const p = N({}, n.schema.props), { label: d, value: f, children: B } = { label: i.value, value: l.value, children: t.value };
|
|
1204
|
+
return ce(N({}, p), { props: ce(N({}, p.props), { label: d, value: f, children: B }) });
|
|
1205
|
+
}), $ = O(() => N({}, n.schema.props)), M = O(() => {
|
|
1206
1206
|
var d, f, B;
|
|
1207
1207
|
const p = (f = (d = n.schema.props) == null ? void 0 : d.type) != null ? f : "";
|
|
1208
1208
|
return ["daterange", "datetimerange", "monthrange", "yearrange"].includes(p) || !!((B = n.schema.props) != null && B.isRange);
|
|
1209
|
-
}),
|
|
1209
|
+
}), H = O(() => {
|
|
1210
1210
|
var d, f;
|
|
1211
1211
|
if (((d = n.schema.props) == null ? void 0 : d.placeholder) != null)
|
|
1212
1212
|
return n.schema.props.placeholder;
|
|
1213
1213
|
const p = (f = n.schema.component) != null ? f : "input";
|
|
1214
1214
|
return ["input", "input-number", "autocomplete"].includes(p) ? "请输入" : "请选择";
|
|
1215
|
-
}), h =
|
|
1215
|
+
}), h = O(() => {
|
|
1216
1216
|
var p;
|
|
1217
1217
|
return ((p = n.schema.props) == null ? void 0 : p.clearable) != null ? n.schema.props.clearable : n.schema.defaultValue == null;
|
|
1218
|
-
}), g =
|
|
1218
|
+
}), g = O(() => {
|
|
1219
1219
|
var d, f, B;
|
|
1220
|
-
const p =
|
|
1221
|
-
return M.value ? ce(
|
|
1220
|
+
const p = N({}, n.schema.props);
|
|
1221
|
+
return M.value ? ce(N({}, p), {
|
|
1222
1222
|
rangeSeparator: (d = p.rangeSeparator) != null ? d : "至",
|
|
1223
1223
|
startPlaceholder: (f = p.startPlaceholder) != null ? f : "开始时间",
|
|
1224
1224
|
endPlaceholder: (B = p.endPlaceholder) != null ? B : "结束时间",
|
|
1225
1225
|
clearable: h.value
|
|
1226
|
-
}) : ce(
|
|
1226
|
+
}) : ce(N({}, p), { placeholder: H.value, clearable: h.value });
|
|
1227
1227
|
});
|
|
1228
1228
|
return () => {
|
|
1229
1229
|
var W, j, G, U, K, se, ne, ie;
|
|
@@ -1238,8 +1238,8 @@ const ht = v({
|
|
|
1238
1238
|
if (d === "select")
|
|
1239
1239
|
return y(
|
|
1240
1240
|
Js,
|
|
1241
|
-
ce(
|
|
1242
|
-
placeholder:
|
|
1241
|
+
ce(N(N(N({}, B), $.value), f), {
|
|
1242
|
+
placeholder: H.value,
|
|
1243
1243
|
clearable: h.value,
|
|
1244
1244
|
style: "width: 100%"
|
|
1245
1245
|
}),
|
|
@@ -1252,16 +1252,16 @@ const ht = v({
|
|
|
1252
1252
|
}
|
|
1253
1253
|
);
|
|
1254
1254
|
if (d === "select-v2")
|
|
1255
|
-
return y(Jt, ce(
|
|
1256
|
-
placeholder:
|
|
1255
|
+
return y(Jt, ce(N(N(N({}, B), $.value), f), {
|
|
1256
|
+
placeholder: H.value,
|
|
1257
1257
|
clearable: h.value,
|
|
1258
1258
|
options: a.value,
|
|
1259
1259
|
style: "width: 100%"
|
|
1260
1260
|
}));
|
|
1261
1261
|
if (d === "tree-select") {
|
|
1262
1262
|
const X = (U = (G = n.schema.props) == null ? void 0 : G.data) != null ? U : e.value;
|
|
1263
|
-
return y(Xt, ce(
|
|
1264
|
-
placeholder:
|
|
1263
|
+
return y(Xt, ce(N(N(N({}, B), k.value), f), {
|
|
1264
|
+
placeholder: H.value,
|
|
1265
1265
|
clearable: h.value,
|
|
1266
1266
|
data: X,
|
|
1267
1267
|
style: "width: 100%"
|
|
@@ -1269,8 +1269,8 @@ const ht = v({
|
|
|
1269
1269
|
}
|
|
1270
1270
|
if (d === "cascader") {
|
|
1271
1271
|
const X = (se = (K = n.schema.props) == null ? void 0 : K.options) != null ? se : e.value;
|
|
1272
|
-
return y(
|
|
1273
|
-
placeholder:
|
|
1272
|
+
return y(Oo, ce(N(N(N({}, B), A.value), f), {
|
|
1273
|
+
placeholder: H.value,
|
|
1274
1274
|
clearable: h.value,
|
|
1275
1275
|
options: X,
|
|
1276
1276
|
style: "width: 100%"
|
|
@@ -1280,7 +1280,7 @@ const ht = v({
|
|
|
1280
1280
|
const X = d === "radio" ? an : Ws;
|
|
1281
1281
|
return y(
|
|
1282
1282
|
Ks,
|
|
1283
|
-
|
|
1283
|
+
N(N(N({}, B), $.value), f),
|
|
1284
1284
|
{
|
|
1285
1285
|
default: () => e.value.map(
|
|
1286
1286
|
(ue) => y(X, { key: ue[l.value], value: ue[l.value] }, { default: () => String(ue[i.value]) })
|
|
@@ -1291,7 +1291,7 @@ const ht = v({
|
|
|
1291
1291
|
if (d === "checkbox")
|
|
1292
1292
|
return y(
|
|
1293
1293
|
qo,
|
|
1294
|
-
|
|
1294
|
+
N(N(N({}, B), $.value), f),
|
|
1295
1295
|
{
|
|
1296
1296
|
default: () => e.value.map(
|
|
1297
1297
|
(X) => y(Eo, { key: X[l.value], value: X[l.value] }, { default: () => String(X[i.value]) })
|
|
@@ -1299,20 +1299,20 @@ const ht = v({
|
|
|
1299
1299
|
}
|
|
1300
1300
|
);
|
|
1301
1301
|
if (d === "date-picker")
|
|
1302
|
-
return y(os, ce(
|
|
1303
|
-
const q =
|
|
1302
|
+
return y(os, ce(N(N(N({}, B), g.value), f), { style: "width: 100%" }));
|
|
1303
|
+
const q = Aa[d];
|
|
1304
1304
|
if (q) {
|
|
1305
|
-
const X = (ie = (ne = ct[d]) == null ? void 0 : ne.call(ct, { placeholder:
|
|
1306
|
-
return y(q,
|
|
1305
|
+
const X = (ie = (ne = ct[d]) == null ? void 0 : ne.call(ct, { placeholder: H.value, clearable: h.value })) != null ? ie : {};
|
|
1306
|
+
return y(q, N(N(N(N({}, B), $.value), f), X));
|
|
1307
1307
|
}
|
|
1308
|
-
return y(sn, ce(
|
|
1309
|
-
placeholder:
|
|
1308
|
+
return y(sn, ce(N(N(N({}, B), $.value), f), {
|
|
1309
|
+
placeholder: H.value,
|
|
1310
1310
|
clearable: h.value,
|
|
1311
1311
|
style: "width: 100%"
|
|
1312
1312
|
}));
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
|
-
}),
|
|
1315
|
+
}), xa = 2, _a = /* @__PURE__ */ v({
|
|
1316
1316
|
name: "SyProForm",
|
|
1317
1317
|
__name: "ProForm",
|
|
1318
1318
|
props: {
|
|
@@ -1335,23 +1335,23 @@ const ht = v({
|
|
|
1335
1335
|
emits: ["search", "reset"],
|
|
1336
1336
|
setup(n, { expose: o, emit: s }) {
|
|
1337
1337
|
var Se, Ce;
|
|
1338
|
-
const c =
|
|
1338
|
+
const c = x(), i = n, l = (Se = Ae(He, {}).proForm) != null ? Se : {}, t = (Ce = qt(Ut()).proForm) != null ? Ce : {}, e = O(() => {
|
|
1339
1339
|
var m, L, T;
|
|
1340
1340
|
return (T = (L = (m = t.cols) != null ? m : i.cols) != null ? L : l.cols) != null ? T : 4;
|
|
1341
|
-
}), a =
|
|
1341
|
+
}), a = O(() => {
|
|
1342
1342
|
var m, L, T;
|
|
1343
1343
|
return (T = (L = (m = t.labelWidth) != null ? m : i.labelWidth) != null ? L : l.labelWidth) != null ? T : "auto";
|
|
1344
|
-
}),
|
|
1344
|
+
}), k = O(
|
|
1345
1345
|
() => {
|
|
1346
1346
|
var m, L, T;
|
|
1347
1347
|
return (T = (L = (m = t.labelPosition) != null ? m : i.labelPosition) != null ? L : l.labelPosition) != null ? T : "right";
|
|
1348
1348
|
}
|
|
1349
|
-
), A =
|
|
1349
|
+
), A = O(() => {
|
|
1350
1350
|
var m, L;
|
|
1351
1351
|
return (L = (m = t.size) != null ? m : i.size) != null ? L : l.size;
|
|
1352
1352
|
}), $ = s;
|
|
1353
1353
|
R("pro-form");
|
|
1354
|
-
const M =
|
|
1354
|
+
const M = D(), H = D(i.defaultCollapsed), h = D("xl");
|
|
1355
1355
|
function g() {
|
|
1356
1356
|
const m = window.innerWidth;
|
|
1357
1357
|
return m < 768 ? "xs" : m < 992 ? "sm" : m < 1200 ? "md" : m < 1920 ? "lg" : "xl";
|
|
@@ -1359,12 +1359,12 @@ const ht = v({
|
|
|
1359
1359
|
function p() {
|
|
1360
1360
|
h.value = g();
|
|
1361
1361
|
}
|
|
1362
|
-
|
|
1362
|
+
Fe(() => {
|
|
1363
1363
|
h.value = g(), window.addEventListener("resize", p);
|
|
1364
|
-
}),
|
|
1364
|
+
}), Xe(() => {
|
|
1365
1365
|
window.removeEventListener("resize", p);
|
|
1366
1366
|
});
|
|
1367
|
-
const d =
|
|
1367
|
+
const d = O(() => i.schema.filter((m) => typeof m.hidden == "function" ? !m.hidden(i.model) : !m.hidden).sort((m, L) => {
|
|
1368
1368
|
var T, ee;
|
|
1369
1369
|
return ((T = m.order) != null ? T : 0) - ((ee = L.order) != null ? ee : 0);
|
|
1370
1370
|
}));
|
|
@@ -1378,20 +1378,20 @@ const ht = v({
|
|
|
1378
1378
|
const L = h.value;
|
|
1379
1379
|
return (oe = (ee = (T = m[L]) == null ? void 0 : T.offset) != null ? ee : m.offset) != null ? oe : 0;
|
|
1380
1380
|
}
|
|
1381
|
-
const q =
|
|
1381
|
+
const q = O(() => {
|
|
1382
1382
|
var T, ee, oe, ve, ye, be;
|
|
1383
1383
|
const m = e.value;
|
|
1384
1384
|
if (typeof m == "number")
|
|
1385
1385
|
return m;
|
|
1386
1386
|
const L = h.value;
|
|
1387
1387
|
return (be = (ye = (ve = (oe = (ee = (T = m == null ? void 0 : m[L]) != null ? T : m == null ? void 0 : m.xl) != null ? ee : m == null ? void 0 : m.lg) != null ? oe : m == null ? void 0 : m.md) != null ? ve : m == null ? void 0 : m.sm) != null ? ye : m == null ? void 0 : m.xs) != null ? be : 4;
|
|
1388
|
-
}), W =
|
|
1388
|
+
}), W = O(() => {
|
|
1389
1389
|
const m = i.collapsible;
|
|
1390
1390
|
return typeof m == "number" && m > 0 ? m : 1;
|
|
1391
|
-
}), j =
|
|
1391
|
+
}), j = O(() => {
|
|
1392
1392
|
if (!i.collapsible)
|
|
1393
1393
|
return -1;
|
|
1394
|
-
const m = i.buttonAlign === "inline" && (i.showQueryBtn || i.showResetBtn || !!c["extra-buttons"] || !!c.buttons), L = q.value * W.value - (m ?
|
|
1394
|
+
const m = i.buttonAlign === "inline" && (i.showQueryBtn || i.showResetBtn || !!c["extra-buttons"] || !!c.buttons), L = q.value * W.value - (m ? xa : 0);
|
|
1395
1395
|
if (L <= 0)
|
|
1396
1396
|
return 0;
|
|
1397
1397
|
let T = 0;
|
|
@@ -1401,7 +1401,7 @@ const ht = v({
|
|
|
1401
1401
|
return ee;
|
|
1402
1402
|
}
|
|
1403
1403
|
return -1;
|
|
1404
|
-
}), G =
|
|
1404
|
+
}), G = O(() => j.value >= 0), U = O(() => ({
|
|
1405
1405
|
display: "grid",
|
|
1406
1406
|
gridTemplateColumns: `repeat(${q.value}, 1fr)`,
|
|
1407
1407
|
gap: "0 16px"
|
|
@@ -1412,32 +1412,32 @@ const ht = v({
|
|
|
1412
1412
|
};
|
|
1413
1413
|
return ee > 0 && (oe.marginLeft = `calc(${ee / L * 100}% + ${ee * 16}px)`), oe;
|
|
1414
1414
|
}
|
|
1415
|
-
const se =
|
|
1416
|
-
const m = q.value, L = d.value, T = i.collapsible &&
|
|
1415
|
+
const se = O(() => {
|
|
1416
|
+
const m = q.value, L = d.value, T = i.collapsible && H.value && j.value >= 0 ? j.value : L.length;
|
|
1417
1417
|
let ee = 0;
|
|
1418
1418
|
for (let oe = 0; oe < T; oe++) {
|
|
1419
1419
|
const ve = f(L[oe]), ye = B(L[oe]), be = ee + ve + ye;
|
|
1420
1420
|
ee = be >= m ? be % m : be;
|
|
1421
1421
|
}
|
|
1422
1422
|
return ee;
|
|
1423
|
-
}), ne =
|
|
1423
|
+
}), ne = O(() => {
|
|
1424
1424
|
const m = se.value;
|
|
1425
1425
|
return { gridColumn: `${m === 0 ? 1 : m + 1} / -1` };
|
|
1426
1426
|
}), ie = {
|
|
1427
1427
|
left: "flex-start",
|
|
1428
1428
|
center: "center",
|
|
1429
1429
|
right: "flex-end"
|
|
1430
|
-
}, X =
|
|
1430
|
+
}, X = O(() => {
|
|
1431
1431
|
var L;
|
|
1432
1432
|
const m = {
|
|
1433
1433
|
justifyContent: (L = ie[i.buttonAlign]) != null ? L : "flex-start"
|
|
1434
1434
|
};
|
|
1435
|
-
if (i.buttonAlign === "left" &&
|
|
1435
|
+
if (i.buttonAlign === "left" && k.value !== "top") {
|
|
1436
1436
|
const T = a.value;
|
|
1437
1437
|
T && T !== "auto" && (m.paddingLeft = typeof T == "number" ? `${T}px` : String(T));
|
|
1438
1438
|
}
|
|
1439
1439
|
return m;
|
|
1440
|
-
}), ue =
|
|
1440
|
+
}), ue = O(
|
|
1441
1441
|
() => i.showQueryBtn || i.showResetBtn || !!c["extra-buttons"] || !!c.buttons
|
|
1442
1442
|
);
|
|
1443
1443
|
function re(m, L) {
|
|
@@ -1476,7 +1476,7 @@ const ht = v({
|
|
|
1476
1476
|
class: "sy-pro-form",
|
|
1477
1477
|
model: n.model,
|
|
1478
1478
|
"label-width": a.value,
|
|
1479
|
-
"label-position":
|
|
1479
|
+
"label-position": k.value,
|
|
1480
1480
|
disabled: n.disabled,
|
|
1481
1481
|
size: A.value,
|
|
1482
1482
|
onSubmit: L[2] || (L[2] = Kt(() => {
|
|
@@ -1487,13 +1487,13 @@ const ht = v({
|
|
|
1487
1487
|
"div",
|
|
1488
1488
|
{
|
|
1489
1489
|
class: "sy-pro-form__grid",
|
|
1490
|
-
style:
|
|
1490
|
+
style: _e(U.value)
|
|
1491
1491
|
},
|
|
1492
1492
|
[
|
|
1493
1493
|
(P(!0), Z(
|
|
1494
1494
|
de,
|
|
1495
1495
|
null,
|
|
1496
|
-
|
|
1496
|
+
Ve(d.value, (T, ee) => {
|
|
1497
1497
|
var oe;
|
|
1498
1498
|
return P(), Z(
|
|
1499
1499
|
de,
|
|
@@ -1501,29 +1501,29 @@ const ht = v({
|
|
|
1501
1501
|
key: T.field
|
|
1502
1502
|
},
|
|
1503
1503
|
[
|
|
1504
|
-
!n.collapsible || !
|
|
1504
|
+
!n.collapsible || !H.value || j.value < 0 || ee < j.value ? (P(), Z(
|
|
1505
1505
|
"div",
|
|
1506
1506
|
{
|
|
1507
1507
|
key: 0,
|
|
1508
1508
|
class: "sy-pro-form__grid-item",
|
|
1509
|
-
style:
|
|
1509
|
+
style: _e(K(T))
|
|
1510
1510
|
},
|
|
1511
1511
|
[
|
|
1512
|
-
|
|
1513
|
-
T.component === "slot" ?
|
|
1512
|
+
F(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),
|
|
1513
|
+
T.component === "slot" ? z(m.$slots, T.field, {
|
|
1514
1514
|
key: 0,
|
|
1515
1515
|
item: T
|
|
1516
1516
|
}) : (P(), Z(
|
|
1517
1517
|
de,
|
|
1518
1518
|
{ key: 1 },
|
|
1519
1519
|
[
|
|
1520
|
-
|
|
1521
|
-
I(r(gs),
|
|
1520
|
+
F(" 内置组件类型:走原有渲染路径 "),
|
|
1521
|
+
I(r(gs), C({
|
|
1522
1522
|
prop: T.field,
|
|
1523
1523
|
label: (oe = T.label) != null ? oe : ""
|
|
1524
1524
|
}, { ref_for: !0 }, T.labelWidth != null ? { labelWidth: T.labelWidth } : {}, {
|
|
1525
1525
|
rules: T.rules
|
|
1526
|
-
}),
|
|
1526
|
+
}), Ye({
|
|
1527
1527
|
default: S(() => [
|
|
1528
1528
|
I(ht, {
|
|
1529
1529
|
"model-value": n.model[T.field],
|
|
@@ -1541,11 +1541,11 @@ const ht = v({
|
|
|
1541
1541
|
te(
|
|
1542
1542
|
"span",
|
|
1543
1543
|
null,
|
|
1544
|
-
|
|
1544
|
+
ke(T.label),
|
|
1545
1545
|
1
|
|
1546
1546
|
/* TEXT */
|
|
1547
1547
|
),
|
|
1548
|
-
I(r(
|
|
1548
|
+
I(r($e), {
|
|
1549
1549
|
content: T.tooltip,
|
|
1550
1550
|
placement: "top"
|
|
1551
1551
|
}, {
|
|
@@ -1575,7 +1575,7 @@ const ht = v({
|
|
|
1575
1575
|
],
|
|
1576
1576
|
4
|
|
1577
1577
|
/* STYLE */
|
|
1578
|
-
)) :
|
|
1578
|
+
)) : F("v-if", !0)
|
|
1579
1579
|
],
|
|
1580
1580
|
64
|
|
1581
1581
|
/* STABLE_FRAGMENT */
|
|
@@ -1584,18 +1584,18 @@ const ht = v({
|
|
|
1584
1584
|
128
|
|
1585
1585
|
/* KEYED_FRAGMENT */
|
|
1586
1586
|
)),
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1587
|
+
F(" 默认插槽:额外自定义字段 "),
|
|
1588
|
+
z(m.$slots, "default"),
|
|
1589
|
+
F(" 按钮区 —— inline 模式:在网格内贴右 "),
|
|
1590
1590
|
n.buttonAlign === "inline" && (ue.value || n.collapsible && G.value) ? (P(), Z(
|
|
1591
1591
|
"div",
|
|
1592
1592
|
{
|
|
1593
1593
|
key: 0,
|
|
1594
1594
|
class: "sy-pro-form__grid-item sy-pro-form__buttons",
|
|
1595
|
-
style:
|
|
1595
|
+
style: _e(ne.value)
|
|
1596
1596
|
},
|
|
1597
1597
|
[
|
|
1598
|
-
|
|
1598
|
+
z(m.$slots, "buttons", {}, () => [
|
|
1599
1599
|
n.showQueryBtn ? (P(), Q(r(le), {
|
|
1600
1600
|
key: 0,
|
|
1601
1601
|
type: "primary",
|
|
@@ -1604,45 +1604,45 @@ const ht = v({
|
|
|
1604
1604
|
}, {
|
|
1605
1605
|
default: S(() => [
|
|
1606
1606
|
fe(
|
|
1607
|
-
|
|
1607
|
+
ke(n.queryBtnText),
|
|
1608
1608
|
1
|
|
1609
1609
|
/* TEXT */
|
|
1610
1610
|
)
|
|
1611
1611
|
]),
|
|
1612
1612
|
_: 1
|
|
1613
1613
|
/* STABLE */
|
|
1614
|
-
}, 8, ["loading"])) :
|
|
1614
|
+
}, 8, ["loading"])) : F("v-if", !0),
|
|
1615
1615
|
n.showResetBtn ? (P(), Q(r(le), {
|
|
1616
1616
|
key: 1,
|
|
1617
1617
|
onClick: he
|
|
1618
1618
|
}, {
|
|
1619
1619
|
default: S(() => [
|
|
1620
1620
|
fe(
|
|
1621
|
-
|
|
1621
|
+
ke(n.resetBtnText),
|
|
1622
1622
|
1
|
|
1623
1623
|
/* TEXT */
|
|
1624
1624
|
)
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 1
|
|
1627
1627
|
/* STABLE */
|
|
1628
|
-
})) :
|
|
1629
|
-
|
|
1628
|
+
})) : F("v-if", !0),
|
|
1629
|
+
z(m.$slots, "extra-buttons")
|
|
1630
1630
|
]),
|
|
1631
1631
|
n.collapsible && G.value ? (P(), Q(r(le), {
|
|
1632
1632
|
key: 0,
|
|
1633
1633
|
type: "primary",
|
|
1634
1634
|
link: "",
|
|
1635
|
-
onClick: L[0] || (L[0] = (T) =>
|
|
1635
|
+
onClick: L[0] || (L[0] = (T) => H.value = !H.value)
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: S(() => [
|
|
1638
1638
|
fe(
|
|
1639
|
-
|
|
1639
|
+
ke(H.value ? "展开" : "合并") + " ",
|
|
1640
1640
|
1
|
|
1641
1641
|
/* TEXT */
|
|
1642
1642
|
),
|
|
1643
1643
|
I(r(Ne), { style: { "margin-left": "2px" } }, {
|
|
1644
1644
|
default: S(() => [
|
|
1645
|
-
(P(), Q(It(
|
|
1645
|
+
(P(), Q(It(H.value ? r(zt) : r(Ot))))
|
|
1646
1646
|
]),
|
|
1647
1647
|
_: 1
|
|
1648
1648
|
/* STABLE */
|
|
@@ -1650,25 +1650,25 @@ const ht = v({
|
|
|
1650
1650
|
]),
|
|
1651
1651
|
_: 1
|
|
1652
1652
|
/* STABLE */
|
|
1653
|
-
})) :
|
|
1653
|
+
})) : F("v-if", !0)
|
|
1654
1654
|
],
|
|
1655
1655
|
4
|
|
1656
1656
|
/* STYLE */
|
|
1657
|
-
)) :
|
|
1657
|
+
)) : F("v-if", !0)
|
|
1658
1658
|
],
|
|
1659
1659
|
4
|
|
1660
1660
|
/* STYLE */
|
|
1661
1661
|
),
|
|
1662
|
-
|
|
1662
|
+
F(" 按钮区 —— 独立成行模式(left / center / right) "),
|
|
1663
1663
|
n.buttonAlign !== "inline" && (ue.value || n.collapsible && G.value) ? (P(), Z(
|
|
1664
1664
|
"div",
|
|
1665
1665
|
{
|
|
1666
1666
|
key: 0,
|
|
1667
1667
|
class: "sy-pro-form__footer",
|
|
1668
|
-
style:
|
|
1668
|
+
style: _e(X.value)
|
|
1669
1669
|
},
|
|
1670
1670
|
[
|
|
1671
|
-
|
|
1671
|
+
z(m.$slots, "buttons", {}, () => [
|
|
1672
1672
|
n.showQueryBtn ? (P(), Q(r(le), {
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
type: "primary",
|
|
@@ -1677,45 +1677,45 @@ const ht = v({
|
|
|
1677
1677
|
}, {
|
|
1678
1678
|
default: S(() => [
|
|
1679
1679
|
fe(
|
|
1680
|
-
|
|
1680
|
+
ke(n.queryBtnText),
|
|
1681
1681
|
1
|
|
1682
1682
|
/* TEXT */
|
|
1683
1683
|
)
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
/* STABLE */
|
|
1687
|
-
}, 8, ["loading"])) :
|
|
1687
|
+
}, 8, ["loading"])) : F("v-if", !0),
|
|
1688
1688
|
n.showResetBtn ? (P(), Q(r(le), {
|
|
1689
1689
|
key: 1,
|
|
1690
1690
|
onClick: he
|
|
1691
1691
|
}, {
|
|
1692
1692
|
default: S(() => [
|
|
1693
1693
|
fe(
|
|
1694
|
-
|
|
1694
|
+
ke(n.resetBtnText),
|
|
1695
1695
|
1
|
|
1696
1696
|
/* TEXT */
|
|
1697
1697
|
)
|
|
1698
1698
|
]),
|
|
1699
1699
|
_: 1
|
|
1700
1700
|
/* STABLE */
|
|
1701
|
-
})) :
|
|
1702
|
-
|
|
1701
|
+
})) : F("v-if", !0),
|
|
1702
|
+
z(m.$slots, "extra-buttons")
|
|
1703
1703
|
]),
|
|
1704
1704
|
n.collapsible && G.value ? (P(), Q(r(le), {
|
|
1705
1705
|
key: 0,
|
|
1706
1706
|
type: "primary",
|
|
1707
1707
|
link: "",
|
|
1708
|
-
onClick: L[1] || (L[1] = (T) =>
|
|
1708
|
+
onClick: L[1] || (L[1] = (T) => H.value = !H.value)
|
|
1709
1709
|
}, {
|
|
1710
1710
|
default: S(() => [
|
|
1711
1711
|
fe(
|
|
1712
|
-
|
|
1712
|
+
ke(H.value ? "展开" : "合并") + " ",
|
|
1713
1713
|
1
|
|
1714
1714
|
/* TEXT */
|
|
1715
1715
|
),
|
|
1716
1716
|
I(r(Ne), { style: { "margin-left": "2px" } }, {
|
|
1717
1717
|
default: S(() => [
|
|
1718
|
-
(P(), Q(It(
|
|
1718
|
+
(P(), Q(It(H.value ? r(zt) : r(Ot))))
|
|
1719
1719
|
]),
|
|
1720
1720
|
_: 1
|
|
1721
1721
|
/* STABLE */
|
|
@@ -1723,19 +1723,19 @@ const ht = v({
|
|
|
1723
1723
|
]),
|
|
1724
1724
|
_: 1
|
|
1725
1725
|
/* STABLE */
|
|
1726
|
-
})) :
|
|
1726
|
+
})) : F("v-if", !0)
|
|
1727
1727
|
],
|
|
1728
1728
|
4
|
|
1729
1729
|
/* STYLE */
|
|
1730
|
-
)) :
|
|
1730
|
+
)) : F("v-if", !0)
|
|
1731
1731
|
]),
|
|
1732
1732
|
_: 3
|
|
1733
1733
|
/* FORWARDED */
|
|
1734
1734
|
}, 8, ["model", "label-width", "label-position", "disabled", "size"]));
|
|
1735
1735
|
}
|
|
1736
|
-
}), Ra =
|
|
1736
|
+
}), Ra = w(_a);
|
|
1737
1737
|
function Pa(n = "id") {
|
|
1738
|
-
const o =
|
|
1738
|
+
const o = D([]), s = O(() => o.value.length > 0), c = O(() => o.value.map((t) => t[n]));
|
|
1739
1739
|
function i(t) {
|
|
1740
1740
|
o.value = t;
|
|
1741
1741
|
}
|
|
@@ -1760,11 +1760,11 @@ function Ta(n) {
|
|
|
1760
1760
|
pagination: t = !0,
|
|
1761
1761
|
staticData: e,
|
|
1762
1762
|
initialPageSize: a
|
|
1763
|
-
} = n,
|
|
1763
|
+
} = n, k = D(!1), A = D([]), $ = Je({
|
|
1764
1764
|
pageNum: 1,
|
|
1765
1765
|
pageSize: a != null ? a : 10,
|
|
1766
1766
|
total: 0
|
|
1767
|
-
}), M =
|
|
1767
|
+
}), M = Je({}), H = Je({}), h = O(() => {
|
|
1768
1768
|
if (!(e != null && e.value))
|
|
1769
1769
|
return A.value;
|
|
1770
1770
|
if (!t)
|
|
@@ -1778,10 +1778,10 @@ function Ta(n) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
function p() {
|
|
1780
1780
|
const j = {};
|
|
1781
|
-
return g(
|
|
1781
|
+
return g(H, j), c != null && c.value && g(c.value, j), j;
|
|
1782
1782
|
}
|
|
1783
1783
|
function d() {
|
|
1784
|
-
return
|
|
1784
|
+
return We(this, null, function* () {
|
|
1785
1785
|
var j, G, U;
|
|
1786
1786
|
if (e != null && e.value) {
|
|
1787
1787
|
$.total = e.value.length;
|
|
@@ -1789,8 +1789,8 @@ function Ta(n) {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
if (o)
|
|
1791
1791
|
try {
|
|
1792
|
-
|
|
1793
|
-
const K = p(), se =
|
|
1792
|
+
k.value = !0;
|
|
1793
|
+
const K = p(), se = N(N(N({}, M), K), (j = s == null ? void 0 : s.value) != null ? j : {});
|
|
1794
1794
|
t && (se.pageNum = $.pageNum, se.pageSize = $.pageSize);
|
|
1795
1795
|
const ne = yield o(se);
|
|
1796
1796
|
if (!ne.success) {
|
|
@@ -1802,7 +1802,7 @@ function Ta(n) {
|
|
|
1802
1802
|
} catch (K) {
|
|
1803
1803
|
l == null || l(K);
|
|
1804
1804
|
} finally {
|
|
1805
|
-
|
|
1805
|
+
k.value = !1;
|
|
1806
1806
|
}
|
|
1807
1807
|
});
|
|
1808
1808
|
}
|
|
@@ -1812,8 +1812,8 @@ function Ta(n) {
|
|
|
1812
1812
|
function B() {
|
|
1813
1813
|
var j;
|
|
1814
1814
|
$.pageNum = 1;
|
|
1815
|
-
for (const G of Object.keys(
|
|
1816
|
-
|
|
1815
|
+
for (const G of Object.keys(H))
|
|
1816
|
+
H[G] = (j = M[G]) != null ? j : null;
|
|
1817
1817
|
d();
|
|
1818
1818
|
}
|
|
1819
1819
|
function q(j) {
|
|
@@ -1822,12 +1822,12 @@ function Ta(n) {
|
|
|
1822
1822
|
function W(j) {
|
|
1823
1823
|
$.pageNum = j, d();
|
|
1824
1824
|
}
|
|
1825
|
-
return s &&
|
|
1826
|
-
loading:
|
|
1825
|
+
return s && Ie(s, () => d(), { deep: !0 }), {
|
|
1826
|
+
loading: k,
|
|
1827
1827
|
tableData: A,
|
|
1828
1828
|
pageable: $,
|
|
1829
1829
|
processTableData: h,
|
|
1830
|
-
searchParam:
|
|
1830
|
+
searchParam: H,
|
|
1831
1831
|
searchInitParam: M,
|
|
1832
1832
|
getTableList: d,
|
|
1833
1833
|
search: f,
|
|
@@ -1843,7 +1843,7 @@ function rn(n) {
|
|
|
1843
1843
|
(s = c.children) != null && s.length ? o.push(c, ...rn(c.children)) : o.push(c);
|
|
1844
1844
|
return o;
|
|
1845
1845
|
}
|
|
1846
|
-
const
|
|
1846
|
+
const Ht = {
|
|
1847
1847
|
border: !1,
|
|
1848
1848
|
stripe: !1,
|
|
1849
1849
|
rowKey: "id",
|
|
@@ -1857,12 +1857,12 @@ const Nt = {
|
|
|
1857
1857
|
autoHeight: !1
|
|
1858
1858
|
};
|
|
1859
1859
|
function $a(n, o, s) {
|
|
1860
|
-
var ye, be,
|
|
1861
|
-
const i = (ye =
|
|
1860
|
+
var ye, be, je, ze;
|
|
1861
|
+
const i = (ye = Ae(He, {}).proTable) != null ? ye : {}, l = (be = qt(Ut()).proTable) != null ? be : {}, t = new Proxy(n, {
|
|
1862
1862
|
get(u, b, V) {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
return
|
|
1863
|
+
const E = l[b];
|
|
1864
|
+
if (E !== void 0)
|
|
1865
|
+
return E;
|
|
1866
1866
|
const Y = Reflect.get(u, b, V);
|
|
1867
1867
|
if (Y !== void 0)
|
|
1868
1868
|
return Y;
|
|
@@ -1870,12 +1870,12 @@ function $a(n, o, s) {
|
|
|
1870
1870
|
if (J in i && i[J] !== void 0)
|
|
1871
1871
|
return i[J];
|
|
1872
1872
|
const pe = b;
|
|
1873
|
-
if (pe in
|
|
1874
|
-
return
|
|
1873
|
+
if (pe in Ht)
|
|
1874
|
+
return Ht[pe];
|
|
1875
1875
|
}
|
|
1876
|
-
}), e = t, a =
|
|
1876
|
+
}), e = t, a = D(), k = D(), A = D(), $ = D(e.type !== "unify" && e.type !== "custom"), M = D(null), H = O(() => Je(rn(n.columns))), h = D(/* @__PURE__ */ new Map());
|
|
1877
1877
|
function g(u) {
|
|
1878
|
-
return
|
|
1878
|
+
return We(this, null, function* () {
|
|
1879
1879
|
var V;
|
|
1880
1880
|
if (!u.enum || !u.prop)
|
|
1881
1881
|
return;
|
|
@@ -1883,45 +1883,45 @@ function $a(n, o, s) {
|
|
|
1883
1883
|
if (typeof b == "function") {
|
|
1884
1884
|
h.value.set(u.prop, []);
|
|
1885
1885
|
try {
|
|
1886
|
-
const
|
|
1887
|
-
h.value.set(u.prop,
|
|
1888
|
-
} catch (
|
|
1886
|
+
const E = yield b();
|
|
1887
|
+
h.value.set(u.prop, E);
|
|
1888
|
+
} catch (E) {
|
|
1889
1889
|
}
|
|
1890
1890
|
} else
|
|
1891
1891
|
h.value.set(u.prop, Array.isArray(b) ? b : (V = b.value) != null ? V : []);
|
|
1892
1892
|
});
|
|
1893
1893
|
}
|
|
1894
1894
|
Ft("proTableEnumMap", h), Ft("proTableSlots", s);
|
|
1895
|
-
const p =
|
|
1896
|
-
() =>
|
|
1895
|
+
const p = O(
|
|
1896
|
+
() => H.value.filter((u) => {
|
|
1897
1897
|
var b, V;
|
|
1898
1898
|
return ((b = u.search) == null ? void 0 : b.component) || ((V = u.search) == null ? void 0 : V.render);
|
|
1899
1899
|
}).sort((u, b) => {
|
|
1900
|
-
var V,
|
|
1901
|
-
return ((
|
|
1900
|
+
var V, E, Y, J;
|
|
1901
|
+
return ((E = (V = u.search) == null ? void 0 : V.order) != null ? E : 0) - ((J = (Y = b.search) == null ? void 0 : Y.order) != null ? J : 0);
|
|
1902
1902
|
})
|
|
1903
|
-
), d =
|
|
1903
|
+
), d = O(
|
|
1904
1904
|
() => p.value.filter((u) => {
|
|
1905
1905
|
var b;
|
|
1906
1906
|
return !!((b = u.search) != null && b.quick);
|
|
1907
1907
|
}).sort((u, b) => {
|
|
1908
|
-
var Y, J, pe, ae,
|
|
1909
|
-
const V = typeof ((Y = u.search) == null ? void 0 : Y.quick) == "object" && (pe = (J = u.search) == null ? void 0 : J.quick.order) != null ? pe : 0,
|
|
1910
|
-
return V -
|
|
1908
|
+
var Y, J, pe, ae, Te, Oe;
|
|
1909
|
+
const V = typeof ((Y = u.search) == null ? void 0 : Y.quick) == "object" && (pe = (J = u.search) == null ? void 0 : J.quick.order) != null ? pe : 0, E = typeof ((ae = b.search) == null ? void 0 : ae.quick) == "object" && (Oe = (Te = b.search) == null ? void 0 : Te.quick.order) != null ? Oe : 0;
|
|
1910
|
+
return V - E;
|
|
1911
1911
|
})
|
|
1912
|
-
), f =
|
|
1912
|
+
), f = O(
|
|
1913
1913
|
() => p.value.map((u) => {
|
|
1914
|
-
var b, V,
|
|
1914
|
+
var b, V, E, Y, J, pe, ae, Te, Oe, St, Ct, kt, At, wt, xt;
|
|
1915
1915
|
return {
|
|
1916
|
-
field: (
|
|
1916
|
+
field: (E = (V = (b = u.search) == null ? void 0 : b.key) != null ? V : u.prop) != null ? E : "",
|
|
1917
1917
|
label: u.label,
|
|
1918
1918
|
component: (Y = u.search) == null ? void 0 : Y.component,
|
|
1919
1919
|
props: (J = u.search) == null ? void 0 : J.props,
|
|
1920
1920
|
options: (() => {
|
|
1921
1921
|
var _t, Rt, Pt, Tt, $t, Bt, Lt;
|
|
1922
1922
|
if (((_t = u.search) == null ? void 0 : _t.options) !== void 0) {
|
|
1923
|
-
const
|
|
1924
|
-
return Array.isArray(
|
|
1923
|
+
const nt = u.search.options;
|
|
1924
|
+
return Array.isArray(nt) ? nt : (Rt = r(nt)) != null ? Rt : void 0;
|
|
1925
1925
|
}
|
|
1926
1926
|
if (!(!u.enum || (Tt = (Pt = u.search) == null ? void 0 : Pt.component) != null && Tt.includes("tree")))
|
|
1927
1927
|
return typeof u.enum == "function" ? (Bt = h.value.get(($t = u.prop) != null ? $t : "")) != null ? Bt : void 0 : Array.isArray(u.enum) ? u.enum : (Lt = r(u.enum)) != null ? Lt : void 0;
|
|
@@ -1929,25 +1929,25 @@ function $a(n, o, s) {
|
|
|
1929
1929
|
fieldNames: u.fieldNames,
|
|
1930
1930
|
defaultValue: (pe = u.search) == null ? void 0 : pe.defaultValue,
|
|
1931
1931
|
span: (ae = u.search) == null ? void 0 : ae.span,
|
|
1932
|
-
offset: (
|
|
1932
|
+
offset: (Te = u.search) == null ? void 0 : Te.offset,
|
|
1933
1933
|
order: (Oe = u.search) == null ? void 0 : Oe.order,
|
|
1934
1934
|
render: (St = u.search) == null ? void 0 : St.render,
|
|
1935
1935
|
xs: (Ct = u.search) == null ? void 0 : Ct.xs,
|
|
1936
|
-
sm: (
|
|
1937
|
-
md: (
|
|
1936
|
+
sm: (kt = u.search) == null ? void 0 : kt.sm,
|
|
1937
|
+
md: (At = u.search) == null ? void 0 : At.md,
|
|
1938
1938
|
lg: (wt = u.search) == null ? void 0 : wt.lg,
|
|
1939
|
-
xl: (
|
|
1939
|
+
xl: (xt = u.search) == null ? void 0 : xt.xl
|
|
1940
1940
|
};
|
|
1941
1941
|
})
|
|
1942
|
-
), B =
|
|
1942
|
+
), B = D({}), q = {};
|
|
1943
1943
|
function W() {
|
|
1944
|
-
var u, b, V,
|
|
1944
|
+
var u, b, V, E, Y;
|
|
1945
1945
|
for (const J of Object.keys(B.value))
|
|
1946
1946
|
delete B.value[J];
|
|
1947
1947
|
for (const J of Object.keys(q))
|
|
1948
1948
|
delete q[J];
|
|
1949
1949
|
for (const J of p.value) {
|
|
1950
|
-
const pe = (V = (b = (u = J.search) == null ? void 0 : u.key) != null ? b : J.prop) != null ? V : "", ae = (Y = (
|
|
1950
|
+
const pe = (V = (b = (u = J.search) == null ? void 0 : u.key) != null ? b : J.prop) != null ? V : "", ae = (Y = (E = J.search) == null ? void 0 : E.defaultValue) != null ? Y : null;
|
|
1951
1951
|
B.value[pe] = ae, q[pe] = ae;
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
@@ -1958,8 +1958,8 @@ function $a(n, o, s) {
|
|
|
1958
1958
|
postData: n.postData,
|
|
1959
1959
|
requestError: n.requestError,
|
|
1960
1960
|
pagination: n.pagination,
|
|
1961
|
-
staticData:
|
|
1962
|
-
initialPageSize: (ze = (
|
|
1961
|
+
staticData: O(() => n.data),
|
|
1962
|
+
initialPageSize: (ze = (je = e.pageSize) != null ? je : i.pageSize) != null ? ze : 10
|
|
1963
1963
|
});
|
|
1964
1964
|
function ie() {
|
|
1965
1965
|
Object.assign(U, { pageNum: 1 }), K(), o("search");
|
|
@@ -1999,17 +1999,16 @@ function $a(n, o, s) {
|
|
|
1999
1999
|
var u, b;
|
|
2000
2000
|
(b = (u = A.value) == null ? void 0 : u.open) == null || b.call(u);
|
|
2001
2001
|
}
|
|
2002
|
-
return
|
|
2003
|
-
for (const u of
|
|
2002
|
+
return Fe(() => We(this, null, function* () {
|
|
2003
|
+
for (const u of H.value)
|
|
2004
2004
|
g(u);
|
|
2005
2005
|
W(), n.manualRequest || K();
|
|
2006
2006
|
})), {
|
|
2007
2007
|
props: t,
|
|
2008
|
-
type: e.type,
|
|
2009
2008
|
tableRef: a,
|
|
2010
|
-
formRef:
|
|
2009
|
+
formRef: k,
|
|
2011
2010
|
colSettingRef: A,
|
|
2012
|
-
flatColumns:
|
|
2011
|
+
flatColumns: H,
|
|
2013
2012
|
enumMap: h,
|
|
2014
2013
|
searchColumns: p,
|
|
2015
2014
|
quickSearchColumns: d,
|
|
@@ -2048,17 +2047,17 @@ const Ba = {
|
|
|
2048
2047
|
columns: {}
|
|
2049
2048
|
},
|
|
2050
2049
|
setup(n, { expose: o }) {
|
|
2051
|
-
const s = n, c =
|
|
2050
|
+
const s = n, c = D(!1), i = O(
|
|
2052
2051
|
() => s.columns.filter((a) => {
|
|
2053
2052
|
if (a.type && ["selection", "index", "expand", "radio", "sort"].includes(a.type))
|
|
2054
2053
|
return !1;
|
|
2055
|
-
const
|
|
2056
|
-
return
|
|
2054
|
+
const k = a.isSetting;
|
|
2055
|
+
return k === void 0 || k === !0;
|
|
2057
2056
|
})
|
|
2058
2057
|
);
|
|
2059
|
-
|
|
2060
|
-
const a = i.value.length,
|
|
2061
|
-
return
|
|
2058
|
+
O(() => i.value.every((a) => a.isShow !== !1)), O(() => {
|
|
2059
|
+
const a = i.value.length, k = i.value.filter((A) => A.isShow !== !1).length;
|
|
2060
|
+
return k > 0 && k < a;
|
|
2062
2061
|
});
|
|
2063
2062
|
const l = /* @__PURE__ */ new WeakMap();
|
|
2064
2063
|
function t() {
|
|
@@ -2072,21 +2071,21 @@ const Ba = {
|
|
|
2072
2071
|
function e() {
|
|
2073
2072
|
t(), c.value = !0;
|
|
2074
2073
|
}
|
|
2075
|
-
return o({ open: e }), (a,
|
|
2074
|
+
return o({ open: e }), (a, k) => (P(), Q(r(us), {
|
|
2076
2075
|
modelValue: c.value,
|
|
2077
|
-
"onUpdate:modelValue":
|
|
2076
|
+
"onUpdate:modelValue": k[0] || (k[0] = (A) => c.value = A),
|
|
2078
2077
|
title: "列设置",
|
|
2079
2078
|
size: "380px",
|
|
2080
2079
|
"append-to-body": !0,
|
|
2081
2080
|
class: "sy-pro-table__col-setting"
|
|
2082
2081
|
}, {
|
|
2083
2082
|
default: S(() => [
|
|
2084
|
-
|
|
2085
|
-
|
|
2083
|
+
F(" 全选 + 重置 "),
|
|
2084
|
+
F(` <div class="sy-pro-table__col-setting-toolbar">
|
|
2086
2085
|
<sy-checkbox :model-value="checkAll" :indeterminate="isIndeterminate" @change="onCheckAll"> 全部显示 </sy-checkbox>
|
|
2087
2086
|
<sy-button type="primary" link @click="onReset">重置</sy-button>
|
|
2088
2087
|
</div> `),
|
|
2089
|
-
|
|
2088
|
+
F(" 列配置表格 "),
|
|
2090
2089
|
I(r(ln), {
|
|
2091
2090
|
data: i.value,
|
|
2092
2091
|
"row-key": "prop",
|
|
@@ -2094,7 +2093,7 @@ const Ba = {
|
|
|
2094
2093
|
"default-expand-all": "",
|
|
2095
2094
|
"tree-props": { children: "_children" }
|
|
2096
2095
|
}, {
|
|
2097
|
-
empty: S(() => [...
|
|
2096
|
+
empty: S(() => [...k[1] || (k[1] = [
|
|
2098
2097
|
te(
|
|
2099
2098
|
"div",
|
|
2100
2099
|
{ style: { padding: "24px 0", color: "var(--el-text-color-secondary)", "font-size": "13px" } },
|
|
@@ -2104,7 +2103,7 @@ const Ba = {
|
|
|
2104
2103
|
)
|
|
2105
2104
|
])]),
|
|
2106
2105
|
default: S(() => [
|
|
2107
|
-
I(r(
|
|
2106
|
+
I(r(xe), {
|
|
2108
2107
|
prop: "label",
|
|
2109
2108
|
label: "列名",
|
|
2110
2109
|
align: "left",
|
|
@@ -2114,7 +2113,7 @@ const Ba = {
|
|
|
2114
2113
|
var $, M;
|
|
2115
2114
|
return [
|
|
2116
2115
|
fe(
|
|
2117
|
-
|
|
2116
|
+
ke((M = ($ = A.label) != null ? $ : A.prop) != null ? M : "—"),
|
|
2118
2117
|
1
|
|
2119
2118
|
/* TEXT */
|
|
2120
2119
|
)
|
|
@@ -2123,7 +2122,7 @@ const Ba = {
|
|
|
2123
2122
|
_: 1
|
|
2124
2123
|
/* STABLE */
|
|
2125
2124
|
}),
|
|
2126
|
-
I(r(
|
|
2125
|
+
I(r(xe), {
|
|
2127
2126
|
prop: "isShow",
|
|
2128
2127
|
label: "显示",
|
|
2129
2128
|
align: "center",
|
|
@@ -2140,7 +2139,7 @@ const Ba = {
|
|
|
2140
2139
|
_: 1
|
|
2141
2140
|
/* STABLE */
|
|
2142
2141
|
}),
|
|
2143
|
-
I(r(
|
|
2142
|
+
I(r(xe), {
|
|
2144
2143
|
prop: "sortable",
|
|
2145
2144
|
label: "排序",
|
|
2146
2145
|
align: "center",
|
|
@@ -2171,7 +2170,7 @@ const Ba = {
|
|
|
2171
2170
|
context: {}
|
|
2172
2171
|
},
|
|
2173
2172
|
setup(n, { expose: o }) {
|
|
2174
|
-
const c = n.context.flatColumns, i =
|
|
2173
|
+
const c = n.context.flatColumns, i = D();
|
|
2175
2174
|
function l() {
|
|
2176
2175
|
var t, e;
|
|
2177
2176
|
(e = (t = i.value) == null ? void 0 : t.open) == null || e.call(t);
|
|
@@ -2193,8 +2192,8 @@ const Ba = {
|
|
|
2193
2192
|
setup(n) {
|
|
2194
2193
|
const o = n, s = o.context.props, c = o.context.pageable, i = o.context.handleSizeChange, l = o.context.handleCurrentChange;
|
|
2195
2194
|
return (t, e) => r(s).pagination && r(c).total > 0 ? (P(), Z("div", Va, [
|
|
2196
|
-
|
|
2197
|
-
I(r(
|
|
2195
|
+
z(t.$slots, "pagination", {}, () => [
|
|
2196
|
+
I(r(zs), {
|
|
2198
2197
|
"current-page": r(c).pageNum,
|
|
2199
2198
|
"onUpdate:currentPage": e[0] || (e[0] = (a) => r(c).pageNum = a),
|
|
2200
2199
|
"page-size": r(c).pageSize,
|
|
@@ -2207,7 +2206,7 @@ const Ba = {
|
|
|
2207
2206
|
onCurrentChange: r(l)
|
|
2208
2207
|
}, null, 8, ["current-page", "page-size", "total", "page-sizes", "layout", "onSizeChange", "onCurrentChange"])
|
|
2209
2208
|
])
|
|
2210
|
-
])) :
|
|
2209
|
+
])) : F("v-if", !0);
|
|
2211
2210
|
}
|
|
2212
2211
|
}), bt = /* @__PURE__ */ v({
|
|
2213
2212
|
__name: "ProTableSearchRenderer",
|
|
@@ -2219,22 +2218,22 @@ const Ba = {
|
|
|
2219
2218
|
collapsible: { type: Boolean, default: !0 }
|
|
2220
2219
|
},
|
|
2221
2220
|
setup(n, { expose: o }) {
|
|
2222
|
-
const s = n, c = s.context.searchParam, i = s.context.searchSchema, l = s.context.search, t = s.context.reset, e =
|
|
2221
|
+
const s = n, c = s.context.searchParam, i = s.context.searchSchema, l = s.context.search, t = s.context.reset, e = D();
|
|
2223
2222
|
return o({
|
|
2224
2223
|
validate: (a) => {
|
|
2225
|
-
var
|
|
2226
|
-
return (A = (
|
|
2224
|
+
var k, A;
|
|
2225
|
+
return (A = (k = e.value) == null ? void 0 : k.validate) == null ? void 0 : A.call(k, a);
|
|
2227
2226
|
},
|
|
2228
2227
|
resetFields: () => {
|
|
2229
|
-
var a,
|
|
2230
|
-
return (
|
|
2228
|
+
var a, k;
|
|
2229
|
+
return (k = (a = e.value) == null ? void 0 : a.resetFields) == null ? void 0 : k.call(a);
|
|
2231
2230
|
},
|
|
2232
2231
|
clearValidate: (a) => {
|
|
2233
|
-
var
|
|
2234
|
-
return (A = (
|
|
2232
|
+
var k, A;
|
|
2233
|
+
return (A = (k = e.value) == null ? void 0 : k.clearValidate) == null ? void 0 : A.call(k, a);
|
|
2235
2234
|
},
|
|
2236
2235
|
formRef: e
|
|
2237
|
-
}), (a,
|
|
2236
|
+
}), (a, k) => (P(), Q(r(Ra), {
|
|
2238
2237
|
ref_key: "innerFormRef",
|
|
2239
2238
|
ref: e,
|
|
2240
2239
|
model: r(c),
|
|
@@ -2254,10 +2253,10 @@ const Ba = {
|
|
|
2254
2253
|
},
|
|
2255
2254
|
emits: ["radioChange"],
|
|
2256
2255
|
setup(n) {
|
|
2257
|
-
const o = n, s =
|
|
2256
|
+
const o = n, s = Ae("proTableEnumMap", { value: /* @__PURE__ */ new Map() }), c = Ae("proTableSlots", {}), i = O(() => {
|
|
2258
2257
|
const h = o.column.isShow;
|
|
2259
2258
|
return h === void 0 ? !0 : r(h);
|
|
2260
|
-
}), l =
|
|
2259
|
+
}), l = O(() => {
|
|
2261
2260
|
var g, p, d, f;
|
|
2262
2261
|
const h = o.column.enum;
|
|
2263
2262
|
return typeof h == "function" ? (p = s.value.get((g = o.column.prop) != null ? g : "")) != null ? p : [] : h ? r(h) : (f = s.value.get((d = o.column.prop) != null ? d : "")) != null ? f : [];
|
|
@@ -2275,7 +2274,7 @@ const Ba = {
|
|
|
2275
2274
|
function a(h) {
|
|
2276
2275
|
return h.split(".").reduce((p, d, f) => f === 0 ? p + d : p + d.charAt(0).toUpperCase() + d.slice(1), "");
|
|
2277
2276
|
}
|
|
2278
|
-
function
|
|
2277
|
+
function k(h) {
|
|
2279
2278
|
var q;
|
|
2280
2279
|
const { column: g } = o;
|
|
2281
2280
|
if (g.render)
|
|
@@ -2326,7 +2325,7 @@ const Ba = {
|
|
|
2326
2325
|
setup(h) {
|
|
2327
2326
|
return () => A(h.scope);
|
|
2328
2327
|
}
|
|
2329
|
-
}),
|
|
2328
|
+
}), H = v({
|
|
2330
2329
|
name: "ProTableCellRenderer",
|
|
2331
2330
|
props: {
|
|
2332
2331
|
scope: {
|
|
@@ -2335,7 +2334,7 @@ const Ba = {
|
|
|
2335
2334
|
}
|
|
2336
2335
|
},
|
|
2337
2336
|
setup(h) {
|
|
2338
|
-
return () =>
|
|
2337
|
+
return () => k(h.scope);
|
|
2339
2338
|
}
|
|
2340
2339
|
});
|
|
2341
2340
|
return (h, g) => {
|
|
@@ -2345,8 +2344,8 @@ const Ba = {
|
|
|
2345
2344
|
de,
|
|
2346
2345
|
{ key: 0 },
|
|
2347
2346
|
[
|
|
2348
|
-
|
|
2349
|
-
(d = n.column.children) != null && d.length ? (P(), Q(r(
|
|
2347
|
+
F(" 多级表头 "),
|
|
2348
|
+
(d = n.column.children) != null && d.length ? (P(), Q(r(xe), {
|
|
2350
2349
|
key: 0,
|
|
2351
2350
|
label: n.column.label,
|
|
2352
2351
|
align: n.column.align
|
|
@@ -2355,7 +2354,7 @@ const Ba = {
|
|
|
2355
2354
|
(P(!0), Z(
|
|
2356
2355
|
de,
|
|
2357
2356
|
null,
|
|
2358
|
-
|
|
2357
|
+
Ve(n.column.children, (f) => {
|
|
2359
2358
|
var B;
|
|
2360
2359
|
return P(), Q(p, {
|
|
2361
2360
|
key: (B = f.prop) != null ? B : f.label,
|
|
@@ -2372,10 +2371,10 @@ const Ba = {
|
|
|
2372
2371
|
de,
|
|
2373
2372
|
{ key: 1 },
|
|
2374
2373
|
[
|
|
2375
|
-
|
|
2374
|
+
F(" 特殊列:selection / index(自闭合,无需 slot) "),
|
|
2376
2375
|
I(
|
|
2377
|
-
r(
|
|
2378
|
-
|
|
2376
|
+
r(xe),
|
|
2377
|
+
we(ot(n.column)),
|
|
2379
2378
|
null,
|
|
2380
2379
|
16
|
|
2381
2380
|
/* FULL_PROPS */
|
|
@@ -2387,10 +2386,10 @@ const Ba = {
|
|
|
2387
2386
|
de,
|
|
2388
2387
|
{ key: 2 },
|
|
2389
2388
|
[
|
|
2390
|
-
|
|
2389
|
+
F(" expand 列:必须通过 #default slot 提供展开行内容 "),
|
|
2391
2390
|
I(
|
|
2392
|
-
r(
|
|
2393
|
-
|
|
2391
|
+
r(xe),
|
|
2392
|
+
we(ot(n.column)),
|
|
2394
2393
|
{
|
|
2395
2394
|
default: S((f) => [
|
|
2396
2395
|
I(r($), { scope: f }, null, 8, ["scope"])
|
|
@@ -2408,10 +2407,10 @@ const Ba = {
|
|
|
2408
2407
|
de,
|
|
2409
2408
|
{ key: 3 },
|
|
2410
2409
|
[
|
|
2411
|
-
|
|
2410
|
+
F(" radio 列 "),
|
|
2412
2411
|
I(
|
|
2413
|
-
r(
|
|
2414
|
-
|
|
2412
|
+
r(xe),
|
|
2413
|
+
C(n.column, {
|
|
2415
2414
|
width: "60",
|
|
2416
2415
|
align: "center"
|
|
2417
2416
|
}),
|
|
@@ -2437,10 +2436,10 @@ const Ba = {
|
|
|
2437
2436
|
de,
|
|
2438
2437
|
{ key: 4 },
|
|
2439
2438
|
[
|
|
2440
|
-
|
|
2439
|
+
F(" sort 列(拖拽手柄) "),
|
|
2441
2440
|
I(
|
|
2442
|
-
r(
|
|
2443
|
-
|
|
2441
|
+
r(xe),
|
|
2442
|
+
C(n.column, {
|
|
2444
2443
|
width: "60",
|
|
2445
2444
|
align: "center",
|
|
2446
2445
|
label: "排序"
|
|
@@ -2477,16 +2476,16 @@ const Ba = {
|
|
|
2477
2476
|
de,
|
|
2478
2477
|
{ key: 5 },
|
|
2479
2478
|
[
|
|
2480
|
-
|
|
2479
|
+
F(" 普通列 "),
|
|
2481
2480
|
I(
|
|
2482
|
-
r(
|
|
2483
|
-
|
|
2481
|
+
r(xe),
|
|
2482
|
+
we(ot(n.column)),
|
|
2484
2483
|
{
|
|
2485
2484
|
header: S((f) => [
|
|
2486
2485
|
I(r(M), { scope: f }, null, 8, ["scope"])
|
|
2487
2486
|
]),
|
|
2488
2487
|
default: S((f) => [
|
|
2489
|
-
I(r(
|
|
2488
|
+
I(r(H), { scope: f }, null, 8, ["scope"])
|
|
2490
2489
|
]),
|
|
2491
2490
|
_: 1
|
|
2492
2491
|
/* STABLE */
|
|
@@ -2501,7 +2500,7 @@ const Ba = {
|
|
|
2501
2500
|
],
|
|
2502
2501
|
64
|
|
2503
2502
|
/* STABLE_FRAGMENT */
|
|
2504
|
-
)) :
|
|
2503
|
+
)) : F("v-if", !0);
|
|
2505
2504
|
};
|
|
2506
2505
|
}
|
|
2507
2506
|
}), Ia = { class: "sy-pro-table__table" }, Fa = { class: "sy-pro-table__empty" }, gt = /* @__PURE__ */ v({
|
|
@@ -2513,11 +2512,11 @@ const Ba = {
|
|
|
2513
2512
|
onDragSort: { type: Function }
|
|
2514
2513
|
},
|
|
2515
2514
|
setup(n) {
|
|
2516
|
-
const o = n, s = o.context.props, c =
|
|
2515
|
+
const o = n, s = o.context.props, c = O(() => o.tableHeight), i = O(() => o.tableMaxHeight), l = o.context.tableRef, t = o.context.loading, e = o.context.tableData, a = o.context.flatColumns, k = o.context.selectionChange, A = o.context.onSortChange, $ = o.context.onRadioChange;
|
|
2517
2516
|
function M(h) {
|
|
2518
2517
|
l.value = h;
|
|
2519
2518
|
}
|
|
2520
|
-
function
|
|
2519
|
+
function H() {
|
|
2521
2520
|
var p;
|
|
2522
2521
|
if (!s.columns.some((d) => d.type === "sort") || !l.value)
|
|
2523
2522
|
return;
|
|
@@ -2534,15 +2533,15 @@ const Ba = {
|
|
|
2534
2533
|
}
|
|
2535
2534
|
});
|
|
2536
2535
|
}
|
|
2537
|
-
return
|
|
2538
|
-
|
|
2536
|
+
return Fe(() => {
|
|
2537
|
+
Be(() => H());
|
|
2539
2538
|
}), (h, g) => (P(), Z(
|
|
2540
2539
|
de,
|
|
2541
2540
|
null,
|
|
2542
2541
|
[
|
|
2543
|
-
|
|
2542
|
+
F(" wrapper 保证 querySelector 能找到 .sy-pro-table__table,height 直接传给 el-table "),
|
|
2544
2543
|
te("div", Ia, [
|
|
2545
|
-
|
|
2544
|
+
et((P(), Q(r(ln), {
|
|
2546
2545
|
ref: M,
|
|
2547
2546
|
height: c.value,
|
|
2548
2547
|
"max-height": i.value,
|
|
@@ -2552,25 +2551,25 @@ const Ba = {
|
|
|
2552
2551
|
"row-key": r(s).rowKey,
|
|
2553
2552
|
size: r(s).size,
|
|
2554
2553
|
"highlight-current-row": r(s).highlightCurrentRow,
|
|
2555
|
-
onSelectionChange: r(
|
|
2554
|
+
onSelectionChange: r(k),
|
|
2556
2555
|
onSortChange: r(A)
|
|
2557
2556
|
}, {
|
|
2558
2557
|
append: S(() => [
|
|
2559
|
-
|
|
2558
|
+
z(h.$slots, "append")
|
|
2560
2559
|
]),
|
|
2561
2560
|
empty: S(() => [
|
|
2562
|
-
|
|
2561
|
+
z(h.$slots, "empty", {}, () => [
|
|
2563
2562
|
te("div", Fa, [
|
|
2564
2563
|
I(r(hs), { description: "暂无数据" })
|
|
2565
2564
|
])
|
|
2566
2565
|
])
|
|
2567
2566
|
]),
|
|
2568
2567
|
default: S(() => [
|
|
2569
|
-
|
|
2568
|
+
z(h.$slots, "default"),
|
|
2570
2569
|
(P(!0), Z(
|
|
2571
2570
|
de,
|
|
2572
2571
|
null,
|
|
2573
|
-
|
|
2572
|
+
Ve(r(a), (p) => {
|
|
2574
2573
|
var d, f;
|
|
2575
2574
|
return P(), Q(Ma, {
|
|
2576
2575
|
key: (f = (d = p.prop) != null ? d : p.label) != null ? f : p.type,
|
|
@@ -2596,7 +2595,7 @@ const Ba = {
|
|
|
2596
2595
|
}), Da = {
|
|
2597
2596
|
key: 0,
|
|
2598
2597
|
class: "sy-pro-table__search"
|
|
2599
|
-
},
|
|
2598
|
+
}, za = { class: "sy-pro-table__main" }, Oa = { class: "sy-pro-table__header" }, Na = { class: "sy-pro-table__header-left" }, Ha = { class: "sy-pro-table__header-right" }, Ea = /* @__PURE__ */ v({
|
|
2600
2599
|
__name: "ClassicLayout",
|
|
2601
2600
|
props: {
|
|
2602
2601
|
context: {},
|
|
@@ -2604,7 +2603,7 @@ const Ba = {
|
|
|
2604
2603
|
},
|
|
2605
2604
|
setup(n) {
|
|
2606
2605
|
var G;
|
|
2607
|
-
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.selectedList, t = o.context.selectedListIds, e = o.context.isSelected, a = o.context.getTableList,
|
|
2606
|
+
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.selectedList, t = o.context.selectedListIds, e = o.context.isSelected, a = o.context.getTableList, k = o.context.openColSetting, A = o.context.toggleSearch, $ = o.context.showToolBtn, M = o.context.formRef, H = o.context.colSettingRef, h = D(), g = D(void 0), p = D(void 0), d = (G = Ae(He, {}).proTable) != null ? G : {};
|
|
2608
2607
|
function f() {
|
|
2609
2608
|
var re, me;
|
|
2610
2609
|
const U = h.value;
|
|
@@ -2631,18 +2630,18 @@ const Ba = {
|
|
|
2631
2630
|
}
|
|
2632
2631
|
g.value = void 0, p.value = f();
|
|
2633
2632
|
}
|
|
2634
|
-
|
|
2633
|
+
Ie(c, () => Be(B));
|
|
2635
2634
|
let q = null;
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
}),
|
|
2635
|
+
Fe(() => {
|
|
2636
|
+
Be(B), window.addEventListener("resize", B), h.value && (q = new ResizeObserver(B), q.observe(h.value));
|
|
2637
|
+
}), Xe(() => {
|
|
2639
2638
|
window.removeEventListener("resize", B), q == null || q.disconnect();
|
|
2640
2639
|
});
|
|
2641
2640
|
function W(U) {
|
|
2642
2641
|
M.value = U;
|
|
2643
2642
|
}
|
|
2644
2643
|
function j(U) {
|
|
2645
|
-
|
|
2644
|
+
H.value = U;
|
|
2646
2645
|
}
|
|
2647
2646
|
return (U, K) => (P(), Z(
|
|
2648
2647
|
"div",
|
|
@@ -2658,64 +2657,69 @@ const Ba = {
|
|
|
2658
2657
|
context: n.context,
|
|
2659
2658
|
cols: r(s).searchCols
|
|
2660
2659
|
}, null, 8, ["context", "cols"])
|
|
2661
|
-
])) :
|
|
2662
|
-
te("div",
|
|
2663
|
-
te("div",
|
|
2664
|
-
te("div",
|
|
2665
|
-
|
|
2660
|
+
])) : F("v-if", !0),
|
|
2661
|
+
te("div", za, [
|
|
2662
|
+
te("div", Oa, [
|
|
2663
|
+
te("div", Na, [
|
|
2664
|
+
F(" 业务操作按钮(新增/导出等),始终可见 "),
|
|
2665
|
+
z(U.$slots, "busActions"),
|
|
2666
|
+
F(" 批量操作,仅在有选中行时追加显示 "),
|
|
2667
|
+
r(e) ? z(U.$slots, "batchActions", {
|
|
2668
|
+
key: 0,
|
|
2666
2669
|
selectedList: r(l),
|
|
2667
2670
|
selectedListIds: r(t),
|
|
2668
2671
|
isSelected: r(e)
|
|
2669
|
-
})
|
|
2672
|
+
}) : F("v-if", !0)
|
|
2670
2673
|
]),
|
|
2671
|
-
te("div",
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2674
|
+
te("div", Ha, [
|
|
2675
|
+
F(" 用户自定义工具按钮(追加在系统按钮之前) "),
|
|
2676
|
+
z(U.$slots, "toolButton"),
|
|
2677
|
+
F(" 系统工具按钮,始终渲染 "),
|
|
2678
|
+
r($)("refresh") ? (P(), Q(r($e), {
|
|
2679
|
+
key: 0,
|
|
2680
|
+
content: "刷新",
|
|
2681
|
+
placement: "top"
|
|
2682
|
+
}, {
|
|
2683
|
+
default: S(() => [
|
|
2684
|
+
I(r(le), {
|
|
2685
|
+
icon: r(en),
|
|
2686
|
+
circle: "",
|
|
2687
|
+
onClick: r(a)
|
|
2688
|
+
}, null, 8, ["icon", "onClick"])
|
|
2689
|
+
]),
|
|
2690
|
+
_: 1
|
|
2691
|
+
/* STABLE */
|
|
2692
|
+
})) : F("v-if", !0),
|
|
2693
|
+
r($)("setting") ? (P(), Q(r($e), {
|
|
2694
|
+
key: 1,
|
|
2695
|
+
content: "列设置",
|
|
2696
|
+
placement: "top"
|
|
2697
|
+
}, {
|
|
2698
|
+
default: S(() => [
|
|
2699
|
+
I(r(le), {
|
|
2700
|
+
icon: r(tn),
|
|
2701
|
+
circle: "",
|
|
2702
|
+
onClick: r(k)
|
|
2703
|
+
}, null, 8, ["icon", "onClick"])
|
|
2704
|
+
]),
|
|
2705
|
+
_: 1
|
|
2706
|
+
/* STABLE */
|
|
2707
|
+
})) : F("v-if", !0),
|
|
2708
|
+
r(s).showSearch && r($)("search") && r(i).length > 0 ? (P(), Q(r($e), {
|
|
2709
|
+
key: 2,
|
|
2710
|
+
content: "搜索",
|
|
2711
|
+
placement: "top"
|
|
2712
|
+
}, {
|
|
2713
|
+
default: S(() => [
|
|
2714
|
+
I(r(le), {
|
|
2715
|
+
icon: r(nn),
|
|
2716
|
+
circle: "",
|
|
2717
|
+
onClick: r(A)
|
|
2718
|
+
}, null, 8, ["icon", "onClick"])
|
|
2719
|
+
]),
|
|
2720
|
+
_: 1
|
|
2721
|
+
/* STABLE */
|
|
2722
|
+
})) : F("v-if", !0)
|
|
2719
2723
|
])
|
|
2720
2724
|
]),
|
|
2721
2725
|
I(gt, {
|
|
@@ -2725,20 +2729,20 @@ const Ba = {
|
|
|
2725
2729
|
"on-drag-sort": n.onDragSort
|
|
2726
2730
|
}, {
|
|
2727
2731
|
append: S(() => [
|
|
2728
|
-
|
|
2732
|
+
z(U.$slots, "append")
|
|
2729
2733
|
]),
|
|
2730
2734
|
empty: S(() => [
|
|
2731
|
-
|
|
2735
|
+
z(U.$slots, "empty")
|
|
2732
2736
|
]),
|
|
2733
2737
|
default: S(() => [
|
|
2734
|
-
|
|
2738
|
+
z(U.$slots, "default")
|
|
2735
2739
|
]),
|
|
2736
2740
|
_: 3
|
|
2737
2741
|
/* FORWARDED */
|
|
2738
2742
|
}, 8, ["context", "table-height", "table-max-height", "on-drag-sort"]),
|
|
2739
2743
|
I(yt, { context: n.context }, {
|
|
2740
2744
|
pagination: S(() => [
|
|
2741
|
-
|
|
2745
|
+
z(U.$slots, "pagination")
|
|
2742
2746
|
]),
|
|
2743
2747
|
_: 3
|
|
2744
2748
|
/* FORWARDED */
|
|
@@ -2763,8 +2767,8 @@ const Ba = {
|
|
|
2763
2767
|
},
|
|
2764
2768
|
emits: ["search", "remove", "update:modelValue"],
|
|
2765
2769
|
setup(n, { emit: o }) {
|
|
2766
|
-
const s = n, c = o, i =
|
|
2767
|
-
var
|
|
2770
|
+
const s = n, c = o, i = Ae("proTableEnumMap", { value: /* @__PURE__ */ new Map() }), l = O(() => {
|
|
2771
|
+
var k, A, $, M, H, h, g;
|
|
2768
2772
|
const e = s.column, a = (() => {
|
|
2769
2773
|
var p, d, f, B, q, W, j;
|
|
2770
2774
|
if (((p = e.search) == null ? void 0 : p.options) !== void 0) {
|
|
@@ -2775,10 +2779,10 @@ const Ba = {
|
|
|
2775
2779
|
return typeof e.enum == "function" ? (W = i.value.get((q = e.prop) != null ? q : "")) != null ? W : void 0 : Array.isArray(e.enum) ? e.enum : (j = r(e.enum)) != null ? j : void 0;
|
|
2776
2780
|
})();
|
|
2777
2781
|
return {
|
|
2778
|
-
field: ($ = (A = (
|
|
2782
|
+
field: ($ = (A = (k = e.search) == null ? void 0 : k.key) != null ? A : e.prop) != null ? $ : "",
|
|
2779
2783
|
label: e.label,
|
|
2780
2784
|
component: (M = e.search) == null ? void 0 : M.component,
|
|
2781
|
-
props: ce(
|
|
2785
|
+
props: ce(N({}, (H = e.search) == null ? void 0 : H.props), {
|
|
2782
2786
|
clearable: !1
|
|
2783
2787
|
}),
|
|
2784
2788
|
options: a,
|
|
@@ -2791,7 +2795,7 @@ const Ba = {
|
|
|
2791
2795
|
c("update:modelValue", e);
|
|
2792
2796
|
}
|
|
2793
2797
|
return (e, a) => {
|
|
2794
|
-
var
|
|
2798
|
+
var k, A, $;
|
|
2795
2799
|
return P(), Z(
|
|
2796
2800
|
"div",
|
|
2797
2801
|
{
|
|
@@ -2803,7 +2807,7 @@ const Ba = {
|
|
|
2803
2807
|
"div",
|
|
2804
2808
|
{
|
|
2805
2809
|
class: "sy-pro-table__custom-filter-chip-control",
|
|
2806
|
-
style:
|
|
2810
|
+
style: _e({ width: `${($ = (A = (k = s.column.search) == null ? void 0 : k.chipWidth) != null ? A : s.width) != null ? $ : 100}px` })
|
|
2807
2811
|
},
|
|
2808
2812
|
[
|
|
2809
2813
|
I(ht, {
|
|
@@ -2843,13 +2847,13 @@ const Ba = {
|
|
|
2843
2847
|
},
|
|
2844
2848
|
emits: ["search", "update:modelValue"],
|
|
2845
2849
|
setup(n, { emit: o }) {
|
|
2846
|
-
const s = n, c = o, i =
|
|
2850
|
+
const s = n, c = o, i = Ae("proTableEnumMap", { value: /* @__PURE__ */ new Map() }), l = O(() => {
|
|
2847
2851
|
var A;
|
|
2848
|
-
const a = (A = s.column.search) == null ? void 0 : A.quick,
|
|
2849
|
-
return { width: typeof
|
|
2850
|
-
}), t =
|
|
2851
|
-
var A, $, M,
|
|
2852
|
-
const a = s.column,
|
|
2852
|
+
const a = (A = s.column.search) == null ? void 0 : A.quick, k = typeof a == "object" && (a == null ? void 0 : a.width) || 220;
|
|
2853
|
+
return { width: typeof k == "number" ? `${k}px` : k };
|
|
2854
|
+
}), t = O(() => {
|
|
2855
|
+
var A, $, M, H, h, g, p;
|
|
2856
|
+
const a = s.column, k = (() => {
|
|
2853
2857
|
var d, f, B, q, W, j, G;
|
|
2854
2858
|
if (((d = a.search) == null ? void 0 : d.options) !== void 0) {
|
|
2855
2859
|
const U = a.search.options;
|
|
@@ -2861,9 +2865,9 @@ const Ba = {
|
|
|
2861
2865
|
return {
|
|
2862
2866
|
field: (M = ($ = (A = a.search) == null ? void 0 : A.key) != null ? $ : a.prop) != null ? M : "",
|
|
2863
2867
|
label: a.label,
|
|
2864
|
-
component: (
|
|
2868
|
+
component: (H = a.search) == null ? void 0 : H.component,
|
|
2865
2869
|
props: (h = a.search) == null ? void 0 : h.props,
|
|
2866
|
-
options:
|
|
2870
|
+
options: k,
|
|
2867
2871
|
fieldNames: a.fieldNames,
|
|
2868
2872
|
defaultValue: (g = a.search) == null ? void 0 : g.defaultValue,
|
|
2869
2873
|
render: (p = a.search) == null ? void 0 : p.render
|
|
@@ -2872,12 +2876,12 @@ const Ba = {
|
|
|
2872
2876
|
function e(a) {
|
|
2873
2877
|
c("update:modelValue", a);
|
|
2874
2878
|
}
|
|
2875
|
-
return (a,
|
|
2879
|
+
return (a, k) => (P(), Z(
|
|
2876
2880
|
"div",
|
|
2877
2881
|
{
|
|
2878
2882
|
class: "sy-pro-table__unify-quick",
|
|
2879
|
-
style:
|
|
2880
|
-
onKeyup:
|
|
2883
|
+
style: _e(l.value),
|
|
2884
|
+
onKeyup: k[0] || (k[0] = jt((A) => c("search"), ["enter"]))
|
|
2881
2885
|
},
|
|
2882
2886
|
[
|
|
2883
2887
|
I(ht, {
|
|
@@ -2909,16 +2913,16 @@ const Ba = {
|
|
|
2909
2913
|
(P(!0), Z(
|
|
2910
2914
|
de,
|
|
2911
2915
|
null,
|
|
2912
|
-
|
|
2913
|
-
var e, a,
|
|
2916
|
+
Ve(n.quickSearchColumns, (t) => {
|
|
2917
|
+
var e, a, k, A, $;
|
|
2914
2918
|
return P(), Q(cn, {
|
|
2915
2919
|
key: (a = (e = t.search) == null ? void 0 : e.key) != null ? a : t.prop,
|
|
2916
|
-
"model-value": n.searchParam[($ = (A = (
|
|
2920
|
+
"model-value": n.searchParam[($ = (A = (k = t.search) == null ? void 0 : k.key) != null ? A : t.prop) != null ? $ : ""],
|
|
2917
2921
|
column: t,
|
|
2918
2922
|
model: n.searchParam,
|
|
2919
2923
|
"onUpdate:modelValue": (M) => {
|
|
2920
|
-
var
|
|
2921
|
-
return s("updateParam", (g = (h = (
|
|
2924
|
+
var H, h, g;
|
|
2925
|
+
return s("updateParam", (g = (h = (H = t.search) == null ? void 0 : H.key) != null ? h : t.prop) != null ? g : "", M);
|
|
2922
2926
|
},
|
|
2923
2927
|
onSearch: c
|
|
2924
2928
|
}, null, 8, ["model-value", "column", "model", "onUpdate:modelValue"]);
|
|
@@ -2926,7 +2930,7 @@ const Ba = {
|
|
|
2926
2930
|
128
|
|
2927
2931
|
/* KEYED_FRAGMENT */
|
|
2928
2932
|
)),
|
|
2929
|
-
I(r(
|
|
2933
|
+
I(r($e), {
|
|
2930
2934
|
content: "查询",
|
|
2931
2935
|
placement: "top"
|
|
2932
2936
|
}, {
|
|
@@ -2940,7 +2944,7 @@ const Ba = {
|
|
|
2940
2944
|
_: 1
|
|
2941
2945
|
/* STABLE */
|
|
2942
2946
|
}),
|
|
2943
|
-
n.showAdvanced ? (P(), Q(r(
|
|
2947
|
+
n.showAdvanced ? (P(), Q(r($e), {
|
|
2944
2948
|
key: 0,
|
|
2945
2949
|
content: "高级筛选",
|
|
2946
2950
|
placement: "top"
|
|
@@ -2954,7 +2958,7 @@ const Ba = {
|
|
|
2954
2958
|
]),
|
|
2955
2959
|
_: 1
|
|
2956
2960
|
/* STABLE */
|
|
2957
|
-
})) :
|
|
2961
|
+
})) : F("v-if", !0)
|
|
2958
2962
|
]));
|
|
2959
2963
|
}
|
|
2960
2964
|
}), Ka = { class: "sy-pro-table__custom-panel-inner" }, ja = { class: "sy-pro-table__custom-panel-footer" }, Wa = /* @__PURE__ */ v({
|
|
@@ -2967,7 +2971,7 @@ const Ba = {
|
|
|
2967
2971
|
},
|
|
2968
2972
|
emits: ["close", "panelSearch"],
|
|
2969
2973
|
setup(n, { emit: o }) {
|
|
2970
|
-
const s = n, c = o, i =
|
|
2974
|
+
const s = n, c = o, i = O(() => {
|
|
2971
2975
|
const h = typeof s.cols == "number" ? s.cols : 1;
|
|
2972
2976
|
return { width: `${Math.max(360, h * 280 + 32)}px` };
|
|
2973
2977
|
}), l = s.context.search, t = s.context.reset;
|
|
@@ -2977,12 +2981,12 @@ const Ba = {
|
|
|
2977
2981
|
function a() {
|
|
2978
2982
|
t(), c("close");
|
|
2979
2983
|
}
|
|
2980
|
-
const
|
|
2984
|
+
const k = s.context.formRef, A = D();
|
|
2981
2985
|
function $(h) {
|
|
2982
|
-
|
|
2986
|
+
k.value = h;
|
|
2983
2987
|
}
|
|
2984
2988
|
let M = null;
|
|
2985
|
-
function
|
|
2989
|
+
function H(h) {
|
|
2986
2990
|
var p;
|
|
2987
2991
|
const g = h.composedPath();
|
|
2988
2992
|
for (const d of g) {
|
|
@@ -2992,11 +2996,11 @@ const Ba = {
|
|
|
2992
2996
|
}
|
|
2993
2997
|
c("close");
|
|
2994
2998
|
}
|
|
2995
|
-
return
|
|
2999
|
+
return Ie(
|
|
2996
3000
|
() => s.visible,
|
|
2997
3001
|
(h) => {
|
|
2998
|
-
M == null || M(), M = null, h &&
|
|
2999
|
-
document.addEventListener("mousedown",
|
|
3002
|
+
M == null || M(), M = null, h && Be(() => {
|
|
3003
|
+
document.addEventListener("mousedown", H, !0), M = () => document.removeEventListener("mousedown", H, !0);
|
|
3000
3004
|
});
|
|
3001
3005
|
}
|
|
3002
3006
|
), dt(() => M == null ? void 0 : M()), (h, g) => (P(), Q(pt, {
|
|
@@ -3004,13 +3008,13 @@ const Ba = {
|
|
|
3004
3008
|
persisted: ""
|
|
3005
3009
|
}, {
|
|
3006
3010
|
default: S(() => [
|
|
3007
|
-
|
|
3011
|
+
et(te(
|
|
3008
3012
|
"div",
|
|
3009
3013
|
{
|
|
3010
3014
|
ref_key: "panelRootRef",
|
|
3011
3015
|
ref: A,
|
|
3012
3016
|
class: "sy-pro-table__custom-panel",
|
|
3013
|
-
style:
|
|
3017
|
+
style: _e(i.value)
|
|
3014
3018
|
},
|
|
3015
3019
|
[
|
|
3016
3020
|
te("div", Ka, [
|
|
@@ -3069,46 +3073,46 @@ const Ba = {
|
|
|
3069
3073
|
},
|
|
3070
3074
|
setup(n) {
|
|
3071
3075
|
var ze;
|
|
3072
|
-
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.quickSearchColumns, t = o.context.searchParam, e = o.context.selectedList, a = o.context.selectedListIds,
|
|
3076
|
+
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.quickSearchColumns, t = o.context.searchParam, e = o.context.selectedList, a = o.context.selectedListIds, k = o.context.isSelected, A = o.context.search, $ = o.context.toggleSearch, M = o.context.showToolBtn, H = o.context.getTableList, h = o.context.openColSetting, g = o.context.colSettingRef, p = o.context.clearSelection, d = o.context.searchInitParam, f = O(() => !!s.showSearch && c.value && i.value.length > 0), B = O(() => {
|
|
3073
3077
|
const u = new Set(l.value.map((b) => {
|
|
3074
|
-
var V,
|
|
3075
|
-
return (Y = (
|
|
3078
|
+
var V, E, Y;
|
|
3079
|
+
return (Y = (E = (V = b.search) == null ? void 0 : V.key) != null ? E : b.prop) != null ? Y : "";
|
|
3076
3080
|
}));
|
|
3077
3081
|
return i.value.filter((b) => {
|
|
3078
|
-
var V,
|
|
3079
|
-
return !u.has((Y = (
|
|
3082
|
+
var V, E, Y;
|
|
3083
|
+
return !u.has((Y = (E = (V = b.search) == null ? void 0 : V.key) != null ? E : b.prop) != null ? Y : "");
|
|
3080
3084
|
});
|
|
3081
|
-
}), q =
|
|
3082
|
-
var
|
|
3083
|
-
const b = (J = (Y = (
|
|
3085
|
+
}), q = D(/* @__PURE__ */ new Set()), W = O(() => B.value.map((u) => {
|
|
3086
|
+
var E, Y, J;
|
|
3087
|
+
const b = (J = (Y = (E = u.search) == null ? void 0 : E.key) != null ? Y : u.prop) != null ? J : "";
|
|
3084
3088
|
if (!q.value.has(b))
|
|
3085
3089
|
return null;
|
|
3086
3090
|
const V = t.value[b];
|
|
3087
3091
|
return V == null || V === "" || Array.isArray(V) && V.length === 0 ? null : { key: b, column: u };
|
|
3088
|
-
}).filter((u) => u !== null)), j =
|
|
3092
|
+
}).filter((u) => u !== null)), j = O(() => {
|
|
3089
3093
|
var b;
|
|
3090
3094
|
const u = (b = s.filterChipMax) != null ? b : 3;
|
|
3091
3095
|
return W.value.slice(0, u);
|
|
3092
|
-
}), G =
|
|
3096
|
+
}), G = O(() => {
|
|
3093
3097
|
var b;
|
|
3094
3098
|
const u = (b = s.filterChipMax) != null ? b : 3;
|
|
3095
3099
|
return W.value.slice(u);
|
|
3096
|
-
}), U =
|
|
3100
|
+
}), U = D(!1), K = D(), se = D(null), ne = D(null), ie = O(() => {
|
|
3097
3101
|
const u = ne.value, b = m.value;
|
|
3098
3102
|
if (!u || !b)
|
|
3099
3103
|
return { left: "16px" };
|
|
3100
|
-
const V = b.getBoundingClientRect(),
|
|
3101
|
-
return { left: `${Math.round(
|
|
3104
|
+
const V = b.getBoundingClientRect(), E = u.getBoundingClientRect();
|
|
3105
|
+
return { left: `${Math.round(E.left - V.left)}px` };
|
|
3102
3106
|
});
|
|
3103
3107
|
function X() {
|
|
3104
3108
|
U.value = !U.value;
|
|
3105
3109
|
}
|
|
3106
|
-
|
|
3110
|
+
Ie(G, (u) => {
|
|
3107
3111
|
u.length === 0 && (U.value = !1);
|
|
3108
3112
|
});
|
|
3109
3113
|
function ue(u) {
|
|
3110
|
-
var
|
|
3111
|
-
const b = u.composedPath(), V = (Y = (
|
|
3114
|
+
var E, Y, J;
|
|
3115
|
+
const b = u.composedPath(), V = (Y = (E = se.value) == null ? void 0 : E.$el) != null ? Y : se.value;
|
|
3112
3116
|
for (const pe of b) {
|
|
3113
3117
|
const ae = pe;
|
|
3114
3118
|
if (ae != null && ae.classList && (ae === K.value || (J = V == null ? void 0 : V.contains) != null && J.call(V, ae) || ae === V || ae.classList.contains("el-popper") || ae.classList.contains("el-overlay") || ae.classList.contains("el-picker__popper") || ae.classList.contains("el-select__popper") || ae.classList.contains("el-select-dropdown") || ae.classList.contains("el-date-picker") || ae.classList.contains("el-date-range-picker")))
|
|
@@ -3117,16 +3121,16 @@ const Ba = {
|
|
|
3117
3121
|
U.value = !1;
|
|
3118
3122
|
}
|
|
3119
3123
|
let re = null;
|
|
3120
|
-
|
|
3121
|
-
re == null || re(), re = null, u &&
|
|
3124
|
+
Ie(U, (u) => {
|
|
3125
|
+
re == null || re(), re = null, u && Be(() => {
|
|
3122
3126
|
document.addEventListener("mousedown", ue, !0), re = () => document.removeEventListener("mousedown", ue, !0);
|
|
3123
3127
|
});
|
|
3124
3128
|
}), dt(() => re == null ? void 0 : re());
|
|
3125
3129
|
function me() {
|
|
3126
3130
|
q.value = new Set(
|
|
3127
3131
|
B.value.map((u) => {
|
|
3128
|
-
var b, V,
|
|
3129
|
-
return (
|
|
3132
|
+
var b, V, E;
|
|
3133
|
+
return (E = (V = (b = u.search) == null ? void 0 : b.key) != null ? V : u.prop) != null ? E : "";
|
|
3130
3134
|
}).filter((u) => {
|
|
3131
3135
|
const b = t.value[u];
|
|
3132
3136
|
return b != null && b !== "" && !(Array.isArray(b) && b.length === 0);
|
|
@@ -3142,21 +3146,21 @@ const Ba = {
|
|
|
3142
3146
|
}
|
|
3143
3147
|
function Ce() {
|
|
3144
3148
|
B.value.forEach((u) => {
|
|
3145
|
-
var V,
|
|
3146
|
-
const b = (Y = (
|
|
3149
|
+
var V, E, Y, J;
|
|
3150
|
+
const b = (Y = (E = (V = u.search) == null ? void 0 : V.key) != null ? E : u.prop) != null ? Y : "";
|
|
3147
3151
|
t.value[b] = (J = d[b]) != null ? J : void 0;
|
|
3148
3152
|
}), q.value.clear(), A();
|
|
3149
3153
|
}
|
|
3150
|
-
const m =
|
|
3154
|
+
const m = D(), L = D(void 0), T = D(void 0), ee = (ze = Ae(He, {}).proTable) != null ? ze : {};
|
|
3151
3155
|
function oe() {
|
|
3152
|
-
var ae,
|
|
3156
|
+
var ae, Te;
|
|
3153
3157
|
const u = m.value;
|
|
3154
3158
|
if (!u)
|
|
3155
3159
|
return;
|
|
3156
3160
|
const b = u.querySelector(".sy-pro-table__table"), V = u.querySelector(".sy-pro-table__pagination");
|
|
3157
3161
|
if (!b)
|
|
3158
3162
|
return;
|
|
3159
|
-
const
|
|
3163
|
+
const E = b.getBoundingClientRect().top, Y = V ? V.getBoundingClientRect().height : 0, J = (Te = (ae = s.heightOffset) != null ? ae : ee.heightOffset) != null ? Te : 0, pe = Math.floor(window.innerHeight - E - Y - J);
|
|
3160
3164
|
return pe > 80 ? pe : void 0;
|
|
3161
3165
|
}
|
|
3162
3166
|
function ve() {
|
|
@@ -3175,15 +3179,15 @@ const Ba = {
|
|
|
3175
3179
|
L.value = void 0, T.value = oe();
|
|
3176
3180
|
}
|
|
3177
3181
|
let ye = null;
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
}),
|
|
3182
|
+
Fe(() => {
|
|
3183
|
+
Be(ve), window.addEventListener("resize", ve), m.value && (ye = new ResizeObserver(ve), ye.observe(m.value));
|
|
3184
|
+
}), Xe(() => {
|
|
3181
3185
|
window.removeEventListener("resize", ve), ye == null || ye.disconnect();
|
|
3182
3186
|
});
|
|
3183
3187
|
function be(u) {
|
|
3184
3188
|
g.value = u;
|
|
3185
3189
|
}
|
|
3186
|
-
function
|
|
3190
|
+
function je() {
|
|
3187
3191
|
c.value && $();
|
|
3188
3192
|
}
|
|
3189
3193
|
return (u, b) => (P(), Z(
|
|
@@ -3196,8 +3200,8 @@ const Ba = {
|
|
|
3196
3200
|
[
|
|
3197
3201
|
te("div", Ga, [
|
|
3198
3202
|
te("div", Qa, [
|
|
3199
|
-
|
|
3200
|
-
r(
|
|
3203
|
+
F(" 批量操作模式:选中行时替换整个 header "),
|
|
3204
|
+
r(k) ? (P(), Z(
|
|
3201
3205
|
de,
|
|
3202
3206
|
{ key: 0 },
|
|
3203
3207
|
[
|
|
@@ -3205,7 +3209,7 @@ const Ba = {
|
|
|
3205
3209
|
te(
|
|
3206
3210
|
"span",
|
|
3207
3211
|
Ja,
|
|
3208
|
-
"已选 " +
|
|
3212
|
+
"已选 " + ke(r(e).length) + " 条数据",
|
|
3209
3213
|
1
|
|
3210
3214
|
/* TEXT */
|
|
3211
3215
|
),
|
|
@@ -3216,10 +3220,10 @@ const Ba = {
|
|
|
3216
3220
|
-1
|
|
3217
3221
|
/* CACHED */
|
|
3218
3222
|
)),
|
|
3219
|
-
|
|
3223
|
+
z(u.$slots, "batchActions", {
|
|
3220
3224
|
selectedList: r(e),
|
|
3221
3225
|
selectedListIds: r(a),
|
|
3222
|
-
isSelected: r(
|
|
3226
|
+
isSelected: r(k)
|
|
3223
3227
|
})
|
|
3224
3228
|
]),
|
|
3225
3229
|
I(r(le), {
|
|
@@ -3235,8 +3239,8 @@ const Ba = {
|
|
|
3235
3239
|
de,
|
|
3236
3240
|
{ key: 1 },
|
|
3237
3241
|
[
|
|
3238
|
-
|
|
3239
|
-
|
|
3242
|
+
F(" 正常模式 "),
|
|
3243
|
+
F(" 左侧:快速查询 + 高级筛选 + 已应用筛选 tags "),
|
|
3240
3244
|
te("div", Za, [
|
|
3241
3245
|
I(Ua, {
|
|
3242
3246
|
"quick-search-columns": r(l),
|
|
@@ -3245,9 +3249,9 @@ const Ba = {
|
|
|
3245
3249
|
"filter-active": f.value || W.value.length > 0,
|
|
3246
3250
|
onSearch: r(A),
|
|
3247
3251
|
onToggleAdvanced: r($),
|
|
3248
|
-
onUpdateParam: b[0] || (b[0] = (V,
|
|
3252
|
+
onUpdateParam: b[0] || (b[0] = (V, E) => r(t)[V] = E)
|
|
3249
3253
|
}, null, 8, ["quick-search-columns", "search-param", "show-advanced", "filter-active", "onSearch", "onToggleAdvanced"]),
|
|
3250
|
-
|
|
3254
|
+
F(" chips 行整体包一个 div,用于精确计算 overflow panel 的对齐 left "),
|
|
3251
3255
|
W.value.length > 0 ? (P(), Z(
|
|
3252
3256
|
"div",
|
|
3253
3257
|
{
|
|
@@ -3260,20 +3264,20 @@ const Ba = {
|
|
|
3260
3264
|
(P(!0), Z(
|
|
3261
3265
|
de,
|
|
3262
3266
|
null,
|
|
3263
|
-
|
|
3267
|
+
Ve(j.value, (V) => (P(), Q(Et, {
|
|
3264
3268
|
key: V.key,
|
|
3265
3269
|
column: V.column,
|
|
3266
3270
|
model: r(t),
|
|
3267
3271
|
"model-value": r(t)[V.key],
|
|
3268
3272
|
width: r(s).filterChipWidth,
|
|
3269
|
-
"onUpdate:modelValue": (
|
|
3273
|
+
"onUpdate:modelValue": (E) => he(V.key, E),
|
|
3270
3274
|
onSearch: r(A),
|
|
3271
|
-
onRemove: (
|
|
3275
|
+
onRemove: (E) => Se(V.key)
|
|
3272
3276
|
}, null, 8, ["column", "model", "model-value", "width", "onUpdate:modelValue", "onSearch", "onRemove"]))),
|
|
3273
3277
|
128
|
|
3274
3278
|
/* KEYED_FRAGMENT */
|
|
3275
3279
|
)),
|
|
3276
|
-
|
|
3280
|
+
F(" 超出 filterChipMax 时的折叠入口 "),
|
|
3277
3281
|
G.value.length > 0 ? (P(), Q(
|
|
3278
3282
|
r(le),
|
|
3279
3283
|
{
|
|
@@ -3289,7 +3293,7 @@ const Ba = {
|
|
|
3289
3293
|
{
|
|
3290
3294
|
default: S(() => [
|
|
3291
3295
|
fe(
|
|
3292
|
-
" +" +
|
|
3296
|
+
" +" + ke(G.value.length),
|
|
3293
3297
|
1
|
|
3294
3298
|
/* TEXT */
|
|
3295
3299
|
)
|
|
@@ -3299,7 +3303,7 @@ const Ba = {
|
|
|
3299
3303
|
},
|
|
3300
3304
|
512
|
|
3301
3305
|
/* NEED_PATCH */
|
|
3302
|
-
)) :
|
|
3306
|
+
)) : F("v-if", !0),
|
|
3303
3307
|
G.value.length === 0 ? (P(), Q(r(le), {
|
|
3304
3308
|
key: 1,
|
|
3305
3309
|
link: "",
|
|
@@ -3316,16 +3320,17 @@ const Ba = {
|
|
|
3316
3320
|
])]),
|
|
3317
3321
|
_: 1
|
|
3318
3322
|
/* STABLE */
|
|
3319
|
-
})) :
|
|
3323
|
+
})) : F("v-if", !0)
|
|
3320
3324
|
],
|
|
3321
3325
|
512
|
|
3322
3326
|
/* NEED_PATCH */
|
|
3323
|
-
)) :
|
|
3327
|
+
)) : F("v-if", !0)
|
|
3324
3328
|
]),
|
|
3325
|
-
|
|
3329
|
+
F(" 右侧:业务操作按钮 + 工具按钮 + 刷新 + 列设置 "),
|
|
3326
3330
|
te("div", Xa, [
|
|
3327
|
-
|
|
3328
|
-
|
|
3331
|
+
z(u.$slots, "busActions"),
|
|
3332
|
+
z(u.$slots, "toolButton"),
|
|
3333
|
+
r(M)("refresh") ? (P(), Q(r($e), {
|
|
3329
3334
|
key: 0,
|
|
3330
3335
|
content: "刷新",
|
|
3331
3336
|
placement: "top"
|
|
@@ -3334,13 +3339,13 @@ const Ba = {
|
|
|
3334
3339
|
I(r(le), {
|
|
3335
3340
|
icon: r(en),
|
|
3336
3341
|
circle: "",
|
|
3337
|
-
onClick: r(
|
|
3342
|
+
onClick: r(H)
|
|
3338
3343
|
}, null, 8, ["icon", "onClick"])
|
|
3339
3344
|
]),
|
|
3340
3345
|
_: 1
|
|
3341
3346
|
/* STABLE */
|
|
3342
|
-
})) :
|
|
3343
|
-
r(M)("setting") ? (P(), Q(r(
|
|
3347
|
+
})) : F("v-if", !0),
|
|
3348
|
+
r(M)("setting") ? (P(), Q(r($e), {
|
|
3344
3349
|
key: 1,
|
|
3345
3350
|
content: "列设置",
|
|
3346
3351
|
placement: "top"
|
|
@@ -3354,7 +3359,7 @@ const Ba = {
|
|
|
3354
3359
|
]),
|
|
3355
3360
|
_: 1
|
|
3356
3361
|
/* STABLE */
|
|
3357
|
-
})) :
|
|
3362
|
+
})) : F("v-if", !0)
|
|
3358
3363
|
])
|
|
3359
3364
|
],
|
|
3360
3365
|
64
|
|
@@ -3368,62 +3373,62 @@ const Ba = {
|
|
|
3368
3373
|
"on-drag-sort": n.onDragSort
|
|
3369
3374
|
}, {
|
|
3370
3375
|
append: S(() => [
|
|
3371
|
-
|
|
3376
|
+
z(u.$slots, "append")
|
|
3372
3377
|
]),
|
|
3373
3378
|
empty: S(() => [
|
|
3374
|
-
|
|
3379
|
+
z(u.$slots, "empty")
|
|
3375
3380
|
]),
|
|
3376
3381
|
default: S(() => [
|
|
3377
|
-
|
|
3382
|
+
z(u.$slots, "default")
|
|
3378
3383
|
]),
|
|
3379
3384
|
_: 3
|
|
3380
3385
|
/* FORWARDED */
|
|
3381
3386
|
}, 8, ["context", "table-height", "table-max-height", "on-drag-sort"]),
|
|
3382
3387
|
I(yt, { context: n.context }, {
|
|
3383
3388
|
pagination: S(() => [
|
|
3384
|
-
|
|
3389
|
+
z(u.$slots, "pagination")
|
|
3385
3390
|
]),
|
|
3386
3391
|
_: 3
|
|
3387
3392
|
/* FORWARDED */
|
|
3388
3393
|
}, 8, ["context"])
|
|
3389
3394
|
]),
|
|
3390
|
-
|
|
3395
|
+
F(" 两个浮层面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),
|
|
3391
3396
|
I(Wa, {
|
|
3392
3397
|
context: n.context,
|
|
3393
3398
|
visible: f.value,
|
|
3394
3399
|
cols: r(s).panelCols,
|
|
3395
3400
|
"exclude-selector": ".sy-pro-table__custom-filter-btn",
|
|
3396
|
-
onClose:
|
|
3401
|
+
onClose: je,
|
|
3397
3402
|
onPanelSearch: me
|
|
3398
3403
|
}, null, 8, ["context", "visible", "cols"]),
|
|
3399
|
-
|
|
3404
|
+
F(" overflow chip 浮层:与第一个 chip 左对齐 "),
|
|
3400
3405
|
I(pt, {
|
|
3401
3406
|
name: "sy-pro-table-panel",
|
|
3402
3407
|
persisted: ""
|
|
3403
3408
|
}, {
|
|
3404
3409
|
default: S(() => [
|
|
3405
|
-
|
|
3410
|
+
et(te(
|
|
3406
3411
|
"div",
|
|
3407
3412
|
{
|
|
3408
3413
|
ref_key: "overflowPanelRef",
|
|
3409
3414
|
ref: K,
|
|
3410
3415
|
class: "sy-pro-table__custom-panel",
|
|
3411
|
-
style:
|
|
3416
|
+
style: _e(ie.value)
|
|
3412
3417
|
},
|
|
3413
3418
|
[
|
|
3414
3419
|
te("div", el, [
|
|
3415
3420
|
(P(!0), Z(
|
|
3416
3421
|
de,
|
|
3417
3422
|
null,
|
|
3418
|
-
|
|
3423
|
+
Ve(G.value, (V) => (P(), Q(Et, {
|
|
3419
3424
|
key: V.key,
|
|
3420
3425
|
column: V.column,
|
|
3421
3426
|
model: r(t),
|
|
3422
3427
|
"model-value": r(t)[V.key],
|
|
3423
3428
|
width: r(s).filterChipWidth,
|
|
3424
|
-
"onUpdate:modelValue": (
|
|
3429
|
+
"onUpdate:modelValue": (E) => he(V.key, E),
|
|
3425
3430
|
onSearch: r(A),
|
|
3426
|
-
onRemove: (
|
|
3431
|
+
onRemove: (E) => Se(V.key)
|
|
3427
3432
|
}, null, 8, ["column", "model", "model-value", "width", "onUpdate:modelValue", "onSearch", "onRemove"]))),
|
|
3428
3433
|
128
|
|
3429
3434
|
/* KEYED_FRAGMENT */
|
|
@@ -3474,7 +3479,7 @@ const Ba = {
|
|
|
3474
3479
|
},
|
|
3475
3480
|
emits: ["close"],
|
|
3476
3481
|
setup(n, { emit: o }) {
|
|
3477
|
-
const s = n, c = o, i =
|
|
3482
|
+
const s = n, c = o, i = O(() => {
|
|
3478
3483
|
const h = typeof s.cols == "number" ? s.cols : 1;
|
|
3479
3484
|
return { width: `${Math.max(360, h * 280 + 32)}px` };
|
|
3480
3485
|
}), l = s.context.search, t = s.context.reset;
|
|
@@ -3484,21 +3489,21 @@ const Ba = {
|
|
|
3484
3489
|
function a() {
|
|
3485
3490
|
t(), c("close");
|
|
3486
3491
|
}
|
|
3487
|
-
const
|
|
3492
|
+
const k = s.context.formRef, A = D();
|
|
3488
3493
|
function $(h) {
|
|
3489
|
-
|
|
3494
|
+
k.value = h;
|
|
3490
3495
|
}
|
|
3491
3496
|
let M = null;
|
|
3492
|
-
function
|
|
3497
|
+
function H(h) {
|
|
3493
3498
|
var p;
|
|
3494
3499
|
const g = h.target;
|
|
3495
3500
|
g && ((p = A.value) != null && p.contains(g) || s.excludeSelector && g.closest(s.excludeSelector) || g.closest(".el-popper") || g.closest(".el-overlay") || c("close"));
|
|
3496
3501
|
}
|
|
3497
|
-
return
|
|
3502
|
+
return Ie(
|
|
3498
3503
|
() => s.visible,
|
|
3499
3504
|
(h) => {
|
|
3500
|
-
M == null || M(), M = null, h &&
|
|
3501
|
-
document.addEventListener("mousedown",
|
|
3505
|
+
M == null || M(), M = null, h && Be(() => {
|
|
3506
|
+
document.addEventListener("mousedown", H, !0), M = () => document.removeEventListener("mousedown", H, !0);
|
|
3502
3507
|
});
|
|
3503
3508
|
}
|
|
3504
3509
|
), dt(() => M == null ? void 0 : M()), (h, g) => (P(), Q(pt, {
|
|
@@ -3506,13 +3511,13 @@ const Ba = {
|
|
|
3506
3511
|
persisted: ""
|
|
3507
3512
|
}, {
|
|
3508
3513
|
default: S(() => [
|
|
3509
|
-
|
|
3514
|
+
et(te(
|
|
3510
3515
|
"div",
|
|
3511
3516
|
{
|
|
3512
3517
|
ref_key: "panelRootRef",
|
|
3513
3518
|
ref: A,
|
|
3514
3519
|
class: "sy-pro-table__unify-panel",
|
|
3515
|
-
style:
|
|
3520
|
+
style: _e(i.value)
|
|
3516
3521
|
},
|
|
3517
3522
|
[
|
|
3518
3523
|
te("div", nl, [
|
|
@@ -3571,7 +3576,7 @@ const Ba = {
|
|
|
3571
3576
|
},
|
|
3572
3577
|
setup(n) {
|
|
3573
3578
|
var U;
|
|
3574
|
-
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.quickSearchColumns, t = o.context.searchParam, e = o.context.selectedList, a = o.context.selectedListIds,
|
|
3579
|
+
const o = n, s = o.context.props, c = o.context.isShowSearch, i = o.context.searchColumns, l = o.context.quickSearchColumns, t = o.context.searchParam, e = o.context.selectedList, a = o.context.selectedListIds, k = o.context.isSelected, A = o.context.search, $ = o.context.toggleSearch, M = o.context.showToolBtn, H = o.context.colSettingRef, h = O(() => !!s.showSearch && c.value && i.value.length > 0), g = D(), p = D(void 0), d = D(void 0), f = (U = Ae(He, {}).proTable) != null ? U : {};
|
|
3575
3580
|
function B() {
|
|
3576
3581
|
var me, he;
|
|
3577
3582
|
const K = g.value;
|
|
@@ -3599,13 +3604,13 @@ const Ba = {
|
|
|
3599
3604
|
p.value = void 0, d.value = B();
|
|
3600
3605
|
}
|
|
3601
3606
|
let W = null;
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
}),
|
|
3607
|
+
Fe(() => {
|
|
3608
|
+
Be(q), window.addEventListener("resize", q), g.value && (W = new ResizeObserver(q), W.observe(g.value));
|
|
3609
|
+
}), Xe(() => {
|
|
3605
3610
|
window.removeEventListener("resize", q), W == null || W.disconnect();
|
|
3606
3611
|
});
|
|
3607
3612
|
function j(K) {
|
|
3608
|
-
|
|
3613
|
+
H.value = K;
|
|
3609
3614
|
}
|
|
3610
3615
|
function G() {
|
|
3611
3616
|
c.value && $();
|
|
@@ -3621,67 +3626,72 @@ const Ba = {
|
|
|
3621
3626
|
te("div", al, [
|
|
3622
3627
|
te("div", ll, [
|
|
3623
3628
|
te("div", rl, [
|
|
3624
|
-
|
|
3629
|
+
F(" 业务操作按钮(新增/导出等),始终可见 "),
|
|
3630
|
+
z(K.$slots, "busActions"),
|
|
3631
|
+
F(" 批量操作,仅在有选中行时追加显示 "),
|
|
3632
|
+
r(k) ? z(K.$slots, "batchActions", {
|
|
3633
|
+
key: 0,
|
|
3625
3634
|
selectedList: r(e),
|
|
3626
3635
|
selectedListIds: r(a),
|
|
3627
|
-
isSelected: r(
|
|
3628
|
-
})
|
|
3636
|
+
isSelected: r(k)
|
|
3637
|
+
}) : F("v-if", !0)
|
|
3629
3638
|
]),
|
|
3630
3639
|
te("div", cl, [
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3640
|
+
F(" 快速搜索始终渲染 "),
|
|
3641
|
+
(P(!0), Z(
|
|
3642
|
+
de,
|
|
3643
|
+
null,
|
|
3644
|
+
Ve(r(l), (ne) => {
|
|
3645
|
+
var ie, X, ue, re, me;
|
|
3646
|
+
return P(), Q(cn, {
|
|
3647
|
+
key: (X = (ie = ne.search) == null ? void 0 : ie.key) != null ? X : ne.prop,
|
|
3648
|
+
modelValue: r(t)[(me = (re = (ue = ne.search) == null ? void 0 : ue.key) != null ? re : ne.prop) != null ? me : ""],
|
|
3649
|
+
"onUpdate:modelValue": (he) => {
|
|
3650
|
+
var Se, Ce, m;
|
|
3651
|
+
return r(t)[(m = (Ce = (Se = ne.search) == null ? void 0 : Se.key) != null ? Ce : ne.prop) != null ? m : ""] = he;
|
|
3652
|
+
},
|
|
3653
|
+
column: ne,
|
|
3654
|
+
model: r(t),
|
|
3655
|
+
onSearch: r(A)
|
|
3656
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "model", "onSearch"]);
|
|
3657
|
+
}),
|
|
3658
|
+
128
|
|
3659
|
+
/* KEYED_FRAGMENT */
|
|
3660
|
+
)),
|
|
3661
|
+
r(l).length > 0 ? (P(), Q(r(le), {
|
|
3662
|
+
key: 0,
|
|
3663
|
+
type: "primary",
|
|
3664
|
+
onClick: r(A)
|
|
3665
|
+
}, {
|
|
3666
|
+
default: S(() => [...se[0] || (se[0] = [
|
|
3667
|
+
fe(
|
|
3668
|
+
"查询",
|
|
3669
|
+
-1
|
|
3670
|
+
/* CACHED */
|
|
3671
|
+
)
|
|
3672
|
+
])]),
|
|
3673
|
+
_: 1
|
|
3674
|
+
/* STABLE */
|
|
3675
|
+
}, 8, ["onClick"])) : F("v-if", !0),
|
|
3676
|
+
r(s).showSearch && r(M)("search") && r(i).length > 0 ? (P(), Q(r(le), {
|
|
3677
|
+
key: 1,
|
|
3678
|
+
class: "sy-pro-table__unify-advanced-btn",
|
|
3679
|
+
type: "primary",
|
|
3680
|
+
plain: "",
|
|
3681
|
+
onClick: r($)
|
|
3682
|
+
}, {
|
|
3683
|
+
default: S(() => [...se[1] || (se[1] = [
|
|
3684
|
+
fe(
|
|
3685
|
+
" 高级筛选 ",
|
|
3686
|
+
-1
|
|
3687
|
+
/* CACHED */
|
|
3688
|
+
)
|
|
3689
|
+
])]),
|
|
3690
|
+
_: 1
|
|
3691
|
+
/* STABLE */
|
|
3692
|
+
}, 8, ["onClick"])) : F("v-if", !0),
|
|
3693
|
+
F(" 工具按钮区,用户可通过 #toolButton 追加自定义工具 "),
|
|
3694
|
+
z(K.$slots, "toolButton")
|
|
3685
3695
|
])
|
|
3686
3696
|
]),
|
|
3687
3697
|
I(gt, {
|
|
@@ -3691,26 +3701,26 @@ const Ba = {
|
|
|
3691
3701
|
"on-drag-sort": n.onDragSort
|
|
3692
3702
|
}, {
|
|
3693
3703
|
append: S(() => [
|
|
3694
|
-
|
|
3704
|
+
z(K.$slots, "append")
|
|
3695
3705
|
]),
|
|
3696
3706
|
empty: S(() => [
|
|
3697
|
-
|
|
3707
|
+
z(K.$slots, "empty")
|
|
3698
3708
|
]),
|
|
3699
3709
|
default: S(() => [
|
|
3700
|
-
|
|
3710
|
+
z(K.$slots, "default")
|
|
3701
3711
|
]),
|
|
3702
3712
|
_: 3
|
|
3703
3713
|
/* FORWARDED */
|
|
3704
3714
|
}, 8, ["context", "table-height", "table-max-height", "on-drag-sort"]),
|
|
3705
3715
|
I(yt, { context: n.context }, {
|
|
3706
3716
|
pagination: S(() => [
|
|
3707
|
-
|
|
3717
|
+
z(K.$slots, "pagination")
|
|
3708
3718
|
]),
|
|
3709
3719
|
_: 3
|
|
3710
3720
|
/* FORWARDED */
|
|
3711
3721
|
}, 8, ["context"])
|
|
3712
3722
|
]),
|
|
3713
|
-
|
|
3723
|
+
F(" 面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),
|
|
3714
3724
|
I(sl, {
|
|
3715
3725
|
context: n.context,
|
|
3716
3726
|
visible: h.value,
|
|
@@ -3762,7 +3772,7 @@ const Ba = {
|
|
|
3762
3772
|
},
|
|
3763
3773
|
emits: ["search", "reset", "dragSort"],
|
|
3764
3774
|
setup(n, { expose: o, emit: s }) {
|
|
3765
|
-
const c = n, i = s, l =
|
|
3775
|
+
const c = n, i = s, l = x(), t = $a(c, i, l);
|
|
3766
3776
|
function e(a) {
|
|
3767
3777
|
i("dragSort", a);
|
|
3768
3778
|
}
|
|
@@ -3785,135 +3795,156 @@ const Ba = {
|
|
|
3785
3795
|
clearRadio: t.clearRadio,
|
|
3786
3796
|
handleSizeChange: t.handleSizeChange,
|
|
3787
3797
|
handleCurrentChange: t.handleCurrentChange
|
|
3788
|
-
}), (a,
|
|
3798
|
+
}), (a, k) => r(t).props.type === "classic" ? (P(), Q(Ea, {
|
|
3789
3799
|
key: 0,
|
|
3790
3800
|
context: r(t),
|
|
3791
3801
|
"on-drag-sort": e
|
|
3792
|
-
},
|
|
3793
|
-
|
|
3794
|
-
|
|
3802
|
+
}, Ye({
|
|
3803
|
+
batchActions: S((A) => [
|
|
3804
|
+
r(l).batchActions ? z(a.$slots, "batchActions", we(C({ key: 0 }, A))) : z(a.$slots, "tableHeader", we(C({ key: 1 }, A)))
|
|
3795
3805
|
]),
|
|
3796
3806
|
default: S(() => [
|
|
3797
|
-
|
|
3807
|
+
z(a.$slots, "default")
|
|
3798
3808
|
]),
|
|
3799
3809
|
_: 2
|
|
3800
3810
|
/* DYNAMIC */
|
|
3801
3811
|
}, [
|
|
3812
|
+
r(l).busActions ? {
|
|
3813
|
+
name: "busActions",
|
|
3814
|
+
fn: S(() => [
|
|
3815
|
+
z(a.$slots, "busActions")
|
|
3816
|
+
]),
|
|
3817
|
+
key: "0"
|
|
3818
|
+
} : void 0,
|
|
3802
3819
|
r(l).toolButton ? {
|
|
3803
3820
|
name: "toolButton",
|
|
3804
3821
|
fn: S(() => [
|
|
3805
|
-
|
|
3822
|
+
z(a.$slots, "toolButton")
|
|
3806
3823
|
]),
|
|
3807
|
-
key: "
|
|
3824
|
+
key: "1"
|
|
3808
3825
|
} : void 0,
|
|
3809
3826
|
r(l).append ? {
|
|
3810
3827
|
name: "append",
|
|
3811
3828
|
fn: S(() => [
|
|
3812
|
-
|
|
3829
|
+
z(a.$slots, "append")
|
|
3813
3830
|
]),
|
|
3814
|
-
key: "
|
|
3831
|
+
key: "2"
|
|
3815
3832
|
} : void 0,
|
|
3816
3833
|
r(l).empty ? {
|
|
3817
3834
|
name: "empty",
|
|
3818
3835
|
fn: S(() => [
|
|
3819
|
-
|
|
3836
|
+
z(a.$slots, "empty")
|
|
3820
3837
|
]),
|
|
3821
|
-
key: "
|
|
3838
|
+
key: "3"
|
|
3822
3839
|
} : void 0,
|
|
3823
3840
|
r(l).pagination ? {
|
|
3824
3841
|
name: "pagination",
|
|
3825
3842
|
fn: S(() => [
|
|
3826
|
-
|
|
3843
|
+
z(a.$slots, "pagination")
|
|
3827
3844
|
]),
|
|
3828
|
-
key: "
|
|
3845
|
+
key: "4"
|
|
3829
3846
|
} : void 0
|
|
3830
|
-
]), 1032, ["context"])) : r(t).type === "unify" ? (P(), Q(il, {
|
|
3847
|
+
]), 1032, ["context"])) : r(t).props.type === "unify" ? (P(), Q(il, {
|
|
3831
3848
|
key: 1,
|
|
3832
3849
|
context: r(t),
|
|
3833
3850
|
"on-drag-sort": e
|
|
3834
|
-
},
|
|
3835
|
-
|
|
3836
|
-
|
|
3851
|
+
}, Ye({
|
|
3852
|
+
batchActions: S((A) => [
|
|
3853
|
+
r(l).batchActions ? z(a.$slots, "batchActions", we(C({ key: 0 }, A))) : z(a.$slots, "tableHeader", we(C({ key: 1 }, A)))
|
|
3837
3854
|
]),
|
|
3838
3855
|
default: S(() => [
|
|
3839
|
-
|
|
3856
|
+
z(a.$slots, "default")
|
|
3840
3857
|
]),
|
|
3841
3858
|
_: 2
|
|
3842
3859
|
/* DYNAMIC */
|
|
3843
3860
|
}, [
|
|
3861
|
+
r(l).busActions ? {
|
|
3862
|
+
name: "busActions",
|
|
3863
|
+
fn: S(() => [
|
|
3864
|
+
z(a.$slots, "busActions")
|
|
3865
|
+
]),
|
|
3866
|
+
key: "0"
|
|
3867
|
+
} : void 0,
|
|
3844
3868
|
r(l).toolButton ? {
|
|
3845
3869
|
name: "toolButton",
|
|
3846
3870
|
fn: S(() => [
|
|
3847
|
-
|
|
3871
|
+
z(a.$slots, "toolButton")
|
|
3848
3872
|
]),
|
|
3849
|
-
key: "
|
|
3873
|
+
key: "1"
|
|
3850
3874
|
} : void 0,
|
|
3851
3875
|
r(l).append ? {
|
|
3852
3876
|
name: "append",
|
|
3853
3877
|
fn: S(() => [
|
|
3854
|
-
|
|
3878
|
+
z(a.$slots, "append")
|
|
3855
3879
|
]),
|
|
3856
|
-
key: "
|
|
3880
|
+
key: "2"
|
|
3857
3881
|
} : void 0,
|
|
3858
3882
|
r(l).empty ? {
|
|
3859
3883
|
name: "empty",
|
|
3860
3884
|
fn: S(() => [
|
|
3861
|
-
|
|
3885
|
+
z(a.$slots, "empty")
|
|
3862
3886
|
]),
|
|
3863
|
-
key: "
|
|
3887
|
+
key: "3"
|
|
3864
3888
|
} : void 0,
|
|
3865
3889
|
r(l).pagination ? {
|
|
3866
3890
|
name: "pagination",
|
|
3867
3891
|
fn: S(() => [
|
|
3868
|
-
|
|
3892
|
+
z(a.$slots, "pagination")
|
|
3869
3893
|
]),
|
|
3870
|
-
key: "
|
|
3894
|
+
key: "4"
|
|
3871
3895
|
} : void 0
|
|
3872
3896
|
]), 1032, ["context"])) : (P(), Q(tl, {
|
|
3873
3897
|
key: 2,
|
|
3874
3898
|
context: r(t),
|
|
3875
3899
|
"on-drag-sort": e
|
|
3876
|
-
},
|
|
3877
|
-
|
|
3878
|
-
|
|
3900
|
+
}, Ye({
|
|
3901
|
+
batchActions: S((A) => [
|
|
3902
|
+
r(l).batchActions ? z(a.$slots, "batchActions", we(C({ key: 0 }, A))) : z(a.$slots, "tableHeader", we(C({ key: 1 }, A)))
|
|
3879
3903
|
]),
|
|
3880
3904
|
default: S(() => [
|
|
3881
|
-
|
|
3905
|
+
z(a.$slots, "default")
|
|
3882
3906
|
]),
|
|
3883
3907
|
_: 2
|
|
3884
3908
|
/* DYNAMIC */
|
|
3885
3909
|
}, [
|
|
3910
|
+
r(l).busActions ? {
|
|
3911
|
+
name: "busActions",
|
|
3912
|
+
fn: S(() => [
|
|
3913
|
+
z(a.$slots, "busActions")
|
|
3914
|
+
]),
|
|
3915
|
+
key: "0"
|
|
3916
|
+
} : void 0,
|
|
3886
3917
|
r(l).toolButton ? {
|
|
3887
3918
|
name: "toolButton",
|
|
3888
3919
|
fn: S(() => [
|
|
3889
|
-
|
|
3920
|
+
z(a.$slots, "toolButton")
|
|
3890
3921
|
]),
|
|
3891
|
-
key: "
|
|
3922
|
+
key: "1"
|
|
3892
3923
|
} : void 0,
|
|
3893
3924
|
r(l).append ? {
|
|
3894
3925
|
name: "append",
|
|
3895
3926
|
fn: S(() => [
|
|
3896
|
-
|
|
3927
|
+
z(a.$slots, "append")
|
|
3897
3928
|
]),
|
|
3898
|
-
key: "
|
|
3929
|
+
key: "2"
|
|
3899
3930
|
} : void 0,
|
|
3900
3931
|
r(l).empty ? {
|
|
3901
3932
|
name: "empty",
|
|
3902
3933
|
fn: S(() => [
|
|
3903
|
-
|
|
3934
|
+
z(a.$slots, "empty")
|
|
3904
3935
|
]),
|
|
3905
|
-
key: "
|
|
3936
|
+
key: "3"
|
|
3906
3937
|
} : void 0,
|
|
3907
3938
|
r(l).pagination ? {
|
|
3908
3939
|
name: "pagination",
|
|
3909
3940
|
fn: S(() => [
|
|
3910
|
-
|
|
3941
|
+
z(a.$slots, "pagination")
|
|
3911
3942
|
]),
|
|
3912
|
-
key: "
|
|
3943
|
+
key: "4"
|
|
3913
3944
|
} : void 0
|
|
3914
3945
|
]), 1032, ["context"]));
|
|
3915
3946
|
}
|
|
3916
|
-
}), pr =
|
|
3947
|
+
}), pr = w(ul);
|
|
3917
3948
|
export {
|
|
3918
3949
|
hr as SY_UI_CONFIG_KEY,
|
|
3919
3950
|
gl as SyAlert,
|
|
@@ -3922,14 +3953,14 @@ export {
|
|
|
3922
3953
|
Sl as SyBacktop,
|
|
3923
3954
|
le as SyButton,
|
|
3924
3955
|
Cl as SyCard,
|
|
3925
|
-
|
|
3956
|
+
Oo as SyCascader,
|
|
3926
3957
|
Eo as SyCheckbox,
|
|
3927
|
-
|
|
3958
|
+
kl as SyCheckboxButton,
|
|
3928
3959
|
qo as SyCheckboxGroup,
|
|
3929
3960
|
El as SyCol,
|
|
3930
3961
|
wl as SyCollapse,
|
|
3931
|
-
|
|
3932
|
-
|
|
3962
|
+
xl as SyCollapseItem,
|
|
3963
|
+
Al as SyColorPicker,
|
|
3933
3964
|
Bl as SyConfigProvider,
|
|
3934
3965
|
_l as SyContainer,
|
|
3935
3966
|
os as SyDatePicker,
|
|
@@ -3940,15 +3971,15 @@ export {
|
|
|
3940
3971
|
Fl as SyDivider,
|
|
3941
3972
|
us as SyDrawer,
|
|
3942
3973
|
Dl as SyDropdown,
|
|
3943
|
-
|
|
3944
|
-
|
|
3974
|
+
Ol as SyDropdownItem,
|
|
3975
|
+
zl as SyDropdownMenu,
|
|
3945
3976
|
hs as SyEmpty,
|
|
3946
3977
|
$l as SyFooter,
|
|
3947
3978
|
bs as SyForm,
|
|
3948
3979
|
gs as SyFormItem,
|
|
3949
3980
|
Rl as SyHeader,
|
|
3950
3981
|
Ne as SyIcon,
|
|
3951
|
-
|
|
3982
|
+
Nl as SyImage,
|
|
3952
3983
|
sn as SyInput,
|
|
3953
3984
|
ws as SyInputNumber,
|
|
3954
3985
|
ql as SyLink,
|
|
@@ -3958,11 +3989,11 @@ export {
|
|
|
3958
3989
|
Kl as SyMenu,
|
|
3959
3990
|
Wl as SyMenuItem,
|
|
3960
3991
|
Gl as SyMenuItemGroup,
|
|
3961
|
-
|
|
3992
|
+
qe as SyMessage,
|
|
3962
3993
|
Is as SyMessageBox,
|
|
3963
3994
|
Fs as SyNotification,
|
|
3964
3995
|
Zs as SyOption,
|
|
3965
|
-
|
|
3996
|
+
zs as SyPagination,
|
|
3966
3997
|
Ql as SyPopconfirm,
|
|
3967
3998
|
Yl as SyPopover,
|
|
3968
3999
|
Ra as SyProForm,
|
|
@@ -3971,7 +4002,7 @@ export {
|
|
|
3971
4002
|
an as SyRadio,
|
|
3972
4003
|
Ws as SyRadioButton,
|
|
3973
4004
|
Ks as SyRadioGroup,
|
|
3974
|
-
|
|
4005
|
+
Hl as SyRow,
|
|
3975
4006
|
Zl as SyScrollbar,
|
|
3976
4007
|
Js as SySelect,
|
|
3977
4008
|
Xl as SySelectV2,
|
|
@@ -3985,13 +4016,13 @@ export {
|
|
|
3985
4016
|
ut as SySwitch,
|
|
3986
4017
|
rr as SyTabPane,
|
|
3987
4018
|
ln as SyTable,
|
|
3988
|
-
|
|
4019
|
+
xe as SyTableColumn,
|
|
3989
4020
|
lr as SyTabs,
|
|
3990
4021
|
rt as SyTag,
|
|
3991
4022
|
cr as SyText,
|
|
3992
4023
|
ha as SyTimePicker,
|
|
3993
4024
|
ya as SyTimeSelect,
|
|
3994
|
-
|
|
4025
|
+
$e as SyTooltip,
|
|
3995
4026
|
ir as SyTree,
|
|
3996
4027
|
ur as SyTreeSelect,
|
|
3997
4028
|
dr as SyUpload
|