cc1-form 1.1.39 → 1.1.41
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 +107 -106
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +624 -198
- package/dist/components/TCurd/formColumn.vue.d.ts +420 -140
- package/dist/components/TCurd/index.d.ts +423 -143
- package/dist/components/TCurd/index.vue.d.ts +933 -317
- package/dist/components/TCurd/indexType.d.ts +32 -5
- package/package.json +1 -1
package/dist/cc1-form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ElMessage as ce, ElLoading as me, ElForm as N, ElFormItem as X, ElInput as Y, ElSwitch as oe, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as _, ElButton as
|
|
1
|
+
import { ElMessage as ce, ElLoading as me, ElForm as N, ElFormItem as X, ElInput as Y, ElSwitch as oe, ElSelect as W, ElOption as K, ElRadioGroup as re, ElRadio as se, ElTreeSelect as de, ElDatePicker as ae, ElDialog as _, ElButton as T, ElTableColumn as ee, ElDropdown as he, ElDropdownMenu as ge, ElDropdownItem as x, ElPagination as ie, ElTable as be } from "element-plus";
|
|
2
2
|
import "vue-router";
|
|
3
|
-
import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as Q, createElementBlock as y, createCommentVNode as C, openBlock as f, renderSlot as k, createElementVNode as
|
|
4
|
-
class
|
|
3
|
+
import { defineComponent as J, reactive as le, onMounted as ue, resolveComponent as Q, createElementBlock as y, createCommentVNode as C, openBlock as f, renderSlot as k, createElementVNode as U, createVNode as z, withCtx as m, createTextVNode as E, Fragment as $, renderList as L, createBlock as h, normalizeClass as j, normalizeStyle as fe, ref as H, unref as a, mergeProps as v, toHandlers as S, resolveDynamicComponent as q, toDisplayString as A, getCurrentInstance as ye, createSlots as te, resolveDirective as we, withDirectives as ke, normalizeProps as Ce, guardReactiveProps as ve } from "vue";
|
|
4
|
+
class O {
|
|
5
5
|
/**
|
|
6
6
|
* Vue Router 实例,需在应用初始化时赋值
|
|
7
7
|
*/
|
|
@@ -43,9 +43,9 @@ class U {
|
|
|
43
43
|
* @param module
|
|
44
44
|
*/
|
|
45
45
|
static loadModule = async (o) => {
|
|
46
|
-
if (!
|
|
46
|
+
if (!O.moduleObj[o])
|
|
47
47
|
throw new Error(`模块${o}未加载,请赋值如:TSys.moduleObj = { ${o}: ()=>import('${o}') }`);
|
|
48
|
-
const u = await
|
|
48
|
+
const u = await O.moduleObj[o]();
|
|
49
49
|
return u.default ?? u;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
@@ -133,7 +133,7 @@ class U {
|
|
|
133
133
|
*/
|
|
134
134
|
static getImgPic = (o) => new Promise(async (u, t) => {
|
|
135
135
|
let i = document.getElementById(o.id);
|
|
136
|
-
const l = await
|
|
136
|
+
const l = await O.loadModule("html2canvas");
|
|
137
137
|
try {
|
|
138
138
|
l(i, {
|
|
139
139
|
logging: !1,
|
|
@@ -547,7 +547,7 @@ class M {
|
|
|
547
547
|
*/
|
|
548
548
|
parentId: (o, u, t, i) => {
|
|
549
549
|
const l = D.config.table.rowKey;
|
|
550
|
-
o ? u.type ===
|
|
550
|
+
o ? u.type === O.EDialog.Add ? (u.form.parentId = o[l], u.form.sort = o.children.length + 1) : u.form.parentId = o.parentId.substring(o.parentId.lastIndexOf(",") + 1) : (u.form.parentId = "0", u.form.sort = t.length + 1), M.setOptionsData(i, "parentId", [{ [l]: "0", title: "根", children: t }]);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
};
|
|
@@ -733,7 +733,7 @@ const ze = {
|
|
|
733
733
|
const s = Q("el-button"), p = Q("el-input");
|
|
734
734
|
return t.show ? (f(), y("div", ze, [
|
|
735
735
|
k(l.$slots, "list-start", { row: r.row }),
|
|
736
|
-
|
|
736
|
+
U("div", null, [
|
|
737
737
|
z(s, {
|
|
738
738
|
link: "",
|
|
739
739
|
type: "primary",
|
|
@@ -780,7 +780,7 @@ const ze = {
|
|
|
780
780
|
}), Se = {
|
|
781
781
|
class: "row form-item-content",
|
|
782
782
|
style: { width: "100%" }
|
|
783
|
-
}, Ee = { class: "col" }, $e = { class: "col" },
|
|
783
|
+
}, Ee = { class: "col" }, $e = { class: "col" }, Ue = ["innerHTML"], Oe = /* @__PURE__ */ J({
|
|
784
784
|
__name: "column",
|
|
785
785
|
props: {
|
|
786
786
|
/**
|
|
@@ -797,7 +797,7 @@ const ze = {
|
|
|
797
797
|
}
|
|
798
798
|
},
|
|
799
799
|
setup(r, { expose: o }) {
|
|
800
|
-
const u =
|
|
800
|
+
const u = O.isFun, t = O.EDialog, i = H(), l = r, e = le({
|
|
801
801
|
rules: {},
|
|
802
802
|
show: !0,
|
|
803
803
|
form: {},
|
|
@@ -809,7 +809,7 @@ const ze = {
|
|
|
809
809
|
getOn: (s) => s.options?.[e.type === t.Add ? "formAdd" : "formUpdate"]?.[s.type]?.on || s.options?.[s.type]?.on || {},
|
|
810
810
|
getColumnSpan: (s, p) => {
|
|
811
811
|
if (s.item.form?.spanCol) {
|
|
812
|
-
const c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !
|
|
812
|
+
const c = l.option.form?.maxSpan || 12, g = l.option.form?.defaultSpan || c / 2, d = p.filter((V) => !O.isFun(V.item.show?.form, e.form, e.type)).reduce((V, w) => V + (w.item.form?.span || g), 0);
|
|
813
813
|
return (s.item.form?.span || g) + d;
|
|
814
814
|
}
|
|
815
815
|
return s.item.form?.span;
|
|
@@ -891,13 +891,13 @@ const ze = {
|
|
|
891
891
|
"label-width": n.item.form?.labelWidth || r.option.form?.labelWidth || "100px"
|
|
892
892
|
}, {
|
|
893
893
|
default: m(() => [
|
|
894
|
-
|
|
894
|
+
U("div", Se, [
|
|
895
895
|
k(s.$slots, "form-" + n.item.key + "-start", {
|
|
896
896
|
row: e.form,
|
|
897
897
|
item: n.item
|
|
898
898
|
}),
|
|
899
|
-
|
|
900
|
-
|
|
899
|
+
U("div", Ee, [
|
|
900
|
+
U("div", $e, [
|
|
901
901
|
k(s.$slots, "form-" + n.item.key, {
|
|
902
902
|
row: e.form,
|
|
903
903
|
item: n.item
|
|
@@ -995,7 +995,7 @@ const ze = {
|
|
|
995
995
|
key: 0,
|
|
996
996
|
class: "form-tip-text",
|
|
997
997
|
innerHTML: typeof n.item.form?.tipText == "function" ? n.item.form?.tipText(e.form, e.type) : n.item.form?.tipText
|
|
998
|
-
}, null, 8,
|
|
998
|
+
}, null, 8, Ue)) : C("", !0)
|
|
999
999
|
])
|
|
1000
1000
|
]),
|
|
1001
1001
|
k(s.$slots, "form-" + n.item.key + "-end", {
|
|
@@ -1028,7 +1028,7 @@ class Fe {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
static exportToExcel = async (o, u, t) => {
|
|
1030
1030
|
if (!o || o.length === 0) return;
|
|
1031
|
-
const i = await
|
|
1031
|
+
const i = await O.loadModule("xlsx"), l = o.map((p) => {
|
|
1032
1032
|
const c = {};
|
|
1033
1033
|
return u.forEach((g) => {
|
|
1034
1034
|
c[g.label] = p[g.key];
|
|
@@ -1037,7 +1037,7 @@ class Fe {
|
|
|
1037
1037
|
i.utils.book_append_sheet(s, e, "Sheet1"), t ? typeof t == "function" && (t = t()) : t = `导出数据_${(/* @__PURE__ */ new Date()).Format("yyyy-MM-dd")}_${(/* @__PURE__ */ new Date()).getTime()}`, i.writeFile(s, `${t}.xlsx`);
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
const I =
|
|
1040
|
+
const I = O.EDialog, Ae = (r) => {
|
|
1041
1041
|
const o = H(), u = H(), t = le({
|
|
1042
1042
|
option: r.option,
|
|
1043
1043
|
/** 查询区域相关配置对象 */
|
|
@@ -1214,13 +1214,13 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1214
1214
|
/** 获取当前选中项进行导出 */
|
|
1215
1215
|
select: () => {
|
|
1216
1216
|
if (t.table.selection.list.length === 0)
|
|
1217
|
-
throw
|
|
1217
|
+
throw O.fail(b.tCurd("selectDataToExport")), new Error(b.tCurd("selectDataToExport"));
|
|
1218
1218
|
return t.table.selection.list;
|
|
1219
1219
|
},
|
|
1220
1220
|
/** 导出当前页的数据 */
|
|
1221
1221
|
page: () => {
|
|
1222
1222
|
if (t.table.data.length === 0)
|
|
1223
|
-
throw
|
|
1223
|
+
throw O.fail(b.tCurd("noData")), new Error(b.tCurd("noData"));
|
|
1224
1224
|
return t.table.data;
|
|
1225
1225
|
},
|
|
1226
1226
|
/** 导出所有数据 */
|
|
@@ -1281,15 +1281,16 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1281
1281
|
/** 获取表单组件事件属性 */
|
|
1282
1282
|
getOn: (i) => i.options?.[t.update.type === I.Add ? "formAdd" : "formUpdate"]?.[i.type]?.on || i.options?.[i.type]?.on || {},
|
|
1283
1283
|
/** 获取表单组件绑定属性和事件 */
|
|
1284
|
-
|
|
1284
|
+
getOptions: (i) => {
|
|
1285
1285
|
try {
|
|
1286
1286
|
const e = t.update.formColumn.flat().find((s) => s.item.key === i)?.item;
|
|
1287
1287
|
return e ? {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1288
|
+
options: e.options,
|
|
1289
|
+
// @ts-ignore
|
|
1290
|
+
bind: t.update.getBind(e)
|
|
1291
|
+
} : { options: {}, bind: {} };
|
|
1291
1292
|
} catch {
|
|
1292
|
-
return {
|
|
1293
|
+
return { options: {}, bind: {} };
|
|
1293
1294
|
}
|
|
1294
1295
|
},
|
|
1295
1296
|
/** 编辑相关数据与方法 */
|
|
@@ -1312,7 +1313,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1312
1313
|
/** 打开增改弹窗 */
|
|
1313
1314
|
open: (i, l) => {
|
|
1314
1315
|
t.update.showContent || FunUtil.throttle(async () => {
|
|
1315
|
-
|
|
1316
|
+
O.loading(!0);
|
|
1316
1317
|
try {
|
|
1317
1318
|
t.update.type = i, await t.initApiData("update");
|
|
1318
1319
|
const e = i === I.Add;
|
|
@@ -1320,11 +1321,11 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1320
1321
|
t.inlineEdit.open(l);
|
|
1321
1322
|
return;
|
|
1322
1323
|
}
|
|
1323
|
-
t.update.edit.data = l, t.update.title = b.tCurd(e ? "add" : i === I.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await r.option.form?.openBefore?.(
|
|
1324
|
+
t.update.edit.data = l, t.update.title = b.tCurd(e ? "add" : i === I.View ? "view" : "edit"), t.update.form = JSONUtil.cp(e ? t.update.formDefault : l), await r.option.form?.openBefore?.(t.update.form, t.update), t.inlineEdit.data || (t.update.show = !0), t.update.showContent = !0, r.option.form?.openAfter?.(t.update.form, t.update);
|
|
1324
1325
|
} catch (e) {
|
|
1325
1326
|
console.error(e);
|
|
1326
1327
|
} finally {
|
|
1327
|
-
|
|
1328
|
+
O.loading(!1);
|
|
1328
1329
|
}
|
|
1329
1330
|
});
|
|
1330
1331
|
},
|
|
@@ -1332,7 +1333,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1332
1333
|
submit: () => {
|
|
1333
1334
|
FunUtil.throttle(async () => {
|
|
1334
1335
|
await u.value?.validate(async (s, p) => new Promise((c, g) => {
|
|
1335
|
-
s || (
|
|
1336
|
+
s || (O.fail(b.tCurd("checkFormData")), g(!1)), c();
|
|
1336
1337
|
})), t.update.loading = !0;
|
|
1337
1338
|
const i = t.update.type === I.Add ? r.option.api.create : r.option.api.update;
|
|
1338
1339
|
try {
|
|
@@ -1399,7 +1400,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1399
1400
|
/** 打开删除弹窗并设置待删除项 */
|
|
1400
1401
|
open: (i) => {
|
|
1401
1402
|
if (i.length === 0) {
|
|
1402
|
-
|
|
1403
|
+
O.fail(b.tCurd("selectDataToDelete"));
|
|
1403
1404
|
return;
|
|
1404
1405
|
}
|
|
1405
1406
|
t.remove.items = i, t.remove.show = !0;
|
|
@@ -1414,7 +1415,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1414
1415
|
await i({
|
|
1415
1416
|
[r.option.table?.rowKey]: t.remove.items.map((l) => l[r.option.table?.rowKey]),
|
|
1416
1417
|
items: t.remove.items
|
|
1417
|
-
}),
|
|
1418
|
+
}), O.success(b.tCurd("operationSuccess")), t.table.data.length <= 1 && t.page.num > 1 && (t.page.num -= 1), t.remove.close(), await t.table.getList();
|
|
1418
1419
|
} catch (l) {
|
|
1419
1420
|
console.error(l);
|
|
1420
1421
|
} finally {
|
|
@@ -1436,14 +1437,14 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1436
1437
|
s.children.forEach((p) => e(p));
|
|
1437
1438
|
return;
|
|
1438
1439
|
}
|
|
1439
|
-
if (
|
|
1440
|
+
if (s.options?.[s.type]?.dataApi && s.options?.[s.type]?.dataApiConfig?.[i]) {
|
|
1440
1441
|
if (t.apiDataMap[s.key] && s.options?.[s.type]?.dataApiConfig?.once) return;
|
|
1441
1442
|
const p = (async () => {
|
|
1442
1443
|
try {
|
|
1443
1444
|
let c = await s.options?.[s.type]?.dataApi?.(t.update.form, i);
|
|
1444
1445
|
if (c) {
|
|
1445
1446
|
const g = s.options?.[s.type]?.dataPath;
|
|
1446
|
-
g && (c = ObjectUtil.getPathValue(c, g)), s.options[s.type].data = c, t.apiDataMap[s.key] = c;
|
|
1447
|
+
g && (c = ObjectUtil.getPathValue(c, g)), s.options[s.type].data = c, s.options.search[s.type].data = c, s.options.formAdd[s.type].data = c, s.options.formUpdate[s.type].data = c, t.apiDataMap[s.key] = c;
|
|
1447
1448
|
}
|
|
1448
1449
|
} catch {
|
|
1449
1450
|
}
|
|
@@ -1505,7 +1506,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1505
1506
|
final(g, n, d) {
|
|
1506
1507
|
t.table.loading = !1;
|
|
1507
1508
|
}
|
|
1508
|
-
}), t.table.loading = !1,
|
|
1509
|
+
}), t.table.loading = !1, O.success(b.tCurd("operationSuccess")), t.table.getList(), !0) : void 0;
|
|
1509
1510
|
} catch (g) {
|
|
1510
1511
|
return console.error(g), !1;
|
|
1511
1512
|
} finally {
|
|
@@ -1520,7 +1521,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1520
1521
|
},
|
|
1521
1522
|
getColumnSpan: (i, l) => {
|
|
1522
1523
|
if (i.item.form?.spanCol) {
|
|
1523
|
-
const e = D.config.form.defaultSpan, p = l.filter((c) => !
|
|
1524
|
+
const e = D.config.form.defaultSpan, p = l.filter((c) => !O.isFun(c.item.show?.form, t.update.form, t.update.type)).reduce((c, g) => c + (g.item.form?.span || e), 0);
|
|
1524
1525
|
return (i.item?.form.span || e) + p;
|
|
1525
1526
|
}
|
|
1526
1527
|
return i.item.form.span;
|
|
@@ -1578,7 +1579,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1578
1579
|
return t.init(), ue(() => {
|
|
1579
1580
|
r.option.init !== !1 && t.table.getList();
|
|
1580
1581
|
}), { conf: t, switchConfirmRef: o, ruleFormRef: u };
|
|
1581
|
-
},
|
|
1582
|
+
}, Te = { class: "dialog-footer" }, Le = /* @__PURE__ */ J({
|
|
1582
1583
|
__name: "switchConfirm",
|
|
1583
1584
|
props: {
|
|
1584
1585
|
size: {}
|
|
@@ -1607,14 +1608,14 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1607
1608
|
footer: m(() => [
|
|
1608
1609
|
z(d, { size: g.size }, {
|
|
1609
1610
|
default: m(() => [
|
|
1610
|
-
|
|
1611
|
-
z(a(
|
|
1611
|
+
U("span", Te, [
|
|
1612
|
+
z(a(T), { onClick: c }, {
|
|
1612
1613
|
default: m(() => n[1] || (n[1] = [
|
|
1613
1614
|
E("取消")
|
|
1614
1615
|
])),
|
|
1615
1616
|
_: 1
|
|
1616
1617
|
}),
|
|
1617
|
-
z(a(
|
|
1618
|
+
z(a(T), {
|
|
1618
1619
|
type: "primary",
|
|
1619
1620
|
onClick: p
|
|
1620
1621
|
}, {
|
|
@@ -1629,7 +1630,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1629
1630
|
}, 8, ["size"])
|
|
1630
1631
|
]),
|
|
1631
1632
|
default: m(() => [
|
|
1632
|
-
|
|
1633
|
+
U("div", null, A(i.value), 1)
|
|
1633
1634
|
]),
|
|
1634
1635
|
_: 1
|
|
1635
1636
|
}, 8, ["modelValue", "title"]);
|
|
@@ -1646,7 +1647,7 @@ const I = U.EDialog, Te = (r) => {
|
|
|
1646
1647
|
};
|
|
1647
1648
|
function je(r, o) {
|
|
1648
1649
|
return f(), y("svg", Be, o[0] || (o[0] = [
|
|
1649
|
-
|
|
1650
|
+
U("path", {
|
|
1650
1651
|
fill: "currentColor",
|
|
1651
1652
|
d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
|
|
1652
1653
|
}, null, -1)
|
|
@@ -1659,7 +1660,7 @@ const Ie = /* @__PURE__ */ pe(Me, [["render", je]]), Re = {}, Pe = {
|
|
|
1659
1660
|
};
|
|
1660
1661
|
function Ne(r, o) {
|
|
1661
1662
|
return f(), y("svg", Pe, o[0] || (o[0] = [
|
|
1662
|
-
|
|
1663
|
+
U("path", {
|
|
1663
1664
|
fill: "currentColor",
|
|
1664
1665
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"
|
|
1665
1666
|
}, null, -1)
|
|
@@ -1673,7 +1674,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1673
1674
|
option: {}
|
|
1674
1675
|
},
|
|
1675
1676
|
setup(r) {
|
|
1676
|
-
const o =
|
|
1677
|
+
const o = O.isFun, u = ye().type;
|
|
1677
1678
|
return (t, i) => {
|
|
1678
1679
|
const l = Q("el-tooltip");
|
|
1679
1680
|
return f(!0), y($, null, L(t.columnList, (e) => (f(), y($, {
|
|
@@ -1687,7 +1688,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1687
1688
|
}, e.table), {
|
|
1688
1689
|
header: m(() => [
|
|
1689
1690
|
k(t.$slots, "table-header-" + e.key, { item: e }, () => [
|
|
1690
|
-
|
|
1691
|
+
U("div", He, [
|
|
1691
1692
|
e.table?.tooltip ? (f(), h(l, {
|
|
1692
1693
|
key: 0,
|
|
1693
1694
|
effect: "dark",
|
|
@@ -1695,13 +1696,13 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1695
1696
|
placement: "top"
|
|
1696
1697
|
}, {
|
|
1697
1698
|
default: m(() => [
|
|
1698
|
-
|
|
1699
|
+
U("span", Je, [
|
|
1699
1700
|
z(Ke)
|
|
1700
1701
|
])
|
|
1701
1702
|
]),
|
|
1702
1703
|
_: 2
|
|
1703
1704
|
}, 1032, ["content"])) : C("", !0),
|
|
1704
|
-
E(" " +
|
|
1705
|
+
E(" " + A(e.label), 1)
|
|
1705
1706
|
])
|
|
1706
1707
|
])
|
|
1707
1708
|
]),
|
|
@@ -1721,7 +1722,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1721
1722
|
}))
|
|
1722
1723
|
]), 1032, ["conf", "columnList", "option"]))
|
|
1723
1724
|
], 64)) : (f(), y($, { key: 1 }, [
|
|
1724
|
-
a(o)(e.show?.form, t.conf.update.form, a(
|
|
1725
|
+
a(o)(e.show?.form, t.conf.update.form, a(O).EDialog.Update) && t.option.table?.inlineEdit && t.conf.inlineEdit.data === s && (e.type === "input" || e.type === "select") ? (f(), y($, { key: 0 }, [
|
|
1725
1726
|
e.type === "input" ? (f(), h(a(Y), v({
|
|
1726
1727
|
key: 0,
|
|
1727
1728
|
modelValue: t.conf.update.form[e.key],
|
|
@@ -1734,7 +1735,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1734
1735
|
ref_for: !0
|
|
1735
1736
|
}, t.conf.update.getBind(e), S(t.conf.update.getOn(e)), { style: { width: "100%" } }), {
|
|
1736
1737
|
default: m(() => [
|
|
1737
|
-
(f(!0), y($, null, L(e.options?.select?.data, (p) => (f(), h(a(K), {
|
|
1738
|
+
(f(!0), y($, null, L(e.options?.search?.select?.data || e.options?.select?.data, (p) => (f(), h(a(K), {
|
|
1738
1739
|
key: p.value,
|
|
1739
1740
|
label: p.label,
|
|
1740
1741
|
value: p.value
|
|
@@ -1794,13 +1795,13 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1794
1795
|
"label-width": o.item.item.form?.labelWidth || o.conf.option.form?.labelWidth
|
|
1795
1796
|
}, {
|
|
1796
1797
|
default: m(() => [
|
|
1797
|
-
|
|
1798
|
+
U("div", Ge, [
|
|
1798
1799
|
k(o.$slots, "form-" + o.item.item.key + "-start", {
|
|
1799
1800
|
row: o.conf.update.form,
|
|
1800
1801
|
item: o.item.item
|
|
1801
1802
|
}),
|
|
1802
|
-
|
|
1803
|
-
|
|
1803
|
+
U("div", Xe, [
|
|
1804
|
+
U("div", Qe, [
|
|
1804
1805
|
k(o.$slots, "form-" + o.item.item.key, {
|
|
1805
1806
|
row: o.conf.update.form,
|
|
1806
1807
|
item: o.item.item
|
|
@@ -1826,7 +1827,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1826
1827
|
style: { width: "100%" }
|
|
1827
1828
|
}), {
|
|
1828
1829
|
default: m(() => [
|
|
1829
|
-
(f(!0), y($, null, L(o.item.item.
|
|
1830
|
+
(f(!0), y($, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(K), {
|
|
1830
1831
|
key: t.value,
|
|
1831
1832
|
label: t.label,
|
|
1832
1833
|
value: t.value
|
|
@@ -1842,7 +1843,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1842
1843
|
style: { width: "100%" }
|
|
1843
1844
|
}), {
|
|
1844
1845
|
default: m(() => [
|
|
1845
|
-
(f(!0), y($, null, L(o.item.item.
|
|
1846
|
+
(f(!0), y($, null, L(o.conf.update.getBind(o.item.item).data, (t) => (f(), h(a(se), {
|
|
1846
1847
|
key: t.value,
|
|
1847
1848
|
label: t.label,
|
|
1848
1849
|
value: t.value
|
|
@@ -1922,7 +1923,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1922
1923
|
}
|
|
1923
1924
|
},
|
|
1924
1925
|
setup(r, { expose: o }) {
|
|
1925
|
-
const u =
|
|
1926
|
+
const u = O.EDialog, t = r, i = O.isFun, { conf: l, switchConfirmRef: e, ruleFormRef: s } = Ae(t);
|
|
1926
1927
|
return o({
|
|
1927
1928
|
conf: l
|
|
1928
1929
|
}), (p, c) => {
|
|
@@ -1930,12 +1931,12 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
1930
1931
|
return f(), y("div", {
|
|
1931
1932
|
class: j(["relative cc1-form-box", [r.option.table?.fitHeight ? "col" : "no-min-height"]])
|
|
1932
1933
|
}, [
|
|
1933
|
-
|
|
1934
|
+
U("div", {
|
|
1934
1935
|
class: j(["row", [r.option.table?.fitHeight ? "absolute fit" : ""]]),
|
|
1935
1936
|
style: { overflow: "hidden" }
|
|
1936
1937
|
}, [
|
|
1937
1938
|
k(p.$slots, "box-left"),
|
|
1938
|
-
|
|
1939
|
+
U("div", {
|
|
1939
1940
|
class: j(["column fit-width no-wrap", [r.option.table?.fitHeight ? "col" : ""]])
|
|
1940
1941
|
}, [
|
|
1941
1942
|
r.option.search?.show !== !1 ? (f(), y("div", xe, [
|
|
@@ -2036,22 +2037,22 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2036
2037
|
}),
|
|
2037
2038
|
r.option.tools?.search || r.option.tools?.reset ? (f(), h(a(X), { key: 0 }, {
|
|
2038
2039
|
default: m(() => [
|
|
2039
|
-
r.option.tools?.search ? (f(), h(a(
|
|
2040
|
+
r.option.tools?.search ? (f(), h(a(T), {
|
|
2040
2041
|
key: 0,
|
|
2041
2042
|
type: "primary",
|
|
2042
2043
|
onClick: a(l).search.submit
|
|
2043
2044
|
}, {
|
|
2044
2045
|
default: m(() => [
|
|
2045
|
-
E(
|
|
2046
|
+
E(A(a(b).tCurd("search")), 1)
|
|
2046
2047
|
]),
|
|
2047
2048
|
_: 1
|
|
2048
2049
|
}, 8, ["onClick"])) : C("", !0),
|
|
2049
|
-
r.option.tools?.reset ? (f(), h(a(
|
|
2050
|
+
r.option.tools?.reset ? (f(), h(a(T), {
|
|
2050
2051
|
key: 1,
|
|
2051
2052
|
onClick: a(l).search.reset
|
|
2052
2053
|
}, {
|
|
2053
2054
|
default: m(() => [
|
|
2054
|
-
E(
|
|
2055
|
+
E(A(a(b).tCurd("reset")), 1)
|
|
2055
2056
|
]),
|
|
2056
2057
|
_: 1
|
|
2057
2058
|
}, 8, ["onClick"])) : C("", !0)
|
|
@@ -2065,40 +2066,40 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2065
2066
|
_: 3
|
|
2066
2067
|
}, 8, ["model", "size"])
|
|
2067
2068
|
])) : C("", !0),
|
|
2068
|
-
|
|
2069
|
-
|
|
2069
|
+
U("div", _e, [
|
|
2070
|
+
U("div", et, [
|
|
2070
2071
|
a(i)(r.option.tools?.add) ? (f(), y("div", tt, [
|
|
2071
|
-
z(a(
|
|
2072
|
+
z(a(T), {
|
|
2072
2073
|
type: "primary",
|
|
2073
2074
|
onClick: c[0] || (c[0] = (n) => a(l).update.open(a(u).Add)),
|
|
2074
2075
|
size: r.option.size?.search
|
|
2075
2076
|
}, {
|
|
2076
2077
|
default: m(() => [
|
|
2077
|
-
E(
|
|
2078
|
+
E(A(a(b).tCurd("add")), 1)
|
|
2078
2079
|
]),
|
|
2079
2080
|
_: 1
|
|
2080
2081
|
}, 8, ["size"])
|
|
2081
2082
|
])) : C("", !0),
|
|
2082
2083
|
r.option.table?.selectable && a(i)(r.option.tools?.delete) ? (f(), y("div", ot, [
|
|
2083
|
-
z(a(
|
|
2084
|
+
z(a(T), {
|
|
2084
2085
|
type: "danger",
|
|
2085
2086
|
onClick: c[1] || (c[1] = (n) => a(l).remove.open(a(l).table.selection.list)),
|
|
2086
2087
|
size: r.option.size?.search
|
|
2087
2088
|
}, {
|
|
2088
2089
|
default: m(() => [
|
|
2089
|
-
E(
|
|
2090
|
+
E(A(a(b).tCurd("delete")), 1)
|
|
2090
2091
|
]),
|
|
2091
2092
|
_: 1
|
|
2092
2093
|
}, 8, ["size"])
|
|
2093
2094
|
])) : C("", !0),
|
|
2094
2095
|
r.option.tools?.expand ? (f(), y("div", at, [
|
|
2095
|
-
z(a(
|
|
2096
|
+
z(a(T), {
|
|
2096
2097
|
type: "warning",
|
|
2097
2098
|
onClick: c[2] || (c[2] = (n) => a(l).table.expand.all()),
|
|
2098
2099
|
size: r.option.size?.search
|
|
2099
2100
|
}, {
|
|
2100
2101
|
default: m(() => [
|
|
2101
|
-
E(
|
|
2102
|
+
E(A(a(b).tCurd("expandCollapse")), 1)
|
|
2102
2103
|
]),
|
|
2103
2104
|
_: 1
|
|
2104
2105
|
}, 8, ["size"])
|
|
@@ -2117,19 +2118,19 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2117
2118
|
command: "select"
|
|
2118
2119
|
}, {
|
|
2119
2120
|
default: m(() => [
|
|
2120
|
-
E(
|
|
2121
|
+
E(A(a(b).tCurd("exportSelect")), 1)
|
|
2121
2122
|
]),
|
|
2122
2123
|
_: 1
|
|
2123
2124
|
})) : C("", !0),
|
|
2124
2125
|
z(a(x), { command: "page" }, {
|
|
2125
2126
|
default: m(() => [
|
|
2126
|
-
E(
|
|
2127
|
+
E(A(a(b).tCurd("exportPage")), 1)
|
|
2127
2128
|
]),
|
|
2128
2129
|
_: 1
|
|
2129
2130
|
}),
|
|
2130
2131
|
z(a(x), { command: "all" }, {
|
|
2131
2132
|
default: m(() => [
|
|
2132
|
-
E(
|
|
2133
|
+
E(A(a(b).tCurd("exportAll")), 1)
|
|
2133
2134
|
]),
|
|
2134
2135
|
_: 1
|
|
2135
2136
|
})
|
|
@@ -2138,14 +2139,14 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2138
2139
|
}, 8, ["size"])
|
|
2139
2140
|
]),
|
|
2140
2141
|
default: m(() => [
|
|
2141
|
-
|
|
2142
|
-
z(a(
|
|
2142
|
+
U("div", lt, [
|
|
2143
|
+
z(a(T), {
|
|
2143
2144
|
type: "warning",
|
|
2144
2145
|
loading: a(l).export.loading,
|
|
2145
2146
|
size: r.option.size?.search
|
|
2146
2147
|
}, {
|
|
2147
2148
|
default: m(() => [
|
|
2148
|
-
E(
|
|
2149
|
+
E(A(a(b).tCurd("export")), 1)
|
|
2149
2150
|
]),
|
|
2150
2151
|
_: 1
|
|
2151
2152
|
}, 8, ["loading", "size"])
|
|
@@ -2155,7 +2156,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2155
2156
|
}, 8, ["onCommand"])) : C("", !0),
|
|
2156
2157
|
k(p.$slots, "tools-left")
|
|
2157
2158
|
]),
|
|
2158
|
-
|
|
2159
|
+
U("div", nt, [
|
|
2159
2160
|
k(p.$slots, "tools-right"),
|
|
2160
2161
|
a(l).page.showTools ? (f(), h(a(ie), v({
|
|
2161
2162
|
key: 0,
|
|
@@ -2182,10 +2183,10 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2182
2183
|
], 2)) : C("", !0)
|
|
2183
2184
|
])
|
|
2184
2185
|
]),
|
|
2185
|
-
|
|
2186
|
+
U("div", {
|
|
2186
2187
|
class: j(["fit-width relative form-box", [r.option.table?.fitHeight ? "col " : ""]])
|
|
2187
2188
|
}, [
|
|
2188
|
-
|
|
2189
|
+
U("div", {
|
|
2189
2190
|
class: j(["column form-box-content", [r.option.table?.fitHeight ? "absolute fit" : ""]])
|
|
2190
2191
|
}, [
|
|
2191
2192
|
ke((f(), h(a(be), v({
|
|
@@ -2226,7 +2227,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2226
2227
|
}, r.option.table?.operate), {
|
|
2227
2228
|
header: m(() => [
|
|
2228
2229
|
k(p.$slots, "table-header-op", {}, () => [
|
|
2229
|
-
E(
|
|
2230
|
+
E(A(a(b).tCurd("operation")), 1)
|
|
2230
2231
|
])
|
|
2231
2232
|
]),
|
|
2232
2233
|
default: m(({ row: n }) => [
|
|
@@ -2236,70 +2237,70 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2236
2237
|
default: m(() => [
|
|
2237
2238
|
k(p.$slots, "table-op-left", { row: n }),
|
|
2238
2239
|
r.option.table?.inlineEdit && a(l).inlineEdit.data === n ? (f(), y($, { key: 0 }, [
|
|
2239
|
-
z(a(
|
|
2240
|
+
z(a(T), {
|
|
2240
2241
|
link: "",
|
|
2241
2242
|
type: "info",
|
|
2242
2243
|
onClick: a(l).inlineEdit.close
|
|
2243
2244
|
}, {
|
|
2244
2245
|
default: m(() => [
|
|
2245
|
-
E(
|
|
2246
|
+
E(A(a(b).tCurd("cancel")), 1)
|
|
2246
2247
|
]),
|
|
2247
2248
|
_: 1
|
|
2248
2249
|
}, 8, ["onClick"]),
|
|
2249
|
-
z(a(
|
|
2250
|
+
z(a(T), {
|
|
2250
2251
|
link: "",
|
|
2251
2252
|
type: "primary",
|
|
2252
2253
|
onClick: a(l).update.submit,
|
|
2253
2254
|
loading: a(l).update.loading
|
|
2254
2255
|
}, {
|
|
2255
2256
|
default: m(() => [
|
|
2256
|
-
E(
|
|
2257
|
+
E(A(a(b).tCurd("confirm")), 1)
|
|
2257
2258
|
]),
|
|
2258
2259
|
_: 1
|
|
2259
2260
|
}, 8, ["onClick", "loading"]),
|
|
2260
2261
|
k(p.$slots, "table-op-edit-right", { row: n })
|
|
2261
2262
|
], 64)) : (f(), y($, { key: 1 }, [
|
|
2262
|
-
a(i)(r.option.table?.add, n) ? (f(), h(a(
|
|
2263
|
+
a(i)(r.option.table?.add, n) ? (f(), h(a(T), {
|
|
2263
2264
|
key: 0,
|
|
2264
2265
|
link: "",
|
|
2265
2266
|
type: "primary",
|
|
2266
2267
|
onClick: (d) => a(l).update.open(a(u).Add, n)
|
|
2267
2268
|
}, {
|
|
2268
2269
|
default: m(() => [
|
|
2269
|
-
E(
|
|
2270
|
+
E(A(a(b).tCurd("add")), 1)
|
|
2270
2271
|
]),
|
|
2271
2272
|
_: 2
|
|
2272
2273
|
}, 1032, ["onClick"])) : C("", !0),
|
|
2273
|
-
a(i)(r.option.table?.view, n) ? (f(), h(a(
|
|
2274
|
+
a(i)(r.option.table?.view, n) ? (f(), h(a(T), {
|
|
2274
2275
|
key: 1,
|
|
2275
2276
|
link: "",
|
|
2276
2277
|
type: "primary",
|
|
2277
2278
|
onClick: (d) => a(l).update.open(a(u).View, n)
|
|
2278
2279
|
}, {
|
|
2279
2280
|
default: m(() => [
|
|
2280
|
-
E(
|
|
2281
|
+
E(A(a(b).tCurd("view")), 1)
|
|
2281
2282
|
]),
|
|
2282
2283
|
_: 2
|
|
2283
2284
|
}, 1032, ["onClick"])) : C("", !0),
|
|
2284
|
-
a(i)(r.option.table?.update, n) ? (f(), h(a(
|
|
2285
|
+
a(i)(r.option.table?.update, n) ? (f(), h(a(T), {
|
|
2285
2286
|
key: 2,
|
|
2286
2287
|
link: "",
|
|
2287
2288
|
type: "warning",
|
|
2288
2289
|
onClick: (d) => a(l).update.open(a(u).Update, n)
|
|
2289
2290
|
}, {
|
|
2290
2291
|
default: m(() => [
|
|
2291
|
-
E(
|
|
2292
|
+
E(A(a(b).tCurd("edit")), 1)
|
|
2292
2293
|
]),
|
|
2293
2294
|
_: 2
|
|
2294
2295
|
}, 1032, ["onClick"])) : C("", !0),
|
|
2295
|
-
a(i)(r.option.table?.delete, n) ? (f(), h(a(
|
|
2296
|
+
a(i)(r.option.table?.delete, n) ? (f(), h(a(T), {
|
|
2296
2297
|
key: 3,
|
|
2297
2298
|
link: "",
|
|
2298
2299
|
type: "danger",
|
|
2299
2300
|
onClick: (d) => a(l).remove.open([n])
|
|
2300
2301
|
}, {
|
|
2301
2302
|
default: m(() => [
|
|
2302
|
-
E(
|
|
2303
|
+
E(A(a(b).tCurd("delete")), 1)
|
|
2303
2304
|
]),
|
|
2304
2305
|
_: 2
|
|
2305
2306
|
}, 1032, ["onClick"])) : C("", !0),
|
|
@@ -2318,7 +2319,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2318
2319
|
])
|
|
2319
2320
|
], 2)
|
|
2320
2321
|
], 2),
|
|
2321
|
-
|
|
2322
|
+
U("div", it, [
|
|
2322
2323
|
(r.option.page?.show === void 0 || r.option.page?.show) && !a(l).page.showTools ? (f(), h(a(ie), v({
|
|
2323
2324
|
key: 0,
|
|
2324
2325
|
"current-page": a(l).page.num,
|
|
@@ -2345,27 +2346,27 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2345
2346
|
"before-close": a(l).update.close
|
|
2346
2347
|
}, r.option.dialog), {
|
|
2347
2348
|
footer: m(() => [
|
|
2348
|
-
|
|
2349
|
+
U("span", rt, [
|
|
2349
2350
|
z(a(N), {
|
|
2350
2351
|
size: r.option.size?.form
|
|
2351
2352
|
}, {
|
|
2352
2353
|
default: m(() => [
|
|
2353
|
-
z(a(
|
|
2354
|
+
z(a(T), {
|
|
2354
2355
|
onClick: a(l).update.close
|
|
2355
2356
|
}, {
|
|
2356
2357
|
default: m(() => [
|
|
2357
|
-
E(
|
|
2358
|
+
E(A(a(b).tCurd("close")), 1)
|
|
2358
2359
|
]),
|
|
2359
2360
|
_: 1
|
|
2360
2361
|
}, 8, ["onClick"]),
|
|
2361
|
-
a(l).update.type !== a(u).View ? (f(), h(a(
|
|
2362
|
+
a(l).update.type !== a(u).View ? (f(), h(a(T), {
|
|
2362
2363
|
key: 0,
|
|
2363
2364
|
type: "primary",
|
|
2364
2365
|
onClick: a(l).update.submit,
|
|
2365
2366
|
loading: a(l).update.loading
|
|
2366
2367
|
}, {
|
|
2367
2368
|
default: m(() => [
|
|
2368
|
-
E(
|
|
2369
|
+
E(A(a(b).tCurd("submit")), 1)
|
|
2369
2370
|
]),
|
|
2370
2371
|
_: 1
|
|
2371
2372
|
}, 8, ["onClick", "loading"])) : C("", !0)
|
|
@@ -2439,26 +2440,26 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2439
2440
|
"close-on-click-modal": !1
|
|
2440
2441
|
}, {
|
|
2441
2442
|
footer: m(() => [
|
|
2442
|
-
|
|
2443
|
+
U("span", st, [
|
|
2443
2444
|
z(a(N), {
|
|
2444
2445
|
size: r.option.size?.form
|
|
2445
2446
|
}, {
|
|
2446
2447
|
default: m(() => [
|
|
2447
|
-
z(a(
|
|
2448
|
+
z(a(T), {
|
|
2448
2449
|
onClick: a(l).remove.close
|
|
2449
2450
|
}, {
|
|
2450
2451
|
default: m(() => [
|
|
2451
|
-
E(
|
|
2452
|
+
E(A(a(b).tCurd("close")), 1)
|
|
2452
2453
|
]),
|
|
2453
2454
|
_: 1
|
|
2454
2455
|
}, 8, ["onClick"]),
|
|
2455
|
-
z(a(
|
|
2456
|
+
z(a(T), {
|
|
2456
2457
|
type: "danger",
|
|
2457
2458
|
onClick: a(l).remove.submit,
|
|
2458
2459
|
loading: a(l).remove.loading
|
|
2459
2460
|
}, {
|
|
2460
2461
|
default: m(() => [
|
|
2461
|
-
E(
|
|
2462
|
+
E(A(a(b).tCurd("confirmDelete")), 1)
|
|
2462
2463
|
]),
|
|
2463
2464
|
_: 1
|
|
2464
2465
|
}, 8, ["onClick", "loading"])
|
|
@@ -2468,7 +2469,7 @@ const Ke = /* @__PURE__ */ pe(Re, [["render", Ne]]), He = { class: "row flex-cen
|
|
|
2468
2469
|
])
|
|
2469
2470
|
]),
|
|
2470
2471
|
default: m(() => [
|
|
2471
|
-
|
|
2472
|
+
U("div", null, A(a(b).tCurd("confirmDeleteMessage", a(l).remove.items.length)), 1)
|
|
2472
2473
|
]),
|
|
2473
2474
|
_: 1
|
|
2474
2475
|
}, 8, ["modelValue", "title"]),
|
|
@@ -2513,7 +2514,7 @@ class mt {
|
|
|
2513
2514
|
i.accept = l, i.style.display = "none", i.onchange = (e) => {
|
|
2514
2515
|
const s = e.target.files[0];
|
|
2515
2516
|
if (!s) {
|
|
2516
|
-
|
|
2517
|
+
O.fail("未选择文件"), t("未选择文件");
|
|
2517
2518
|
return;
|
|
2518
2519
|
}
|
|
2519
2520
|
const p = new FileReader();
|
|
@@ -2521,13 +2522,13 @@ class mt {
|
|
|
2521
2522
|
const g = l == ".json" ? JSON.parse(c.target.result) : c.target.result;
|
|
2522
2523
|
u(g);
|
|
2523
2524
|
}, p.onerror = () => {
|
|
2524
|
-
|
|
2525
|
+
O.fail("文件读取失败"), t("文件读取失败");
|
|
2525
2526
|
}, p.readAsText(s), document.body.removeChild(i);
|
|
2526
2527
|
}, document.body.appendChild(i), i.click();
|
|
2527
2528
|
});
|
|
2528
2529
|
}
|
|
2529
2530
|
const ut = (r, o) => {
|
|
2530
|
-
if (r.component("TCurd", dt), r.component("TFormList", ne), r.component("TColumn",
|
|
2531
|
+
if (r.component("TCurd", dt), r.component("TFormList", ne), r.component("TColumn", Oe), o?.customComponent) {
|
|
2531
2532
|
M.customComponent = o.customComponent;
|
|
2532
2533
|
for (const u in o.customComponent)
|
|
2533
2534
|
r.component(u, o.customComponent[u]);
|
|
@@ -2538,14 +2539,14 @@ const ut = (r, o) => {
|
|
|
2538
2539
|
export {
|
|
2539
2540
|
P as ArrUtil,
|
|
2540
2541
|
Fe as ExcelUtil,
|
|
2541
|
-
|
|
2542
|
+
Oe as TColumn,
|
|
2542
2543
|
dt as TCurd,
|
|
2543
2544
|
mt as TFile,
|
|
2544
2545
|
M as TForm,
|
|
2545
2546
|
D as TFormConfig,
|
|
2546
2547
|
b as TFormI18n,
|
|
2547
2548
|
ne as TFormList,
|
|
2548
|
-
|
|
2549
|
+
O as TSys,
|
|
2549
2550
|
ht as default,
|
|
2550
2551
|
ut as install
|
|
2551
2552
|
};
|