cc1-form 1.2.26 → 1.2.28
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/cc1-form.js +92 -93
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +12 -0
- package/dist/components/TCurd/core/update.d.ts +3 -2
- package/dist/components/TCurd/index.d.ts +2785 -1
- package/dist/components/TCurd/index.vue.d.ts +8246 -13
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/cc1-form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElMessage as Ie, ElLoading as Ke, ElFormItem as he, ElInput as se, ElSwitch as ie, ElSelect as oe, ElOption as X, ElRadioGroup as Ce, ElRadio as xe, ElTreeSelect as He, ElDatePicker as Se, ElForm as q, ElDialog as ye, ElButton as
|
|
1
|
+
import { ElMessage as Ie, ElLoading as Ke, ElFormItem as he, ElInput as se, ElSwitch as ie, ElSelect as oe, ElOption as X, ElRadioGroup as Ce, ElRadio as xe, ElTreeSelect as He, ElDatePicker as Se, ElForm as q, ElDialog as ye, ElButton as L, ElTableColumn as re, ElDropdown as Ge, ElDropdownMenu as Ne, ElDropdownItem as ge, ElPagination as we, ElTable as We } from "element-plus";
|
|
2
2
|
import "vue-router";
|
|
3
3
|
import { defineComponent as G, reactive as me, onMounted as Ve, resolveComponent as ae, openBlock as u, createElementBlock as p, renderSlot as k, createVNode as $, withCtx as y, createTextVNode as V, createCommentVNode as w, Fragment as F, renderList as j, createBlock as h, normalizeClass as I, normalizeStyle as de, unref as r, createElementVNode as O, mergeProps as C, toHandlers as E, createSlots as W, toDisplayString as D, resolveDynamicComponent as Y, computed as te, ref as Q, watch as Je, normalizeProps as be, guardReactiveProps as pe, getCurrentInstance as Qe, withModifiers as qe, resolveDirective as Xe, withDirectives as Ye } from "vue";
|
|
4
4
|
import { Scope as ze } from "cc1-vue3";
|
|
@@ -1006,45 +1006,45 @@ const K = 12, ue = (e, n) => {
|
|
|
1006
1006
|
const x = [];
|
|
1007
1007
|
let z = 1;
|
|
1008
1008
|
return t.forEach((U) => {
|
|
1009
|
-
const
|
|
1009
|
+
const T = ve(U.item), A = l;
|
|
1010
1010
|
x.push({
|
|
1011
1011
|
...U,
|
|
1012
1012
|
span: A,
|
|
1013
1013
|
colSpan: A,
|
|
1014
|
-
rowSpan:
|
|
1014
|
+
rowSpan: T,
|
|
1015
1015
|
gridRow: z,
|
|
1016
1016
|
gridColumn: 1,
|
|
1017
1017
|
gridBand: ce({ gridRow: z })
|
|
1018
|
-
}), z +=
|
|
1018
|
+
}), z += T;
|
|
1019
1019
|
}), { cells: x, maxSpan: l };
|
|
1020
1020
|
}
|
|
1021
1021
|
const s = /* @__PURE__ */ new Set(), f = [];
|
|
1022
1022
|
let d = 0, c = 0;
|
|
1023
|
-
const v = (x) => Math.floor(x / K) * K, m = (x, z) => `${x},${z}`, g = (x, z, U,
|
|
1023
|
+
const v = (x) => Math.floor(x / K) * K, m = (x, z) => `${x},${z}`, g = (x, z, U, T) => {
|
|
1024
1024
|
if (z + U > l) return !1;
|
|
1025
|
-
for (let A = 0; A <
|
|
1025
|
+
for (let A = 0; A < T; A++)
|
|
1026
1026
|
for (let R = 0; R < U; R++)
|
|
1027
1027
|
if (s.has(m(x + A, z + R))) return !1;
|
|
1028
1028
|
return !0;
|
|
1029
|
-
}, B = (x, z, U,
|
|
1030
|
-
for (let A = 0; A <
|
|
1029
|
+
}, B = (x, z, U, T) => {
|
|
1030
|
+
for (let A = 0; A < T; A++)
|
|
1031
1031
|
for (let R = 0; R < U; R++)
|
|
1032
1032
|
s.add(m(x + A, z + R));
|
|
1033
|
-
}, H = (x, z, U,
|
|
1033
|
+
}, H = (x, z, U, T) => {
|
|
1034
1034
|
for (let R = v(x); R < 500 * K; R += K) {
|
|
1035
|
-
const
|
|
1036
|
-
for (let ee = je; ee <
|
|
1035
|
+
const Te = R + K, je = R === v(x) ? Math.max(R, x) : R;
|
|
1036
|
+
for (let ee = je; ee < Te; ee++) {
|
|
1037
1037
|
const Pe = ee === x ? z : 0;
|
|
1038
1038
|
for (let ne = Pe; ne <= l - U; ne++)
|
|
1039
|
-
if (g(ee, ne, U,
|
|
1039
|
+
if (g(ee, ne, U, T))
|
|
1040
1040
|
return { tr: ee, tc: ne };
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
return { tr: x, tc: z };
|
|
1044
|
-
}, _ = (x, z, U,
|
|
1044
|
+
}, _ = (x, z, U, T) => {
|
|
1045
1045
|
const A = v(x);
|
|
1046
|
-
if (
|
|
1047
|
-
d = x +
|
|
1046
|
+
if (T < K && x + T < A + K) {
|
|
1047
|
+
d = x + T, c = z;
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
const R = z + U;
|
|
@@ -1057,9 +1057,9 @@ const K = 12, ue = (e, n) => {
|
|
|
1057
1057
|
for (const x of t) {
|
|
1058
1058
|
const z = x.span === 0 ? l : x.span, U = ve(x.item);
|
|
1059
1059
|
x.item.form?.rowBreak && f.length && (c = 0, d = v(d) + K);
|
|
1060
|
-
let { tr:
|
|
1061
|
-
g(
|
|
1062
|
-
const R =
|
|
1060
|
+
let { tr: T, tc: A } = g(d, c, z, U) ? { tr: d, tc: c } : H(d, c, z, U);
|
|
1061
|
+
g(T, A, z, U) || ({ tr: T, tc: A } = H(0, 0, z, U)), B(T, A, z, U);
|
|
1062
|
+
const R = T + 1;
|
|
1063
1063
|
f.push({
|
|
1064
1064
|
...x,
|
|
1065
1065
|
span: z,
|
|
@@ -1068,7 +1068,7 @@ const K = 12, ue = (e, n) => {
|
|
|
1068
1068
|
gridRow: R,
|
|
1069
1069
|
gridColumn: A + 1,
|
|
1070
1070
|
gridBand: ce({ gridRow: R })
|
|
1071
|
-
}), _(
|
|
1071
|
+
}), _(T, A, z, U);
|
|
1072
1072
|
}
|
|
1073
1073
|
return { cells: f, maxSpan: l };
|
|
1074
1074
|
}, ft = (e) => e.map((n) => n.item?.show?.form), mt = (e, n, l) => {
|
|
@@ -1124,7 +1124,7 @@ const K = 12, ue = (e, n) => {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
};
|
|
1126
1126
|
e.forEach(i);
|
|
1127
|
-
}, yt = { class: "curd-form-cell-inner" },
|
|
1127
|
+
}, yt = { class: "curd-form-cell-inner" }, Le = /* @__PURE__ */ G({
|
|
1128
1128
|
__name: "layout",
|
|
1129
1129
|
props: {
|
|
1130
1130
|
formGrid: {},
|
|
@@ -1290,7 +1290,7 @@ const fe = (e) => {
|
|
|
1290
1290
|
s.formDefault = d.formDefault, s.rules = d.rules, s.formGrid = d.formGrid, s.formMaxSpan = d.formMaxSpan, s.formColumn = d.formColumn, s.type === l.Add ? f.isExternal() ? f.merge(JSONUtil.cp(s.formDefault)) : f.set(JSONUtil.cp(s.formDefault)) : !f.isExternal() && i.form && f.set(JSONUtil.cp(i.form));
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
|
-
return s.initColumnForm(), Je(
|
|
1293
|
+
return i.option.form?.initStart?.(s), s.initColumnForm(), i.option.form?.initEnd?.(s), Je(
|
|
1294
1294
|
() => i.form,
|
|
1295
1295
|
(f) => {
|
|
1296
1296
|
o = fe(f), s.initColumnForm();
|
|
@@ -1302,7 +1302,7 @@ const fe = (e) => {
|
|
|
1302
1302
|
rules: s.rules
|
|
1303
1303
|
}, {
|
|
1304
1304
|
default: y(() => [
|
|
1305
|
-
s.show ? (u(), h(
|
|
1305
|
+
s.show ? (u(), h(Le, {
|
|
1306
1306
|
key: 0,
|
|
1307
1307
|
"form-grid": s.formGrid,
|
|
1308
1308
|
"max-span": s.formMaxSpan,
|
|
@@ -1689,10 +1689,11 @@ const xt = (e, n) => ({
|
|
|
1689
1689
|
}
|
|
1690
1690
|
},
|
|
1691
1691
|
view: {},
|
|
1692
|
-
|
|
1692
|
+
openLoading: !1,
|
|
1693
|
+
open: async (i, o) => {
|
|
1693
1694
|
const t = e();
|
|
1694
|
-
t.update.showContent ||
|
|
1695
|
-
S.loading(!0);
|
|
1695
|
+
if (!(t.update.showContent || t.update.openLoading)) {
|
|
1696
|
+
S.loading(!0), t.update.openLoading = !0;
|
|
1696
1697
|
try {
|
|
1697
1698
|
t.update.type = i;
|
|
1698
1699
|
const s = i === le.Add;
|
|
@@ -1702,9 +1703,9 @@ const xt = (e, n) => ({
|
|
|
1702
1703
|
} catch (s) {
|
|
1703
1704
|
console.error(s);
|
|
1704
1705
|
} finally {
|
|
1705
|
-
S.loading(!1);
|
|
1706
|
+
S.loading(!1), t.update.openLoading = !1;
|
|
1706
1707
|
}
|
|
1707
|
-
}
|
|
1708
|
+
}
|
|
1708
1709
|
},
|
|
1709
1710
|
validate: async () => {
|
|
1710
1711
|
const i = e();
|
|
@@ -1719,36 +1720,34 @@ const xt = (e, n) => ({
|
|
|
1719
1720
|
S.fail(b.tCurd("checkFormData"));
|
|
1720
1721
|
}
|
|
1721
1722
|
},
|
|
1722
|
-
submit: () => {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
isNaN(c) || (s[d] = c);
|
|
1741
|
-
}
|
|
1742
|
-
});
|
|
1743
|
-
try {
|
|
1744
|
-
if (!t) return;
|
|
1745
|
-
await t({ ...s }), i.update.close(), await i.table.getList(), n.option.form?.submitAfter?.(s, i.update);
|
|
1746
|
-
} catch (d) {
|
|
1747
|
-
console.error(d);
|
|
1748
|
-
} finally {
|
|
1749
|
-
i.update.loading = !1;
|
|
1723
|
+
submit: async () => {
|
|
1724
|
+
const i = e();
|
|
1725
|
+
if (!await i.update.validate() || i.update.loading) return;
|
|
1726
|
+
i.update.loading = !0;
|
|
1727
|
+
const t = i.update.type === le.Add ? n.option.api.create : n.option.api.update;
|
|
1728
|
+
try {
|
|
1729
|
+
await n.option.form?.submitBefore?.(i.update.form, i.update);
|
|
1730
|
+
} catch {
|
|
1731
|
+
i.update.loading = !1;
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1734
|
+
let s = ObjectUtil.deepMerge(i.update.form, {});
|
|
1735
|
+
delete s.children;
|
|
1736
|
+
const f = new Set(n.option.column.filter((d) => d.type === "datetime").map((d) => d.key));
|
|
1737
|
+
Object.keys(s).forEach((d) => {
|
|
1738
|
+
if (f.has(d) && s[d] != null) {
|
|
1739
|
+
const c = new Date(s[d]).getTime();
|
|
1740
|
+
isNaN(c) || (s[d] = c);
|
|
1750
1741
|
}
|
|
1751
1742
|
});
|
|
1743
|
+
try {
|
|
1744
|
+
if (!t) return;
|
|
1745
|
+
await t({ ...s }), i.update.close(), await i.table.getList(), n.option.form?.submitAfter?.(s, i.update);
|
|
1746
|
+
} catch (d) {
|
|
1747
|
+
console.error(d);
|
|
1748
|
+
} finally {
|
|
1749
|
+
i.update.loading = !1;
|
|
1750
|
+
}
|
|
1752
1751
|
},
|
|
1753
1752
|
close: () => {
|
|
1754
1753
|
const i = e();
|
|
@@ -1932,22 +1931,21 @@ const xt = (e, n) => ({
|
|
|
1932
1931
|
J.setValue(a.search.form, v, !0);
|
|
1933
1932
|
}
|
|
1934
1933
|
}), $t = (e) => {
|
|
1935
|
-
const n = Q(), l = Q(), a = Q(), i = { switchConfirmRef: n, ruleFormRef: l, tableRef: a };
|
|
1936
|
-
let
|
|
1937
|
-
const t = () => o;
|
|
1938
|
-
return o = me({
|
|
1934
|
+
const n = Q(), l = Q(), a = Q(), i = { switchConfirmRef: n, ruleFormRef: l, tableRef: a }, o = () => t;
|
|
1935
|
+
let t = me({
|
|
1939
1936
|
...pt(),
|
|
1940
1937
|
option: e.option,
|
|
1941
|
-
...wt(
|
|
1942
|
-
...vt(
|
|
1943
|
-
...kt(
|
|
1944
|
-
...xt(
|
|
1945
|
-
...St(
|
|
1946
|
-
...Vt(
|
|
1947
|
-
...zt(
|
|
1948
|
-
})
|
|
1949
|
-
|
|
1950
|
-
|
|
1938
|
+
...wt(o, e),
|
|
1939
|
+
...vt(o, e),
|
|
1940
|
+
...kt(o, e, i),
|
|
1941
|
+
...xt(o, e),
|
|
1942
|
+
...St(o, e, i),
|
|
1943
|
+
...Vt(o, e),
|
|
1944
|
+
...zt(o, e, i)
|
|
1945
|
+
});
|
|
1946
|
+
return t.init(), Ve(() => {
|
|
1947
|
+
e.option.init !== !1 && t.table.getList();
|
|
1948
|
+
}), ze.setConf(t), { conf: t, switchConfirmRef: n, ruleFormRef: l, tableRef: a };
|
|
1951
1949
|
}, Et = { class: "dialog-footer" }, Dt = /* @__PURE__ */ G({
|
|
1952
1950
|
__name: "switchConfirm",
|
|
1953
1951
|
props: {
|
|
@@ -1978,13 +1976,13 @@ const xt = (e, n) => ({
|
|
|
1978
1976
|
$(m, { size: e.size }, {
|
|
1979
1977
|
default: y(() => [
|
|
1980
1978
|
O("span", Et, [
|
|
1981
|
-
$(r(
|
|
1979
|
+
$(r(L), { onClick: d }, {
|
|
1982
1980
|
default: y(() => [...v[1] || (v[1] = [
|
|
1983
1981
|
V("取消", -1)
|
|
1984
1982
|
])]),
|
|
1985
1983
|
_: 1
|
|
1986
1984
|
}),
|
|
1987
|
-
$(r(
|
|
1985
|
+
$(r(L), {
|
|
1988
1986
|
type: "primary",
|
|
1989
1987
|
onClick: f
|
|
1990
1988
|
}, {
|
|
@@ -2124,19 +2122,19 @@ function At(e, n) {
|
|
|
2124
2122
|
}, null, -1)
|
|
2125
2123
|
])]);
|
|
2126
2124
|
}
|
|
2127
|
-
const Rt = /* @__PURE__ */ Z(Ft, [["render", At]]), Bt = {},
|
|
2125
|
+
const Rt = /* @__PURE__ */ Z(Ft, [["render", At]]), Bt = {}, Lt = {
|
|
2128
2126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2129
2127
|
viewBox: "64 64 896 896"
|
|
2130
2128
|
};
|
|
2131
|
-
function
|
|
2132
|
-
return u(), p("svg",
|
|
2129
|
+
function Tt(e, n) {
|
|
2130
|
+
return u(), p("svg", Lt, [...n[0] || (n[0] = [
|
|
2133
2131
|
O("path", {
|
|
2134
2132
|
fill: "currentColor",
|
|
2135
2133
|
d: "M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"
|
|
2136
2134
|
}, null, -1)
|
|
2137
2135
|
])]);
|
|
2138
2136
|
}
|
|
2139
|
-
const jt = /* @__PURE__ */ Z(Bt, [["render",
|
|
2137
|
+
const jt = /* @__PURE__ */ Z(Bt, [["render", Tt]]), Pt = {}, It = {
|
|
2140
2138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2141
2139
|
viewBox: "0 0 1024 1024"
|
|
2142
2140
|
};
|
|
@@ -2487,7 +2485,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2487
2485
|
}),
|
|
2488
2486
|
e.option.tools?.search || e.option.tools?.reset ? (u(), h(r(he), { key: 0 }, {
|
|
2489
2487
|
default: y(() => [
|
|
2490
|
-
e.option.tools?.search ? (u(), h(r(
|
|
2488
|
+
e.option.tools?.search ? (u(), h(r(L), {
|
|
2491
2489
|
key: 0,
|
|
2492
2490
|
type: "primary",
|
|
2493
2491
|
onClick: r(o).search.submit
|
|
@@ -2497,7 +2495,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2497
2495
|
]),
|
|
2498
2496
|
_: 1
|
|
2499
2497
|
}, 8, ["onClick"])) : w("", !0),
|
|
2500
|
-
e.option.tools?.reset ? (u(), h(r(
|
|
2498
|
+
e.option.tools?.reset ? (u(), h(r(L), {
|
|
2501
2499
|
key: 1,
|
|
2502
2500
|
onClick: r(o).search.reset
|
|
2503
2501
|
}, {
|
|
@@ -2519,7 +2517,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2519
2517
|
O("div", co, [
|
|
2520
2518
|
O("div", fo, [
|
|
2521
2519
|
r(i)(e.option.tools?.add) ? (u(), p("div", mo, [
|
|
2522
|
-
$(r(
|
|
2520
|
+
$(r(L), {
|
|
2523
2521
|
type: "primary",
|
|
2524
2522
|
onClick: c[0] || (c[0] = (g) => r(o).update.open(r(l).Add)),
|
|
2525
2523
|
size: e.option.size?.search
|
|
@@ -2531,7 +2529,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2531
2529
|
}, 8, ["size"])
|
|
2532
2530
|
])) : w("", !0),
|
|
2533
2531
|
e.option.table?.selectable && r(i)(e.option.tools?.delete) ? (u(), p("div", go, [
|
|
2534
|
-
$(r(
|
|
2532
|
+
$(r(L), {
|
|
2535
2533
|
type: "danger",
|
|
2536
2534
|
onClick: c[1] || (c[1] = (g) => r(o).remove.open(r(o).table.selection.list)),
|
|
2537
2535
|
size: e.option.size?.search
|
|
@@ -2543,7 +2541,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2543
2541
|
}, 8, ["size"])
|
|
2544
2542
|
])) : w("", !0),
|
|
2545
2543
|
e.option.tools?.expand ? (u(), p("div", ho, [
|
|
2546
|
-
$(r(
|
|
2544
|
+
$(r(L), {
|
|
2547
2545
|
type: "warning",
|
|
2548
2546
|
onClick: c[2] || (c[2] = (g) => r(o).table.expand.all()),
|
|
2549
2547
|
size: e.option.size?.search
|
|
@@ -2597,7 +2595,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2597
2595
|
]),
|
|
2598
2596
|
default: y(() => [
|
|
2599
2597
|
O("div", yo, [
|
|
2600
|
-
$(r(
|
|
2598
|
+
$(r(L), {
|
|
2601
2599
|
type: "warning",
|
|
2602
2600
|
loading: r(o).export.loading,
|
|
2603
2601
|
size: e.option.size?.search
|
|
@@ -2611,7 +2609,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2611
2609
|
]),
|
|
2612
2610
|
_: 1
|
|
2613
2611
|
}, 8, ["onCommand"])) : (u(), p("div", bo, [
|
|
2614
|
-
$(r(
|
|
2612
|
+
$(r(L), {
|
|
2615
2613
|
type: "warning",
|
|
2616
2614
|
loading: r(o).export.loading,
|
|
2617
2615
|
size: e.option.size?.search,
|
|
@@ -2738,7 +2736,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2738
2736
|
default: y(() => [
|
|
2739
2737
|
k(d.$slots, "table-op-left", { row: g }),
|
|
2740
2738
|
r(o).update.type === r(l).Update && e.option.table?.inlineEdit && r(o).update.form[a.option.table?.rowKey] === g[a.option.table?.rowKey] ? (u(), p(F, { key: 0 }, [
|
|
2741
|
-
$(r(
|
|
2739
|
+
$(r(L), {
|
|
2742
2740
|
link: "",
|
|
2743
2741
|
type: "info",
|
|
2744
2742
|
onClick: r(o).update.close
|
|
@@ -2748,7 +2746,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2748
2746
|
]),
|
|
2749
2747
|
_: 1
|
|
2750
2748
|
}, 8, ["onClick"]),
|
|
2751
|
-
$(r(
|
|
2749
|
+
$(r(L), {
|
|
2752
2750
|
link: "",
|
|
2753
2751
|
type: "primary",
|
|
2754
2752
|
onClick: r(o).update.submit,
|
|
@@ -2761,7 +2759,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2761
2759
|
}, 8, ["onClick", "loading"]),
|
|
2762
2760
|
k(d.$slots, "table-op-edit-right", { row: g })
|
|
2763
2761
|
], 64)) : (u(), p(F, { key: 1 }, [
|
|
2764
|
-
r(i)(e.option.table?.add, g) ? (u(), h(r(
|
|
2762
|
+
r(i)(e.option.table?.add, g) ? (u(), h(r(L), {
|
|
2765
2763
|
key: 0,
|
|
2766
2764
|
link: "",
|
|
2767
2765
|
type: "primary",
|
|
@@ -2772,7 +2770,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2772
2770
|
]),
|
|
2773
2771
|
_: 1
|
|
2774
2772
|
}, 8, ["onClick"])) : w("", !0),
|
|
2775
|
-
r(i)(e.option.table?.view, g) ? (u(), h(r(
|
|
2773
|
+
r(i)(e.option.table?.view, g) ? (u(), h(r(L), {
|
|
2776
2774
|
key: 1,
|
|
2777
2775
|
link: "",
|
|
2778
2776
|
type: "primary",
|
|
@@ -2783,7 +2781,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2783
2781
|
]),
|
|
2784
2782
|
_: 1
|
|
2785
2783
|
}, 8, ["onClick"])) : w("", !0),
|
|
2786
|
-
r(i)(e.option.table?.update, g) ? (u(), h(r(
|
|
2784
|
+
r(i)(e.option.table?.update, g) ? (u(), h(r(L), {
|
|
2787
2785
|
key: 2,
|
|
2788
2786
|
link: "",
|
|
2789
2787
|
type: "warning",
|
|
@@ -2794,7 +2792,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2794
2792
|
]),
|
|
2795
2793
|
_: 1
|
|
2796
2794
|
}, 8, ["onClick"])) : w("", !0),
|
|
2797
|
-
r(i)(e.option.table?.delete, g) ? (u(), h(r(
|
|
2795
|
+
r(i)(e.option.table?.delete, g) ? (u(), h(r(L), {
|
|
2798
2796
|
key: 3,
|
|
2799
2797
|
link: "",
|
|
2800
2798
|
type: "danger",
|
|
@@ -2855,7 +2853,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2855
2853
|
k(d.$slots, "dialog-footer", {
|
|
2856
2854
|
row: r(o).update
|
|
2857
2855
|
}, () => [
|
|
2858
|
-
$(r(
|
|
2856
|
+
$(r(L), {
|
|
2859
2857
|
onClick: r(o).update.close
|
|
2860
2858
|
}, {
|
|
2861
2859
|
default: y(() => [
|
|
@@ -2863,7 +2861,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2863
2861
|
]),
|
|
2864
2862
|
_: 1
|
|
2865
2863
|
}, 8, ["onClick"]),
|
|
2866
|
-
r(o).update.type !== r(l).View ? (u(), h(r(
|
|
2864
|
+
r(o).update.type !== r(l).View ? (u(), h(r(L), {
|
|
2867
2865
|
key: 0,
|
|
2868
2866
|
type: "primary",
|
|
2869
2867
|
onClick: r(o).update.submit,
|
|
@@ -2893,7 +2891,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2893
2891
|
class: "update-dialog-form"
|
|
2894
2892
|
}, {
|
|
2895
2893
|
default: y(() => [
|
|
2896
|
-
r(o).update.showContent ? (u(), h(
|
|
2894
|
+
r(o).update.showContent ? (u(), h(Le, {
|
|
2897
2895
|
key: 0,
|
|
2898
2896
|
"form-grid": r(o).update.formGrid,
|
|
2899
2897
|
"max-span": r(o).update.formMaxSpan,
|
|
@@ -2934,7 +2932,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2934
2932
|
size: e.option.size?.form
|
|
2935
2933
|
}, {
|
|
2936
2934
|
default: y(() => [
|
|
2937
|
-
$(r(
|
|
2935
|
+
$(r(L), {
|
|
2938
2936
|
onClick: r(o).remove.close
|
|
2939
2937
|
}, {
|
|
2940
2938
|
default: y(() => [
|
|
@@ -2942,7 +2940,7 @@ const to = /* @__PURE__ */ Z(Zt, [["render", eo]]), oo = { class: "row flex-cent
|
|
|
2942
2940
|
]),
|
|
2943
2941
|
_: 1
|
|
2944
2942
|
}, 8, ["onClick"]),
|
|
2945
|
-
$(r(
|
|
2943
|
+
$(r(L), {
|
|
2946
2944
|
type: "danger",
|
|
2947
2945
|
onClick: r(o).remove.submit,
|
|
2948
2946
|
loading: r(o).remove.loading
|
|
@@ -3040,6 +3038,7 @@ export {
|
|
|
3040
3038
|
M as TFormConfig,
|
|
3041
3039
|
b as TFormI18n,
|
|
3042
3040
|
$e as TFormList,
|
|
3041
|
+
J as TObj,
|
|
3043
3042
|
S as TSys,
|
|
3044
3043
|
Mo as default,
|
|
3045
3044
|
Vo as install
|