@vue-start/pro 0.5.45 → 0.5.46
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/CHANGELOG.md +5 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +154 -150
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -314,7 +314,7 @@ const lr = () => ({
|
|
|
314
314
|
readonly: a,
|
|
315
315
|
elementMap: u,
|
|
316
316
|
formElementMap: l
|
|
317
|
-
} = on(), c = nn(), d = en(e.name), y = c != null && c.pathList ? [...c.pathList, ...d] : d, [g, m] = ut(),
|
|
317
|
+
} = on(), c = nn(), d = en(e.name), y = c != null && c.pathList ? [...c.pathList, ...d] : d, [g, m] = ut(), S = () => {
|
|
318
318
|
var K;
|
|
319
319
|
if (((K = e.onPreAdd) == null ? void 0 : K.call(e)) === !0)
|
|
320
320
|
return;
|
|
@@ -384,7 +384,7 @@ const lr = () => ({
|
|
|
384
384
|
pathList: x
|
|
385
385
|
}, {
|
|
386
386
|
default: () => {
|
|
387
|
-
var B, q, U, G, ee,
|
|
387
|
+
var B, q, U, G, ee, p;
|
|
388
388
|
return [i("div", {
|
|
389
389
|
class: "pro-form-list-item"
|
|
390
390
|
}, [(B = t.start) == null ? void 0 : B.call(t, {
|
|
@@ -393,16 +393,16 @@ const lr = () => ({
|
|
|
393
393
|
index: w
|
|
394
394
|
}), I(x), (q = t.default) == null ? void 0 : q.call(t), !a.value && i(le, null, [i("div", {
|
|
395
395
|
class: "pro-form-list-item-add",
|
|
396
|
-
onClick:
|
|
396
|
+
onClick: S
|
|
397
397
|
}, [((U = t.itemAdd) == null ? void 0 : U.call(t)) || ((G = e.renderItemAdd) == null ? void 0 : G.call(e))]), i("div", {
|
|
398
398
|
class: "pro-form-list-item-minus",
|
|
399
399
|
onClick: () => P(w, K)
|
|
400
|
-
}, [((ee = t.itemMinus) == null ? void 0 : ee.call(t)) || ((
|
|
400
|
+
}, [((ee = t.itemMinus) == null ? void 0 : ee.call(t)) || ((p = e.renderItemMinus) == null ? void 0 : p.call(e))])])])];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}), !a.value && i("div", {
|
|
404
404
|
class: "pro-form-list-add",
|
|
405
|
-
onClick:
|
|
405
|
+
onClick: S
|
|
406
406
|
}, [((f = t.add) == null ? void 0 : f.call(t)) || ((T = e.renderAdd) == null ? void 0 : T.call(e))])];
|
|
407
407
|
}
|
|
408
408
|
}) : null;
|
|
@@ -480,7 +480,7 @@ const Et = () => ({
|
|
|
480
480
|
const {
|
|
481
481
|
elementMap: a,
|
|
482
482
|
formElementMap: u
|
|
483
|
-
} = oe(), l = e.elementMap || a, c = e.formElementMap || u, d = e.model || be({}), y = Ye(d, e.showStateRules, e.showState), g = Ye(d, e.readonlyStateRules, e.readonlyState), m = Ye(d, e.disableStateRules, e.disableState),
|
|
483
|
+
} = oe(), l = e.elementMap || a, c = e.formElementMap || u, d = e.model || be({}), y = Ye(d, e.showStateRules, e.showState), g = Ye(d, e.readonlyStateRules, e.readonlyState), m = Ye(d, e.disableStateRules, e.disableState), S = N(() => e.readonly), P = N(() => {
|
|
484
484
|
const M = We(e.columns, e.columnState, e.columnState2);
|
|
485
485
|
return e.convertColumn ? Bt(M, e.convertColumn) : M;
|
|
486
486
|
}), v = W(!1), I = W(0), A = (...M) => {
|
|
@@ -504,7 +504,7 @@ const Et = () => ({
|
|
|
504
504
|
disableState: m,
|
|
505
505
|
elementMap: l,
|
|
506
506
|
formElementMap: c,
|
|
507
|
-
readonly:
|
|
507
|
+
readonly: S,
|
|
508
508
|
columns: P,
|
|
509
509
|
formRef: x,
|
|
510
510
|
userOpe: v,
|
|
@@ -547,7 +547,7 @@ const Et = () => ({
|
|
|
547
547
|
[ue.RESET]: q,
|
|
548
548
|
[ue.SUBMIT]: U,
|
|
549
549
|
[ue.CONTINUE]: G
|
|
550
|
-
},
|
|
550
|
+
}, p = N(() => {
|
|
551
551
|
const M = e.operate, O = (M == null ? void 0 : M.items) || B;
|
|
552
552
|
return F(O, (H) => !H.onClick && !h(M == null ? void 0 : M.itemState, [H.value, "onClick"]) ? {
|
|
553
553
|
...H,
|
|
@@ -595,7 +595,7 @@ const Et = () => ({
|
|
|
595
595
|
}, null) : E.value]), O, e.operate && !se && i(dn, $({
|
|
596
596
|
class: `${e.clsName}-operate`
|
|
597
597
|
}, R(e.operate, "items", "itemState", "onReset", "onSubmit", "onContinue"), {
|
|
598
|
-
items:
|
|
598
|
+
items: p.value,
|
|
599
599
|
itemState: s.value
|
|
600
600
|
}), null), H]
|
|
601
601
|
});
|
|
@@ -666,12 +666,12 @@ const xt = () => ({
|
|
|
666
666
|
re(() => {
|
|
667
667
|
e.initEmit && g();
|
|
668
668
|
}, []);
|
|
669
|
-
const
|
|
669
|
+
const S = (v, I, A) => Se(A, (f) => h(v, f) !== h(I, f));
|
|
670
670
|
lt((v, I) => {
|
|
671
671
|
if (e.searchMode !== ze.AUTO)
|
|
672
672
|
return;
|
|
673
673
|
const A = Q(e.debounceKeys) > 0 ? e.debounceKeys : l;
|
|
674
|
-
if (Q(A) > 0 &&
|
|
674
|
+
if (Q(A) > 0 && S(v, I, A)) {
|
|
675
675
|
m();
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
@@ -754,12 +754,12 @@ const xt = () => ({
|
|
|
754
754
|
readonlyState: y,
|
|
755
755
|
disableState: g,
|
|
756
756
|
readonly: m,
|
|
757
|
-
userOpe:
|
|
757
|
+
userOpe: S
|
|
758
758
|
} = on(), P = nn(), v = N(() => Ke(a.readonly) ? a.readonly : Ke(y[a.name]) ? y[a.name] : m.value), I = () => `${h(l == null ? void 0 : l.rulePrefixMap, o) || "\u8BF7\u8F93\u5165"}${a.label || ""}`, A = N(() => l != null && l.rulePrefixMap ? a.required === !0 && !a.rules ? [{
|
|
759
759
|
required: !0,
|
|
760
760
|
message: I()
|
|
761
761
|
}] : a.rules ? F(a.rules, (q) => (q.required && !q.message && (q.message = I()), q)) : a.rules : a.rules), f = en(a.name), T = P != null && P.pathList ? [...P.pathList, ...f] : f, K = (q) => {
|
|
762
|
-
|
|
762
|
+
S.value = !0, fe(d, T, q);
|
|
763
763
|
}, w = Y(It()), x = () => {
|
|
764
764
|
const q = h(d, T);
|
|
765
765
|
if (u.renderShow)
|
|
@@ -899,14 +899,14 @@ const Sr = () => ({
|
|
|
899
899
|
return () => i("div", {
|
|
900
900
|
class: e.clsName
|
|
901
901
|
}, [F(o.value, (c) => {
|
|
902
|
-
const d = _(c.disabled) ? c.disabled() : c.disabled, y = _(c.loading) ? c.loading() : c.loading, g = _(c.label) ? c.label() : c.label, m = _(c.extraProps) ? c.extraProps() : c.extraProps,
|
|
902
|
+
const d = _(c.disabled) ? c.disabled() : c.disabled, y = _(c.loading) ? c.loading() : c.loading, g = _(c.label) ? c.label() : c.label, m = _(c.extraProps) ? c.extraProps() : c.extraProps, S = {
|
|
903
903
|
...R(c, "show", "disabled", "element"),
|
|
904
904
|
disabled: d
|
|
905
905
|
};
|
|
906
906
|
if (c.element && _(c.element))
|
|
907
|
-
return c.element(
|
|
907
|
+
return c.element(S);
|
|
908
908
|
if (t[c.value])
|
|
909
|
-
return t[c.value](
|
|
909
|
+
return t[c.value](S);
|
|
910
910
|
if (u) {
|
|
911
911
|
const P = i(u, $({
|
|
912
912
|
disabled: d,
|
|
@@ -970,11 +970,11 @@ const Sr = () => ({
|
|
|
970
970
|
}, m = N(() => ae(u.value, (f, T) => ({
|
|
971
971
|
...f,
|
|
972
972
|
[T]: !0
|
|
973
|
-
}), {})),
|
|
973
|
+
}), {})), S = (f) => sr(f, e.signName);
|
|
974
974
|
re(() => {
|
|
975
975
|
u.value = F(X(a.value, (f) => {
|
|
976
976
|
var T;
|
|
977
|
-
return e.useSelectedStatus && rt(d, f.dataIndex) ? d[f.dataIndex] : ((T =
|
|
977
|
+
return e.useSelectedStatus && rt(d, f.dataIndex) ? d[f.dataIndex] : ((T = S(f)) == null ? void 0 : T.initShow) !== !1;
|
|
978
978
|
}), (f) => f.dataIndex);
|
|
979
979
|
}, a), lt(() => {
|
|
980
980
|
var f;
|
|
@@ -983,10 +983,10 @@ const Sr = () => ({
|
|
|
983
983
|
const P = N(() => {
|
|
984
984
|
const f = Kn(a.value, (K) => {
|
|
985
985
|
var w;
|
|
986
|
-
return (w =
|
|
986
|
+
return (w = S(K)) != null && w.disabled ? !0 : h(m.value, K.dataIndex);
|
|
987
987
|
}), T = Se(a.value, (K) => {
|
|
988
988
|
var w;
|
|
989
|
-
return (w =
|
|
989
|
+
return (w = S(K)) != null && w.disabled ? !0 : h(m.value, K.dataIndex);
|
|
990
990
|
});
|
|
991
991
|
return {
|
|
992
992
|
checked: f,
|
|
@@ -996,12 +996,12 @@ const Sr = () => ({
|
|
|
996
996
|
var K;
|
|
997
997
|
(Oe(f) ? (K = f.target) == null ? void 0 : K.checked : f) ? u.value = F(a.value, (w) => w.dataIndex) : u.value = F(X(a.value, (w) => {
|
|
998
998
|
var x;
|
|
999
|
-
return (x =
|
|
999
|
+
return (x = S(w)) != null && x.disabled ? !0 : (y(w.dataIndex), !1);
|
|
1000
1000
|
}), (w) => w.dataIndex);
|
|
1001
1001
|
}, I = () => {
|
|
1002
1002
|
u.value = F(X(a.value, (f) => {
|
|
1003
1003
|
var T;
|
|
1004
|
-
return ((T =
|
|
1004
|
+
return ((T = S(f)) == null ? void 0 : T.initShow) === !1 ? (y(f.dataIndex), !1) : !0;
|
|
1005
1005
|
}), (f) => f.dataIndex);
|
|
1006
1006
|
}, A = (f, T) => {
|
|
1007
1007
|
var w;
|
|
@@ -1031,7 +1031,7 @@ const Sr = () => ({
|
|
|
1031
1031
|
key: l.value,
|
|
1032
1032
|
class: `${e.clsName}-list`
|
|
1033
1033
|
}, [F(a.value, (f) => {
|
|
1034
|
-
const T =
|
|
1034
|
+
const T = S(f), K = h(m.value, f.dataIndex, !1);
|
|
1035
1035
|
return i(n, {
|
|
1036
1036
|
checked: K,
|
|
1037
1037
|
disabled: T == null ? void 0 : T.disabled,
|
|
@@ -1108,30 +1108,30 @@ const Sr = () => ({
|
|
|
1108
1108
|
...e.column,
|
|
1109
1109
|
...Ke(e.serialNumber) ? void 0 : e.serialNumber,
|
|
1110
1110
|
customRender: ({
|
|
1111
|
-
index:
|
|
1111
|
+
index: p
|
|
1112
1112
|
}) => {
|
|
1113
1113
|
var s, b;
|
|
1114
|
-
return ((s = e.paginationState) == null ? void 0 : s.page) && ((b = e.paginationState) == null ? void 0 : b.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) +
|
|
1114
|
+
return ((s = e.paginationState) == null ? void 0 : s.page) && ((b = e.paginationState) == null ? void 0 : b.pageSize) ? e.paginationState.pageSize * (e.paginationState.page - 1) + p + 1 : p + 1;
|
|
1115
1115
|
}
|
|
1116
|
-
}), c = (
|
|
1116
|
+
}), c = (p, s) => {
|
|
1117
1117
|
var b;
|
|
1118
1118
|
if (e.operateItemClickMap && e.operateItemClickMap[s.value]) {
|
|
1119
|
-
e.operateItemClickMap[s.value](
|
|
1119
|
+
e.operateItemClickMap[s.value](p, s);
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
|
-
(b = s.onClick) == null || b.call(s,
|
|
1122
|
+
(b = s.onClick) == null || b.call(s, p);
|
|
1123
1123
|
}, d = me(t, "operate"), y = () => {
|
|
1124
|
-
const
|
|
1124
|
+
const p = e.operate, s = F(p.items, (b) => ({
|
|
1125
1125
|
...h(e.operateItemState, b.value),
|
|
1126
1126
|
...b,
|
|
1127
|
-
...h(
|
|
1127
|
+
...h(p.itemState, b.value)
|
|
1128
1128
|
}));
|
|
1129
1129
|
return {
|
|
1130
1130
|
...e.column,
|
|
1131
1131
|
title: "\u64CD\u4F5C",
|
|
1132
1132
|
dataIndex: "operate",
|
|
1133
1133
|
fixed: "right",
|
|
1134
|
-
...
|
|
1134
|
+
...p.column,
|
|
1135
1135
|
customRender: ({
|
|
1136
1136
|
record: b
|
|
1137
1137
|
}) => {
|
|
@@ -1155,22 +1155,22 @@ const Sr = () => ({
|
|
|
1155
1155
|
return i(dn, {
|
|
1156
1156
|
class: `${e.clsName}-operate`,
|
|
1157
1157
|
items: E,
|
|
1158
|
-
elementKey:
|
|
1158
|
+
elementKey: p.elementKey || V.TableOperateKey
|
|
1159
1159
|
}, L);
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
1162
|
}, g = W([]), m = N(() => {
|
|
1163
|
-
var
|
|
1164
|
-
return !!((
|
|
1165
|
-
}),
|
|
1163
|
+
var p;
|
|
1164
|
+
return !!((p = e.toolbar) != null && p.columnSetting);
|
|
1165
|
+
}), S = Tn(e, "columns"), P = N(() => {
|
|
1166
1166
|
if (!m.value)
|
|
1167
1167
|
return e.columns;
|
|
1168
|
-
const
|
|
1168
|
+
const p = ae(g.value, (s, b) => ({
|
|
1169
1169
|
...s,
|
|
1170
1170
|
[b]: !0
|
|
1171
1171
|
}), {});
|
|
1172
|
-
return X(e.columns, (s) => h(
|
|
1173
|
-
}), v = (
|
|
1172
|
+
return X(e.columns, (s) => h(p, s.dataIndex));
|
|
1173
|
+
}), v = (p) => F(p, (s) => {
|
|
1174
1174
|
const b = {
|
|
1175
1175
|
...e.column,
|
|
1176
1176
|
...s
|
|
@@ -1183,41 +1183,41 @@ const Sr = () => ({
|
|
|
1183
1183
|
render: "tableRender"
|
|
1184
1184
|
}) || L), E);
|
|
1185
1185
|
}), I = N(() => {
|
|
1186
|
-
const
|
|
1186
|
+
const p = We(P.value, e.columnState, e.columnState2), s = v(p);
|
|
1187
1187
|
return e.serialNumber && s.unshift(l()), e.operate && e.operate.items && Se(e.operate.items, (b) => b.show) && s.push(y()), s;
|
|
1188
1188
|
}), A = N(() => {
|
|
1189
1189
|
var s, b;
|
|
1190
|
-
const
|
|
1191
|
-
return
|
|
1190
|
+
const p = e.dataSource;
|
|
1191
|
+
return p && (((s = e.mergeOpts) == null ? void 0 : s.rowNames) || ((b = e.mergeOpts) == null ? void 0 : b.colNames)) && Vn(p, e.mergeOpts), p;
|
|
1192
1192
|
}), f = W();
|
|
1193
1193
|
Tr({
|
|
1194
1194
|
columns: I,
|
|
1195
|
-
originColumns:
|
|
1195
|
+
originColumns: S,
|
|
1196
1196
|
selectIdsRef: g,
|
|
1197
1197
|
tableRef: f,
|
|
1198
1198
|
toolbar: e.toolbar,
|
|
1199
1199
|
...e.provideExtra
|
|
1200
1200
|
}), r(Me(e.tableMethods || [], f));
|
|
1201
1201
|
const T = W(), K = W(0), w = W(), x = W(!1), B = W(), q = W(!1);
|
|
1202
|
-
je(T, (
|
|
1203
|
-
const s = h(
|
|
1202
|
+
je(T, (p) => {
|
|
1203
|
+
const s = h(p, [0, "contentRect"]), b = window.getComputedStyle(T.value);
|
|
1204
1204
|
if (s.height && b) {
|
|
1205
1205
|
const E = b.getPropertyValue("margin-bottom"), L = parseInt(E.replace("px", ""));
|
|
1206
1206
|
K.value = s.height + L;
|
|
1207
1207
|
}
|
|
1208
1208
|
}), je(w, () => {
|
|
1209
|
-
x.value = !!w.value.
|
|
1210
|
-
}), je(B, () => {
|
|
1211
|
-
q.value = !!B.value.
|
|
1209
|
+
x.value = !!w.value.innerHTML;
|
|
1210
|
+
}), je(B, (p) => {
|
|
1211
|
+
q.value = !!B.value.innerHTML;
|
|
1212
1212
|
});
|
|
1213
1213
|
const U = N(() => q.value || x.value ? `${e.clsName}-toolbar-valid` : ""), G = Y(wt()), ee = me(t, "columnSetting");
|
|
1214
1214
|
return () => {
|
|
1215
|
-
var
|
|
1215
|
+
var b, E;
|
|
1216
1216
|
if (!u)
|
|
1217
1217
|
return null;
|
|
1218
|
-
const
|
|
1219
|
-
return i("div", $({
|
|
1220
|
-
class:
|
|
1218
|
+
const p = m.value ? i(Cr, (b = e.toolbar) == null ? void 0 : b.columnSetting, ee) : null, s = [e.clsName];
|
|
1219
|
+
return (x.value || q.value) && s.push("has-header"), i("div", $({
|
|
1220
|
+
class: s,
|
|
1221
1221
|
style: `--pro-table-toolbar-hei: ${K.value}px`
|
|
1222
1222
|
}, Z(o, "class")), [i("div", {
|
|
1223
1223
|
ref: T,
|
|
@@ -1225,10 +1225,10 @@ const Sr = () => ({
|
|
|
1225
1225
|
}, [i("div", {
|
|
1226
1226
|
ref: w,
|
|
1227
1227
|
class: `${e.clsName}-toolbar-start`
|
|
1228
|
-
}, [(
|
|
1228
|
+
}, [(E = t.toolbar) == null ? void 0 : E.call(t)]), i("div", {
|
|
1229
1229
|
ref: B,
|
|
1230
1230
|
class: `${e.clsName}-toolbar-extra`
|
|
1231
|
-
}, [t.toolbarExtra ? t.toolbarExtra([
|
|
1231
|
+
}, [t.toolbarExtra ? t.toolbarExtra([p]) : i(le, null, [p])])]), i(u, $({
|
|
1232
1232
|
ref: f
|
|
1233
1233
|
}, R(o, "class"), R(e, G), {
|
|
1234
1234
|
mergeOpts: e.mergeOpts,
|
|
@@ -1332,8 +1332,8 @@ const Sr = () => ({
|
|
|
1332
1332
|
}, null)]
|
|
1333
1333
|
}) : null, c = Y(Qe.props).filter((d) => d !== "showBack");
|
|
1334
1334
|
return () => {
|
|
1335
|
-
var
|
|
1336
|
-
const d = e.title || t.title || e.subTitle || t.subTitle || t.extra, y = (
|
|
1335
|
+
var S;
|
|
1336
|
+
const d = e.title || t.title || e.subTitle || t.subTitle || t.extra, y = (S = t.footer) == null ? void 0 : S.call(t), g = !e.loading && tt(y), m = ["pro-page"];
|
|
1337
1337
|
return e.sub && m.push("pro-page-sub"), e.fillMode && m.push("pro-page-fill"), d && m.push("has-header"), g && m.push("has-footer"), i(u, {
|
|
1338
1338
|
class: m
|
|
1339
1339
|
}, {
|
|
@@ -1408,7 +1408,7 @@ const Sr = () => ({
|
|
|
1408
1408
|
c = v, l.page = I || 1, d();
|
|
1409
1409
|
}, g = (v, I) => {
|
|
1410
1410
|
l.page = v, l.pageSize = I, d();
|
|
1411
|
-
}, m = me(t, "search"),
|
|
1411
|
+
}, m = me(t, "search"), S = me(t, "table"), P = me(t, "pagination");
|
|
1412
1412
|
return () => {
|
|
1413
1413
|
var I, A, f, T, K, w, x, B;
|
|
1414
1414
|
const v = t.search ? t.search({
|
|
@@ -1431,8 +1431,8 @@ const Sr = () => ({
|
|
|
1431
1431
|
},
|
|
1432
1432
|
pagination: !1
|
|
1433
1433
|
}, e.tableProps), {
|
|
1434
|
-
...
|
|
1435
|
-
toolbar: e.searchInTable ? () =>
|
|
1434
|
+
...S,
|
|
1435
|
+
toolbar: e.searchInTable ? () => S.toolbar ? S.toolbar(v) : v : S.toolbar
|
|
1436
1436
|
})]), ((K = t.divide2) == null ? void 0 : K.call(t)) || ((w = e.divide2) == null ? void 0 : w.call(e)), t.pagination ? t.pagination({
|
|
1437
1437
|
executePageChange: g,
|
|
1438
1438
|
pageState: l
|
|
@@ -1470,13 +1470,13 @@ const Sr = () => ({
|
|
|
1470
1470
|
default: () => {
|
|
1471
1471
|
var y, g;
|
|
1472
1472
|
return [(y = t.start) == null ? void 0 : y.call(t), F(l.value, (m) => {
|
|
1473
|
-
const
|
|
1473
|
+
const S = m.dataIndex, P = h(e.model, S);
|
|
1474
1474
|
return i(u, $({
|
|
1475
1475
|
class: `${e.clsName}-item`
|
|
1476
1476
|
}, h(m.extra, "desc")), {
|
|
1477
1477
|
default: () => {
|
|
1478
1478
|
var v, I;
|
|
1479
|
-
return [((v = t[
|
|
1479
|
+
return [((v = t[S]) == null ? void 0 : v.call(t, P, m)) || ((I = t.value) == null ? void 0 : I.call(t, P, m)) || yt(o, m, {
|
|
1480
1480
|
value: P
|
|
1481
1481
|
}, {
|
|
1482
1482
|
render: "descRender"
|
|
@@ -1828,7 +1828,7 @@ const Sr = () => ({
|
|
|
1828
1828
|
}, m = (s) => {
|
|
1829
1829
|
var b;
|
|
1830
1830
|
s.value !== ((b = d.value) == null ? void 0 : b.value) && y(s), n.value = X(n.value, (E) => E.value === s.value ? !0 : c(E));
|
|
1831
|
-
},
|
|
1831
|
+
}, S = () => {
|
|
1832
1832
|
if (!d.value || !c(d.value)) {
|
|
1833
1833
|
const s = et(n.value, (b) => c(b));
|
|
1834
1834
|
s && t.openMenu(s);
|
|
@@ -1873,7 +1873,7 @@ const Sr = () => ({
|
|
|
1873
1873
|
const B = (s) => {
|
|
1874
1874
|
s || (l.ctxMenuItem = null);
|
|
1875
1875
|
}, q = (s) => {
|
|
1876
|
-
s === "refresh" ? P(l.ctxMenuItem) : s === "close" ? g(l.ctxMenuItem) : s === "close-other" ? m(l.ctxMenuItem) : s === "close-all" &&
|
|
1876
|
+
s === "refresh" ? P(l.ctxMenuItem) : s === "close" ? g(l.ctxMenuItem) : s === "close-other" ? m(l.ctxMenuItem) : s === "close-all" && S(), A();
|
|
1877
1877
|
}, U = N(() => {
|
|
1878
1878
|
var b, E;
|
|
1879
1879
|
const s = [];
|
|
@@ -1890,8 +1890,8 @@ const Sr = () => ({
|
|
|
1890
1890
|
label: "\u5168\u90E8\u5173\u95ED",
|
|
1891
1891
|
value: "close-all"
|
|
1892
1892
|
}), F(s, (L) => e.covertMenuItem ? e.covertMenuItem(L) : L);
|
|
1893
|
-
}), G = te(), ee = G(V.DropdownKey),
|
|
1894
|
-
return () => i(le, null, [i(
|
|
1893
|
+
}), G = te(), ee = G(V.DropdownKey), p = G(V.ScrollKey) || "div";
|
|
1894
|
+
return () => i(le, null, [i(p, {
|
|
1895
1895
|
class: "pro-layout-tabs"
|
|
1896
1896
|
}, {
|
|
1897
1897
|
default: () => [i("div", {
|
|
@@ -2036,6 +2036,9 @@ const Sr = () => ({
|
|
|
2036
2036
|
},
|
|
2037
2037
|
menuProps: {
|
|
2038
2038
|
type: Object
|
|
2039
|
+
},
|
|
2040
|
+
topMenuProps: {
|
|
2041
|
+
type: Object
|
|
2039
2042
|
}
|
|
2040
2043
|
}), Ja = D({
|
|
2041
2044
|
inheritAttrs: !1,
|
|
@@ -2064,17 +2067,17 @@ const Sr = () => ({
|
|
|
2064
2067
|
children: ((C = e.fieldNames) == null ? void 0 : C.children) || "children",
|
|
2065
2068
|
childrenName: "children"
|
|
2066
2069
|
});
|
|
2067
|
-
}), d = N(() => Gn(c.value, (C) => !C.hide)), y = N(() => pt(c.value)), g = N(() => pt(d.value)), m = N(() => Ut(c.value, (C) => R(C, "children"))),
|
|
2070
|
+
}), d = N(() => Gn(c.value, (C) => !C.hide)), y = N(() => pt(c.value)), g = N(() => pt(d.value)), m = N(() => Ut(c.value, (C) => R(C, "children"))), S = (C) => e.convertName ? e.convertName(C, {
|
|
2068
2071
|
menuTopMap: y.value
|
|
2069
2072
|
}) : C.name, P = (C) => e.convertValue ? e.convertValue({}) : C.value, v = N(() => {
|
|
2070
2073
|
if (e.findCurrentTopName)
|
|
2071
2074
|
return e.findCurrentTopName(l, y.value);
|
|
2072
|
-
const C =
|
|
2075
|
+
const C = S(l);
|
|
2073
2076
|
return y.value[C];
|
|
2074
2077
|
}), I = N(() => v.value ? et(d.value, (C) => C.value === v.value) : null), A = N(() => !!(I.value && I.value.children && Q(I.value.children) > 0)), f = N(() => {
|
|
2075
2078
|
if (e.findActiveKey)
|
|
2076
2079
|
return e.findActiveKey(l, y.value);
|
|
2077
|
-
const C =
|
|
2080
|
+
const C = S(l);
|
|
2078
2081
|
if (g.value[C])
|
|
2079
2082
|
return C;
|
|
2080
2083
|
const {
|
|
@@ -2116,18 +2119,18 @@ const Sr = () => ({
|
|
|
2116
2119
|
}));
|
|
2117
2120
|
window.sessionStorage.setItem(C, Ve(M));
|
|
2118
2121
|
}, U);
|
|
2119
|
-
const
|
|
2122
|
+
const p = () => {
|
|
2120
2123
|
var M;
|
|
2121
2124
|
const C = (M = e.tabs) == null ? void 0 : M.clearWhileUnmount;
|
|
2122
2125
|
return C === void 0 ? !0 : C;
|
|
2123
2126
|
};
|
|
2124
2127
|
re(() => () => {
|
|
2125
2128
|
const C = x();
|
|
2126
|
-
C &&
|
|
2129
|
+
C && p() && window.sessionStorage.removeItem(C);
|
|
2127
2130
|
}, []);
|
|
2128
2131
|
const s = W(!1);
|
|
2129
2132
|
ve(mn, {
|
|
2130
|
-
convertName:
|
|
2133
|
+
convertName: S,
|
|
2131
2134
|
convertValue: P,
|
|
2132
2135
|
menus: c,
|
|
2133
2136
|
menuMap: m,
|
|
@@ -2207,7 +2210,7 @@ const Sr = () => ({
|
|
|
2207
2210
|
mode: "horizontal",
|
|
2208
2211
|
options: F(d.value, (ge) => R(ge, "children")),
|
|
2209
2212
|
activeKey: v.value
|
|
2210
|
-
}, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2213
|
+
}, e.topMenuProps, Z(e, "convertSubMenuProps", "convertMenuItemProps"), {
|
|
2211
2214
|
onMenuItemClick: K
|
|
2212
2215
|
}), L) : null,
|
|
2213
2216
|
...E
|
|
@@ -2215,7 +2218,8 @@ const Sr = () => ({
|
|
|
2215
2218
|
class: `${e.clsName}-structure`
|
|
2216
2219
|
}, [A.value && j({
|
|
2217
2220
|
...O,
|
|
2218
|
-
options: I.value.children
|
|
2221
|
+
options: I.value.children,
|
|
2222
|
+
key: I.value.value
|
|
2219
2223
|
}), i("div", {
|
|
2220
2224
|
class: `${e.clsName}-right`
|
|
2221
2225
|
}, [H])])]));
|
|
@@ -2255,10 +2259,10 @@ const Sr = () => ({
|
|
|
2255
2259
|
let g = "";
|
|
2256
2260
|
d && Q(d) > 0 && (g = Ve(F(d, (m) => {
|
|
2257
2261
|
var v;
|
|
2258
|
-
const
|
|
2259
|
-
[
|
|
2260
|
-
[
|
|
2261
|
-
[
|
|
2262
|
+
const S = e.fieldNames, P = {
|
|
2263
|
+
[S.id]: m.id,
|
|
2264
|
+
[S.name]: m.name,
|
|
2265
|
+
[S.size || "size"]: m.size
|
|
2262
2266
|
};
|
|
2263
2267
|
return ((v = e.convertItem) == null ? void 0 : v.call(e, m)) || P;
|
|
2264
2268
|
}))), r(y, g);
|
|
@@ -2293,8 +2297,8 @@ const Sr = () => ({
|
|
|
2293
2297
|
}, n = N(() => {
|
|
2294
2298
|
let u = e.value;
|
|
2295
2299
|
return u && de(u) && (u = ct(u)), u && !J(u) && Oe(u) && o(u) && (u = [u]), J(u) ? F(X(u, (l) => o(l)), (l) => {
|
|
2296
|
-
var g, m,
|
|
2297
|
-
const c = h(l, ((g = e.fieldNames) == null ? void 0 : g.id) || "id"), d = h(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), y = h(l, ((
|
|
2300
|
+
var g, m, S;
|
|
2301
|
+
const c = h(l, ((g = e.fieldNames) == null ? void 0 : g.id) || "id"), d = h(l, ((m = e.fieldNames) == null ? void 0 : m.name) || "name"), y = h(l, ((S = e.fieldNames) == null ? void 0 : S.name) || "size");
|
|
2298
2302
|
return {
|
|
2299
2303
|
...l,
|
|
2300
2304
|
id: c,
|
|
@@ -2467,30 +2471,30 @@ const Sr = () => ({
|
|
|
2467
2471
|
elementMap: a,
|
|
2468
2472
|
registerStoreMap: u,
|
|
2469
2473
|
expressionMethods: l
|
|
2470
|
-
} = oe(), c = e.elementMap || a, d = (
|
|
2471
|
-
y.next(
|
|
2472
|
-
}, m = X(e.storeKeys, (
|
|
2474
|
+
} = oe(), c = e.elementMap || a, d = (p) => J(p) ? vt(c, p) : Re(c, p), y = new kn(), g = (p) => {
|
|
2475
|
+
y.next(p);
|
|
2476
|
+
}, m = X(e.storeKeys, (p) => rt(u, p)), S = () => ae(m, (p, s) => {
|
|
2473
2477
|
const b = h(u, s);
|
|
2474
2478
|
return {
|
|
2475
|
-
...
|
|
2479
|
+
...p,
|
|
2476
2480
|
[s]: h(o.value, `${b.persist ? "$" : ""}${s}`) || h(u, [s, "initialState"])
|
|
2477
2481
|
};
|
|
2478
|
-
}, {}), P =
|
|
2482
|
+
}, {}), P = S(), v = e.state || be({
|
|
2479
2483
|
...P,
|
|
2480
2484
|
...e.initState
|
|
2481
|
-
}), I = {}, A = (
|
|
2482
|
-
const s = v[
|
|
2485
|
+
}), I = {}, A = (p) => {
|
|
2486
|
+
const s = v[p.type], b = _(p.payload) ? p.payload(s) : p.payload;
|
|
2483
2487
|
if (!J(s) && Oe(s)) {
|
|
2484
|
-
Vt(v[
|
|
2488
|
+
Vt(v[p.type], b);
|
|
2485
2489
|
return;
|
|
2486
2490
|
}
|
|
2487
|
-
v[
|
|
2491
|
+
v[p.type] = b;
|
|
2488
2492
|
}, f = Wr(), T = {
|
|
2489
2493
|
dispatch: A,
|
|
2490
2494
|
dispatchStore: f
|
|
2491
2495
|
};
|
|
2492
2496
|
re(() => {
|
|
2493
|
-
const
|
|
2497
|
+
const p = o.pipe(jn(() => S()), Bn((s) => {
|
|
2494
2498
|
ne(s, (b, E) => {
|
|
2495
2499
|
const L = h(v, E);
|
|
2496
2500
|
Qn(L, b) || A({
|
|
@@ -2500,13 +2504,13 @@ const Sr = () => ({
|
|
|
2500
2504
|
});
|
|
2501
2505
|
})).subscribe();
|
|
2502
2506
|
return () => {
|
|
2503
|
-
|
|
2507
|
+
p.unsubscribe();
|
|
2504
2508
|
};
|
|
2505
2509
|
}, []);
|
|
2506
2510
|
const {
|
|
2507
2511
|
dispatchRequest: K
|
|
2508
2512
|
} = Fe(), x = (() => {
|
|
2509
|
-
const
|
|
2513
|
+
const p = {}, s = ae(e.actors || [], (b, E) => ({
|
|
2510
2514
|
...b,
|
|
2511
2515
|
[E.name]: E
|
|
2512
2516
|
}), {});
|
|
@@ -2517,13 +2521,13 @@ const Sr = () => ({
|
|
|
2517
2521
|
return;
|
|
2518
2522
|
b.actor = E;
|
|
2519
2523
|
}
|
|
2520
|
-
!b.actor || (
|
|
2521
|
-
}),
|
|
2522
|
-
})(), B = (
|
|
2524
|
+
!b.actor || (p[b.actor.name] = b, b.action && (p[b.action] = b));
|
|
2525
|
+
}), p;
|
|
2526
|
+
})(), B = (p, ...s) => p.convertParams ? p.convertParams(...s) : p.convertParamsEx ? G(p.convertParamsEx, s) : h(s, 0), q = (p, s) => {
|
|
2523
2527
|
var b;
|
|
2524
|
-
return
|
|
2525
|
-
}, U = (
|
|
2526
|
-
const b = h(x,
|
|
2528
|
+
return p.convertData ? p.convertData(s) : p.convertDataEx ? G(p.convertDataEx, s) : (b = s.res) == null ? void 0 : b.data;
|
|
2529
|
+
}, U = (p, ...s) => {
|
|
2530
|
+
const b = h(x, p);
|
|
2527
2531
|
if (!b)
|
|
2528
2532
|
return;
|
|
2529
2533
|
const E = B(b, ...s);
|
|
@@ -2533,46 +2537,46 @@ const Sr = () => ({
|
|
|
2533
2537
|
}), K(b.actor, E);
|
|
2534
2538
|
};
|
|
2535
2539
|
rr(Y(x), {
|
|
2536
|
-
onSuccess: (
|
|
2540
|
+
onSuccess: (p) => {
|
|
2537
2541
|
var E;
|
|
2538
|
-
const s = h(x,
|
|
2542
|
+
const s = h(x, p.name), b = q(s, p);
|
|
2539
2543
|
s != null && s.stateName && A({
|
|
2540
2544
|
type: s.stateName,
|
|
2541
2545
|
payload: b
|
|
2542
2546
|
}), g({
|
|
2543
2547
|
type: De.Success,
|
|
2544
2548
|
payload: {
|
|
2545
|
-
actor:
|
|
2549
|
+
actor: p,
|
|
2546
2550
|
requestOpts: s
|
|
2547
2551
|
}
|
|
2548
|
-
}), (E = s.onSuccess) == null || E.call(s,
|
|
2552
|
+
}), (E = s.onSuccess) == null || E.call(s, p), s.onSuccessEx && ee(s.onSuccessEx, [b]);
|
|
2549
2553
|
},
|
|
2550
|
-
onFailed: (
|
|
2554
|
+
onFailed: (p) => {
|
|
2551
2555
|
var b;
|
|
2552
|
-
const s = h(x,
|
|
2556
|
+
const s = h(x, p.name);
|
|
2553
2557
|
g({
|
|
2554
2558
|
type: De.Fail,
|
|
2555
2559
|
payload: {
|
|
2556
|
-
actor:
|
|
2560
|
+
actor: p,
|
|
2557
2561
|
requestOpts: s
|
|
2558
2562
|
}
|
|
2559
|
-
}), (b = s.onFailed) == null || b.call(s,
|
|
2563
|
+
}), (b = s.onFailed) == null || b.call(s, p), s.onFailedEx && ee(s.onFailedEx, [p.err]);
|
|
2560
2564
|
},
|
|
2561
|
-
onFinish: (
|
|
2562
|
-
const s = h(x, [
|
|
2565
|
+
onFinish: (p) => {
|
|
2566
|
+
const s = h(x, [p.name, "loadingName"]);
|
|
2563
2567
|
s && A({
|
|
2564
2568
|
type: s,
|
|
2565
2569
|
payload: !1
|
|
2566
2570
|
});
|
|
2567
2571
|
}
|
|
2568
2572
|
}, !0);
|
|
2569
|
-
const G = (
|
|
2573
|
+
const G = (p, s) => He(p, {
|
|
2570
2574
|
state: v,
|
|
2571
2575
|
data: I,
|
|
2572
2576
|
args: s,
|
|
2573
2577
|
expressionMethods: l
|
|
2574
|
-
}), ee = (
|
|
2575
|
-
if (!
|
|
2578
|
+
}), ee = (p, s) => {
|
|
2579
|
+
if (!p)
|
|
2576
2580
|
return;
|
|
2577
2581
|
const b = {
|
|
2578
2582
|
state: v,
|
|
@@ -2580,7 +2584,7 @@ const Sr = () => ({
|
|
|
2580
2584
|
args: s,
|
|
2581
2585
|
expressionMethods: l
|
|
2582
2586
|
};
|
|
2583
|
-
ne(
|
|
2587
|
+
ne(p, (E) => {
|
|
2584
2588
|
if (!J(E) || Q(E) < 2) {
|
|
2585
2589
|
console.log("execute invalid", E);
|
|
2586
2590
|
return;
|
|
@@ -2619,8 +2623,8 @@ const Sr = () => ({
|
|
|
2619
2623
|
sendEvent: g,
|
|
2620
2624
|
sendRequest: U
|
|
2621
2625
|
}), () => {
|
|
2622
|
-
var
|
|
2623
|
-
return i(le, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (
|
|
2626
|
+
var p;
|
|
2627
|
+
return i(le, null, [Q(e.elementConfigs) > 0 && d(e.elementConfigs), (p = t.default) == null ? void 0 : p.call(t)]);
|
|
2624
2628
|
};
|
|
2625
2629
|
}
|
|
2626
2630
|
}), tt = (e) => {
|
|
@@ -2753,7 +2757,7 @@ const Sr = () => ({
|
|
|
2753
2757
|
}
|
|
2754
2758
|
},
|
|
2755
2759
|
setup: (e) => {
|
|
2756
|
-
var
|
|
2760
|
+
var S;
|
|
2757
2761
|
const {
|
|
2758
2762
|
state: t,
|
|
2759
2763
|
sendEvent: r,
|
|
@@ -2762,7 +2766,7 @@ const Sr = () => ({
|
|
|
2762
2766
|
elementMap: n,
|
|
2763
2767
|
elementConfig: a
|
|
2764
2768
|
} = e, u = a.highConfig$, l = gn(n, a);
|
|
2765
|
-
ne((
|
|
2769
|
+
ne((S = a.highConfig$) == null ? void 0 : S.registerEventList, (P) => {
|
|
2766
2770
|
const v = (...A) => {
|
|
2767
2771
|
const f = `${a.elementId}-${P.name}`;
|
|
2768
2772
|
r({
|
|
@@ -2908,10 +2912,10 @@ const na = () => ({
|
|
|
2908
2912
|
});
|
|
2909
2913
|
return Lt(q, (U) => h(U, ["extra", `${x}Sort`]) || h(U, `${x}Sort`));
|
|
2910
2914
|
}, d = N(() => c("form", !0)), y = N(() => c("detail", !0)), g = N(() => c("table", !0)), m = N(() => c("search"));
|
|
2911
|
-
let
|
|
2915
|
+
let S;
|
|
2912
2916
|
const P = (x) => {
|
|
2913
2917
|
u(k.LIST, {
|
|
2914
|
-
...
|
|
2918
|
+
...S,
|
|
2915
2919
|
...x
|
|
2916
2920
|
});
|
|
2917
2921
|
}, v = (x) => {
|
|
@@ -2932,11 +2936,11 @@ const na = () => ({
|
|
|
2932
2936
|
U === De.Success && (U = h(B, ["requestOpts", "action"]), G = z.SUCCESS);
|
|
2933
2937
|
const {
|
|
2934
2938
|
values: ee,
|
|
2935
|
-
record:
|
|
2939
|
+
record: p
|
|
2936
2940
|
} = B;
|
|
2937
2941
|
switch (U) {
|
|
2938
2942
|
case k.LIST:
|
|
2939
|
-
G === z.EMIT && (
|
|
2943
|
+
G === z.EMIT && (S = ee, P());
|
|
2940
2944
|
return;
|
|
2941
2945
|
case k.ADD:
|
|
2942
2946
|
G === z.EXECUTE && u(k.ADD, ee, n.detailData);
|
|
@@ -2945,7 +2949,7 @@ const na = () => ({
|
|
|
2945
2949
|
G === z.EXECUTE && u(k.EDIT, ee, n.detailData);
|
|
2946
2950
|
return;
|
|
2947
2951
|
case k.DELETE:
|
|
2948
|
-
G === z.EMIT ? u(k.DELETE,
|
|
2952
|
+
G === z.EMIT ? u(k.DELETE, p, e.rowKey) : G === z.SUCCESS && P();
|
|
2949
2953
|
return;
|
|
2950
2954
|
}
|
|
2951
2955
|
U && x === z.EXECUTE && u(U, ee);
|
|
@@ -3002,26 +3006,26 @@ const na = () => ({
|
|
|
3002
3006
|
[k.LIST]: {
|
|
3003
3007
|
convertParams: (m) => m,
|
|
3004
3008
|
convertData: (m) => {
|
|
3005
|
-
var
|
|
3006
|
-
return (
|
|
3009
|
+
var S;
|
|
3010
|
+
return (S = m.res) == null ? void 0 : S.data;
|
|
3007
3011
|
},
|
|
3008
3012
|
loadingName: "listLoading",
|
|
3009
3013
|
stateName: "listData"
|
|
3010
3014
|
},
|
|
3011
3015
|
[k.DETAIL]: {
|
|
3012
|
-
convertParams: (m,
|
|
3016
|
+
convertParams: (m, S) => Z(m, S),
|
|
3013
3017
|
convertData: (m) => {
|
|
3014
|
-
var
|
|
3015
|
-
return (
|
|
3018
|
+
var S;
|
|
3019
|
+
return (S = m.res) == null ? void 0 : S.data;
|
|
3016
3020
|
},
|
|
3017
3021
|
loadingName: "detailLoading",
|
|
3018
3022
|
stateName: "detailData",
|
|
3019
3023
|
label: "\u8BE6\u60C5"
|
|
3020
3024
|
},
|
|
3021
3025
|
[k.ADD]: {
|
|
3022
|
-
convertParams: (m,
|
|
3026
|
+
convertParams: (m, S) => ({
|
|
3023
3027
|
body: {
|
|
3024
|
-
...
|
|
3028
|
+
...S,
|
|
3025
3029
|
...m
|
|
3026
3030
|
}
|
|
3027
3031
|
}),
|
|
@@ -3029,9 +3033,9 @@ const na = () => ({
|
|
|
3029
3033
|
label: "\u6DFB\u52A0"
|
|
3030
3034
|
},
|
|
3031
3035
|
[k.EDIT]: {
|
|
3032
|
-
convertParams: (m,
|
|
3036
|
+
convertParams: (m, S) => ({
|
|
3033
3037
|
body: {
|
|
3034
|
-
...
|
|
3038
|
+
...S,
|
|
3035
3039
|
...m
|
|
3036
3040
|
}
|
|
3037
3041
|
}),
|
|
@@ -3039,33 +3043,33 @@ const na = () => ({
|
|
|
3039
3043
|
label: "\u7F16\u8F91"
|
|
3040
3044
|
},
|
|
3041
3045
|
[k.DELETE]: {
|
|
3042
|
-
convertParams: (m,
|
|
3046
|
+
convertParams: (m, S) => Z(m, S),
|
|
3043
3047
|
label: "\u5220\u9664"
|
|
3044
3048
|
}
|
|
3045
3049
|
}, d = F(e.operates, (m) => {
|
|
3046
3050
|
var v;
|
|
3047
|
-
const
|
|
3051
|
+
const S = h(c, m.action), P = ((v = e.convertOperate) == null ? void 0 : v.call(e, m, S)) || m;
|
|
3048
3052
|
return {
|
|
3049
|
-
...
|
|
3053
|
+
...S,
|
|
3050
3054
|
...P
|
|
3051
3055
|
};
|
|
3052
3056
|
}), y = X(d, (m) => m.actor), g = Y(R(Be.props, "state", "requests"));
|
|
3053
3057
|
return r({
|
|
3054
3058
|
sendCurdEvent: (m) => {
|
|
3055
|
-
var
|
|
3056
|
-
(
|
|
3059
|
+
var S;
|
|
3060
|
+
(S = u.value) == null || S.sendCurdEvent(m);
|
|
3057
3061
|
},
|
|
3058
3062
|
refreshList: (m) => {
|
|
3059
|
-
var
|
|
3060
|
-
(
|
|
3063
|
+
var S;
|
|
3064
|
+
(S = u.value) == null || S.refreshList(m);
|
|
3061
3065
|
},
|
|
3062
3066
|
sendEvent: (m) => {
|
|
3063
|
-
var
|
|
3064
|
-
(
|
|
3067
|
+
var S;
|
|
3068
|
+
(S = a.value) == null || S.sendEvent(m);
|
|
3065
3069
|
},
|
|
3066
|
-
sendRequest: (m, ...
|
|
3070
|
+
sendRequest: (m, ...S) => {
|
|
3067
3071
|
var P;
|
|
3068
|
-
(P = a.value) == null || P.sendRequest(m, ...
|
|
3072
|
+
(P = a.value) == null || P.sendRequest(m, ...S);
|
|
3069
3073
|
}
|
|
3070
3074
|
}), () => i(Be, $({
|
|
3071
3075
|
ref: a
|
|
@@ -3091,7 +3095,7 @@ const na = () => ({
|
|
|
3091
3095
|
...ra()
|
|
3092
3096
|
},
|
|
3093
3097
|
setup: (e) => {
|
|
3094
|
-
var
|
|
3098
|
+
var S;
|
|
3095
3099
|
const {
|
|
3096
3100
|
dispatch: t,
|
|
3097
3101
|
sendRequest: r
|
|
@@ -3101,7 +3105,7 @@ const na = () => ({
|
|
|
3101
3105
|
listProps: a,
|
|
3102
3106
|
getOperate: u,
|
|
3103
3107
|
refreshList: l
|
|
3104
|
-
} = ie(), c = (
|
|
3108
|
+
} = ie(), c = (S = a == null ? void 0 : a.value) == null ? void 0 : S.pageState, d = (P) => {
|
|
3105
3109
|
const v = u(k.DETAIL);
|
|
3106
3110
|
v != null && v.actor ? r(k.DETAIL, P, o) : t({
|
|
3107
3111
|
type: "detailData",
|
|
@@ -3255,9 +3259,9 @@ const na = () => ({
|
|
|
3255
3259
|
return mt(({
|
|
3256
3260
|
type: g,
|
|
3257
3261
|
payload: m,
|
|
3258
|
-
source:
|
|
3262
|
+
source: S
|
|
3259
3263
|
}) => {
|
|
3260
|
-
if (
|
|
3264
|
+
if (S)
|
|
3261
3265
|
return;
|
|
3262
3266
|
let P = g, v = m == null ? void 0 : m.type;
|
|
3263
3267
|
const I = m == null ? void 0 : m.record;
|
|
@@ -3391,7 +3395,7 @@ const na = () => ({
|
|
|
3391
3395
|
formElementMap: o,
|
|
3392
3396
|
columns: a.value,
|
|
3393
3397
|
...e.searchProps
|
|
3394
|
-
})),
|
|
3398
|
+
})), S = N(() => {
|
|
3395
3399
|
var f, T;
|
|
3396
3400
|
return {
|
|
3397
3401
|
elementMap: r,
|
|
@@ -3417,7 +3421,7 @@ const na = () => ({
|
|
|
3417
3421
|
class: "pro-curd-list"
|
|
3418
3422
|
}, R(e, ...v, "searchProps", "tableProps", "paginationProps"), {
|
|
3419
3423
|
searchProps: m.value,
|
|
3420
|
-
tableProps:
|
|
3424
|
+
tableProps: S.value,
|
|
3421
3425
|
paginationProps: P.value,
|
|
3422
3426
|
onSearch: g
|
|
3423
3427
|
}), {
|
|
@@ -3433,7 +3437,7 @@ const na = () => ({
|
|
|
3433
3437
|
} : void 0,
|
|
3434
3438
|
...t,
|
|
3435
3439
|
search: t.search ? (K) => t.search(K, m.value) : void 0,
|
|
3436
|
-
table: t.table ? (K) => t.table(K,
|
|
3440
|
+
table: t.table ? (K) => t.table(K, S.value) : void 0,
|
|
3437
3441
|
pagination: t.pagination ? (K) => t.pagination(K, P.value) : void 0
|
|
3438
3442
|
}) : null;
|
|
3439
3443
|
};
|
|
@@ -3468,7 +3472,7 @@ const na = () => ({
|
|
|
3468
3472
|
const g = N(() => e.signName ? c(e.signName) : l.value), m = () => {
|
|
3469
3473
|
var f;
|
|
3470
3474
|
u.addAction = $e.NORMAL, (f = y.value) == null || f.submit();
|
|
3471
|
-
},
|
|
3475
|
+
}, S = () => {
|
|
3472
3476
|
var f;
|
|
3473
3477
|
u.addAction = $e.CONTINUE, (f = y.value) == null || f.submit();
|
|
3474
3478
|
}, P = [
|
|
@@ -3515,7 +3519,7 @@ const na = () => ({
|
|
|
3515
3519
|
operate: e.operate ? {
|
|
3516
3520
|
items: P,
|
|
3517
3521
|
onSubmit: m,
|
|
3518
|
-
onContinue:
|
|
3522
|
+
onContinue: S,
|
|
3519
3523
|
...e.operate
|
|
3520
3524
|
} : void 0,
|
|
3521
3525
|
onFinish: v
|
|
@@ -3656,7 +3660,7 @@ const na = () => ({
|
|
|
3656
3660
|
lineHeight: 1.5714285714285714,
|
|
3657
3661
|
spacing: 4
|
|
3658
3662
|
}, da = (e) => {
|
|
3659
|
-
var o, n, a, u, l, c, d, y, g, m,
|
|
3663
|
+
var o, n, a, u, l, c, d, y, g, m, S, P;
|
|
3660
3664
|
const t = [1, 2, 3, 4, 5, 6, 7, 8, 9], r = (v) => ({
|
|
3661
3665
|
base: v,
|
|
3662
3666
|
light: ae(t, (I, A) => ({
|
|
@@ -3674,7 +3678,7 @@ const na = () => ({
|
|
|
3674
3678
|
warning: r(((l = e == null ? void 0 : e.color) == null ? void 0 : l.warning) || ((c = Pe.color) == null ? void 0 : c.warning)),
|
|
3675
3679
|
danger: r(((d = e == null ? void 0 : e.color) == null ? void 0 : d.danger) || ((y = Pe.color) == null ? void 0 : y.danger)),
|
|
3676
3680
|
error: r(((g = e == null ? void 0 : e.color) == null ? void 0 : g.error) || ((m = Pe.color) == null ? void 0 : m.error)),
|
|
3677
|
-
info: r(((
|
|
3681
|
+
info: r(((S = e == null ? void 0 : e.color) == null ? void 0 : S.info) || ((P = Pe.color) == null ? void 0 : P.info)),
|
|
3678
3682
|
text: {
|
|
3679
3683
|
base: "#303133",
|
|
3680
3684
|
regular: "#606266",
|