halo-pc 1.0.40 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CqtkXVmQ.js → Article-BMW_FzdK.js} +32 -31
- package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-7iPkMQaX.js} +13 -12
- package/dist/Autocomplete-B6Mwp9rT.js +50 -0
- package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-C-El55Lz.js} +1 -1
- package/dist/{Autocomplete-LQiKcvz1.js → Autocomplete-PZTjEBIx.js} +11 -10
- package/dist/{CSharp-BIFRQLaK.js → CSharp-BQUrQwua.js} +1 -1
- package/dist/{Calender-DPNTn-S4.js → Calender-CJXR7uhM.js} +2 -2
- package/dist/Callback-CyDW9WU2.js +21 -0
- package/dist/{Cascader-Vhc81TDV.js → Cascader-CFc_8QSm.js} +18 -17
- package/dist/Cascader-DMQjalNv.js +47 -0
- package/dist/{Checkbox-D9Sp6ZGQ.js → Checkbox-aU8e779g.js} +12 -11
- package/dist/{Checkbox-CIim5NiB.js → Checkbox-pV01os-T.js} +1 -1
- package/dist/Code-C0Kxulod.js +4 -0
- package/dist/Code-C4pIa8BE.js +60 -0
- package/dist/Code-CCJx9RSm.js +42 -0
- package/dist/{Code-yDKaH1uF.js → Code-kDBbVC1W.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-36NN7tgP.js +65 -0
- package/dist/Column-BebDf5Z9.js +75 -0
- package/dist/{Comment-tU2wBvGO.js → Comment-BgfD9WtL.js} +25 -19
- package/dist/{Compare-DqvGyQWA.js → Compare-BZucuvFP.js} +9 -8
- package/dist/{Compare-D7Gz-lE9.js → Compare-D-Byn_Gq.js} +11 -10
- package/dist/Copy-DW4jSNQi.js +44 -0
- package/dist/Custom-DIF-RYi3.js +55 -0
- package/dist/{DataExport-BDftKI0U.js → DataExport-CyQy2xjO.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +28 -27
- package/dist/{DataImport-CRYaaQfA.js → DataImport-BVF83UsQ.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +31 -30
- package/dist/{Date-Dlh1_S7p.js → Date-CqpFvbYZ.js} +1 -1
- package/dist/{Date-DPPiYLWw.js → Date-g1XKWU4b.js} +8 -7
- package/dist/{DateRange-BgF_T3ls.js → DateRange-B2afkdbT.js} +6 -5
- package/dist/{DateTime-DP-VfmtN.js → DateTime-D_x_wBZR.js} +8 -7
- package/dist/{DateTime-CNjPeK9t.js → DateTime-Zi3vtH77.js} +1 -1
- package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BFWM_U7H.js} +10 -9
- package/dist/{Daterange-DHVjhrK9.js → Daterange-tXA0b0Ak.js} +5 -4
- package/dist/{Decimal-BDEWVSsK.js → Decimal-DKQ38XS_.js} +1 -1
- package/dist/{Delete-Bl0GmthL.js → Delete-BOkBpAGN.js} +20 -19
- package/dist/{Detail-BozyhOTt.js → Detail-SWgERqKG.js} +11 -10
- package/dist/{Dictionary-CJwZPQz6.js → Dictionary-Xsj_Qorw.js} +15 -9
- package/dist/{Email-D5X1SzuJ.js → Email-DILPnLkb.js} +12 -11
- package/dist/{File-DixK0K7p.js → File-BDUTK7hV.js} +40 -39
- package/dist/Image-Yx3ZHHJK.js +9 -0
- package/dist/Index-BTa4YIN9.js +174 -0
- package/dist/Index-BWukqxQl.js +4 -0
- package/dist/Index-BahY1OIJ.js +4 -0
- package/dist/Index-C9ffFYsl.js +4 -0
- package/dist/{Index-j15c7lwJ.js → Index-CiQQmYeA.js} +1 -1
- package/dist/Index-DG7Hovsx.js +4 -0
- package/dist/{Index-D2FOeoNQ.js → Index-DeYqTT9Q.js} +1 -1
- package/dist/{Index-DbXgnBz6.js → Index-WVLyjyqt.js} +16 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +13 -12
- package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js} +21 -15
- package/dist/{Install-WR3b4IfI.js → Install-DW5uDsXF.js} +14 -13
- package/dist/{Int-GGWiUqO2.js → Int-BM4sbZvh.js} +14 -13
- package/dist/{Int-CWsDtoxE.js → Int-BrFE_Hmm.js} +10 -9
- package/dist/List-DWjTqrJR.js +72 -0
- package/dist/Maintaince-DF3nu9Jd.js +20 -0
- package/dist/{Markdown-nVfQs7kc.js → Markdown-BC8l7O_U.js} +1 -1
- package/dist/{Month-CxKMP4kO.js → Month-DRa9o-WC.js} +1 -1
- package/dist/{Month-DnYlAi7k.js → Month-QG6OiiLU.js} +11 -10
- package/dist/Month-Y0kLXgV7.js +38 -0
- package/dist/{Normal-RcqEyIFN.js → Normal-CSy3DFPH.js} +50 -49
- package/dist/{Paging-DrdGzxeP.js → Paging-BYccIXmC.js} +43 -42
- package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-U-oJ1TQE.js} +16 -15
- package/dist/{PagingRow-oQWCofO4.js → PagingRow-BmokRXX3.js} +14 -13
- package/dist/{Racebar-CvoF2ySW.js → Racebar-BvFHNGb8.js} +28 -22
- package/dist/{Radio-DhjfkC14.js → Radio-CjfXrTOE.js} +1 -1
- package/dist/{Register-B0Vx60wY.js → Register-BG-3_Q2E.js} +55 -54
- package/dist/RichText-C88f59ao.js +47 -0
- package/dist/{SearchForm-BHVnQaSL.js → SearchForm-C0zqD7UP.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +46 -45
- package/dist/{SearchHeader-C9yovXli.js → SearchHeader-e2LOidgU.js} +1 -1
- package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js} +1 -1
- package/dist/{Select-vgwpegBi.js → Select-CfIvGDPS.js} +21 -20
- package/dist/{Select-CX4i5KPQ.js → Select-CvP_zGxM.js} +1 -1
- package/dist/{Select-BDoCqD3I.js → Select-Cz6MPDCC.js} +11 -10
- package/dist/{Single-C3629BdC.js → Single-p-8OfzhQ.js} +101 -100
- package/dist/{Statistic-WPezAlUn.js → Statistic-BIKfbZCI.js} +32 -31
- package/dist/{Stock-EPM3j2f_.js → Stock-B7RP-SuF.js} +1 -1
- package/dist/{Stock-BD5Acf8y.js → Stock-BhOP8J0c.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +20 -19
- package/dist/{Switch-B0XN4K-9.js → Switch-BcDhe4_E.js} +1 -1
- package/dist/{Table-BklK1hSh.js → Table-Cy7FarYr.js} +71 -70
- package/dist/{Table-JFdOXuME.js → Table-DK-TaejU.js} +58 -57
- package/dist/Text-B580p9od.js +49 -0
- package/dist/Text-D89aQLxL.js +4 -0
- package/dist/{Text-DrJkdxZF.js → Text-YNB0It4-.js} +13 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js +59 -0
- package/dist/{TextLink-BnijIoEJ.js → TextLink-CI-AIgdm.js} +9 -8
- package/dist/{Textarea-3SWLqQvO.js → Textarea-86C9lCtg.js} +1 -1
- package/dist/{Time-C3qlNZkJ.js → Time-BgArfSc6.js} +10 -9
- package/dist/{Timeline-B6hUIYhL.js → Timeline-O_jWjdxT.js} +19 -13
- package/dist/{Tree-JexLPBXX.js → Tree-BfFRW-xZ.js} +41 -35
- package/dist/{Tree-DBvFF4Rj.js → Tree-DayADkaC.js} +73 -72
- package/dist/{TreeNode-BOWB2WN9.js → TreeNode-BZp8w6M5.js} +10 -9
- package/dist/{Update-CDLYYwgj.js → Update-Bcdz87R4.js} +6 -5
- package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-YzPMnj_r.js} +20 -19
- package/dist/{Upload-B2hbxDsT.js → Upload-DU5VOqXj.js} +47 -46
- package/dist/Upload-Dj5nSsug.js +71 -0
- package/dist/{Year-BUF60NmB.js → Year-B3E0kOiA.js} +8 -7
- package/dist/{Year-BRsJ7b1J.js → Year-CcbzIuwy.js} +1 -1
- package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-DxH9UW19.js +10723 -0
- package/dist/main.js +60 -59
- package/dist/style.css +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +0 -49
- package/dist/Callback-Ci5KrWOC.js +0 -20
- package/dist/Cascader-CnOEgPDf.js +0 -41
- package/dist/Code-BEjqqeFZ.js +0 -54
- package/dist/Code-BSrEPuXk.js +0 -4
- package/dist/Code-Dp1-k8sW.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
- package/dist/Column-B0ViSver.js +0 -69
- package/dist/Copy-Dm1LH9qB.js +0 -43
- package/dist/Custom-CLKAPWEo.js +0 -49
- package/dist/Image-BrelhCGo.js +0 -9
- package/dist/Index-BeM6hKX9.js +0 -4
- package/dist/Index-BkfLyqpm.js +0 -173
- package/dist/Index-D8UVsXwf.js +0 -4
- package/dist/Index-FL-dxfFB.js +0 -4
- package/dist/Index-fWOqfFkG.js +0 -4
- package/dist/List-kRCsHp6d.js +0 -71
- package/dist/Maintaince-BG8MUi3A.js +0 -14
- package/dist/Month-B1icZmL4.js +0 -37
- package/dist/RichText-4wrLw9cy.js +0 -41
- package/dist/Text-CNtHdodK.js +0 -4
- package/dist/Text-KAuEjP7I.js +0 -48
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
- package/dist/Upload-mlk6Y4Po.js +0 -65
- package/dist/main-DymfKjqO.js +0 -16480
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import { _ as
|
5
|
-
import { _ as
|
1
|
+
import { defineComponent as He, toRefs as Ee, ref as u, onMounted as Le, nextTick as j, computed as oe, resolveComponent as k, openBlock as f, createElementBlock as U, createVNode as v, unref as e, isRef as x, normalizeClass as Ne, withCtx as h, createTextVNode as ne, toDisplayString as S, Fragment as Ke, renderList as Me, createBlock as z, createCommentVNode as $, createElementVNode as T, resolveDynamicComponent as je } from "vue";
|
2
|
+
import { U as b, f as Ae, I as Pe, t as A, j as qe, k as Ie, w as Oe, J as Fe, L as re, b as Je, S as Ge, h as Qe, a as Xe, c as Ye, m as P } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
import { _ as Ze } from "./SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js";
|
5
|
+
import { _ as et } from "./DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js";
|
6
|
+
import { _ as tt } from "./DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js";
|
6
7
|
import "vue-router";
|
7
8
|
import "./assets/intro.js-Cg1adLK7.js";
|
8
|
-
import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-
|
9
|
+
import { _ as at } from "./SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js";
|
9
10
|
const lt = {
|
10
11
|
key: 0,
|
11
12
|
class: "required"
|
12
|
-
}, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"],
|
13
|
+
}, ot = ["onMouseenter"], nt = { class: "el-drawer__title" }, rt = { key: 0 }, st = ["href"], yt = /* @__PURE__ */ He({
|
13
14
|
__name: "Table",
|
14
15
|
props: {
|
15
16
|
searchData: {},
|
@@ -24,20 +25,20 @@ const lt = {
|
|
24
25
|
},
|
25
26
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
26
27
|
setup(se, { expose: ue, emit: ie }) {
|
27
|
-
let w = ie, de = se, { url: pe, win: me, module: q, schema:
|
28
|
+
let w = ie, de = se, { url: pe, win: me, module: q, schema: D, table: r, layout: i, next: p, set: C, searchData: I } = Ee(de), H = u([]), V = u(), E = u(), L = u(), N = u(), O = u(), F = u(), m = u(!1), g = u(!1), J = u(), G = u("120px"), Q = u({}), y = u({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), W = u(), n = u({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), ge = new Ge(), ce = (t) => {
|
28
29
|
R("insert", null, t);
|
29
30
|
}, ve = (t, a) => {
|
30
31
|
R("detail", t, a);
|
31
|
-
}, he = (t, a) => {
|
32
|
-
R("update", t, a);
|
33
32
|
}, fe = (t, a) => {
|
33
|
+
R("update", t, a);
|
34
|
+
}, he = (t, a) => {
|
34
35
|
R("copy", t, a);
|
35
36
|
}, ye = (t, a) => {
|
36
37
|
R("delete", t, a);
|
37
38
|
}, X = async (t) => {
|
38
39
|
let a = t.map((o) => o[r.value.key.name]);
|
39
40
|
await Qe.post(p.value.delete.route, a).then((o) => {
|
40
|
-
Xe.success(o.message),
|
41
|
+
Xe.success(o.message), K();
|
41
42
|
});
|
42
43
|
}, R = (t, a, o) => {
|
43
44
|
let s = we(t, a);
|
@@ -53,14 +54,14 @@ const lt = {
|
|
53
54
|
n.value.visible = !1, w("close");
|
54
55
|
}, _e = (t) => {
|
55
56
|
n.value.title = Ye(t.module.type, t.module.name), n.value.env = t.module.env;
|
56
|
-
},
|
57
|
+
}, K = () => {
|
57
58
|
n.value.visible = !1;
|
58
|
-
let t =
|
59
|
+
let t = H.value;
|
59
60
|
w("succeed", async (a) => {
|
60
61
|
let o = a.data.set[r.value.name];
|
61
62
|
if (!o.length)
|
62
63
|
return;
|
63
|
-
await
|
64
|
+
await j();
|
64
65
|
let s = r.value.key, c = n.value.row;
|
65
66
|
if (c != null) {
|
66
67
|
let d = o.find((_) => _[s.name] == c[s.name]);
|
@@ -83,9 +84,9 @@ const lt = {
|
|
83
84
|
w("sort", o);
|
84
85
|
}, ke = (t, a, o, s, c) => {
|
85
86
|
}, Se = (t) => {
|
86
|
-
|
87
|
+
G.value = t;
|
87
88
|
}, ze = (t, a) => {
|
88
|
-
|
89
|
+
H.value = t;
|
89
90
|
}, $e = (t, a, o) => {
|
90
91
|
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
91
92
|
o._headerTooltip = c > d;
|
@@ -93,59 +94,59 @@ const lt = {
|
|
93
94
|
await re.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
94
95
|
}, Z = () => {
|
95
96
|
var s, c, d;
|
96
|
-
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s =
|
97
|
-
|
97
|
+
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = N.value) == null ? void 0 : c.$el, (d = O.value) == null ? void 0 : d.$el]), o = t - a;
|
98
|
+
J.value = `${o}px`;
|
98
99
|
}, ee = () => {
|
99
100
|
let t = W.value;
|
100
101
|
t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "sizes, total, prev, pager, next, jumper";
|
101
102
|
}, We = (t, a) => {
|
102
|
-
|
103
|
+
P.triggerKeyboard(F.value, t, a);
|
103
104
|
}, Be = (t) => {
|
104
|
-
|
105
|
-
},
|
106
|
-
|
105
|
+
P.triggerSocket(N.value, t);
|
106
|
+
}, Ue = (t) => {
|
107
|
+
P.triggerResize(L.value, t), W.value = b.dom.getWidth(V.value), ee(), j(() => {
|
107
108
|
Z();
|
108
109
|
});
|
109
110
|
};
|
110
|
-
|
111
|
-
await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await
|
111
|
+
Le(async () => {
|
112
|
+
await ge.openAsync("sys", "page", Q.value), W.value = b.dom.getWidth(V.value), ee(), await j(), Z();
|
112
113
|
});
|
113
114
|
let Te = oe(() => {
|
114
115
|
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
115
116
|
return { prop: a, order: o ? "ascending" : "descending" };
|
116
|
-
}),
|
117
|
+
}), De = oe(() => {
|
117
118
|
let t = `/${r.value.name}/paging-row`;
|
118
|
-
return
|
119
|
+
return Ae.getComponent(t, "partial", "paging-row");
|
119
120
|
});
|
120
|
-
return ue({ onKeyboard: We, onSocket: Be, onResize:
|
121
|
+
return ue({ onKeyboard: We, onSocket: Be, onResize: Ue }), (t, a) => {
|
121
122
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
122
|
-
return
|
123
|
+
return f(), U("div", {
|
123
124
|
ref_key: "pagingRef",
|
124
125
|
ref: V,
|
125
126
|
class: "paging-table"
|
126
127
|
}, [
|
127
128
|
v(Ze, {
|
128
129
|
ref_key: "searchRef",
|
129
|
-
ref:
|
130
|
-
schema: e(
|
130
|
+
ref: L,
|
131
|
+
schema: e(D),
|
131
132
|
table: e(r),
|
132
133
|
layout: e(i),
|
133
|
-
"search-data": e(
|
134
|
+
"search-data": e(I),
|
134
135
|
onSubmit: e(Y)
|
135
136
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
136
137
|
v(at, {
|
137
138
|
ref_key: "headerRef",
|
138
|
-
ref:
|
139
|
+
ref: N,
|
139
140
|
url: e(pe),
|
140
141
|
win: e(me),
|
141
142
|
module: e(q),
|
142
|
-
schema: e(
|
143
|
+
schema: e(D),
|
143
144
|
table: e(r),
|
144
145
|
layout: e(i),
|
145
146
|
set: e(C),
|
146
147
|
next: e(p),
|
147
|
-
selection: e(
|
148
|
-
"search-data": e(
|
148
|
+
selection: e(H),
|
149
|
+
"search-data": e(I),
|
149
150
|
onAdd: e(ce),
|
150
151
|
onRemove: e(X),
|
151
152
|
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
@@ -155,28 +156,28 @@ const lt = {
|
|
155
156
|
v(c, {
|
156
157
|
ref_key: "tableRef",
|
157
158
|
ref: E,
|
158
|
-
class:
|
159
|
+
class: Ne([{ "hide-nav": e(Pe).hideNav }, "table-default table-paging"]),
|
159
160
|
size: "small",
|
160
161
|
border: "",
|
161
162
|
"highlight-current-row": "",
|
162
|
-
"max-height": e(
|
163
|
+
"max-height": e(J),
|
163
164
|
data: e(C)[e(r).name],
|
164
165
|
"default-sort": e(Te),
|
165
166
|
onSelectionChange: a[2] || (a[2] = (l) => e(ze)(l, e(r))),
|
166
167
|
onSortChange: a[3] || (a[3] = (l) => e(Re)(l, e(r))),
|
167
168
|
onHeaderDragend: e(Ve)
|
168
169
|
}, {
|
169
|
-
empty:
|
170
|
-
ne(S(e(
|
170
|
+
empty: h(() => [
|
171
|
+
ne(S(e(A)("common.no_data")), 1)
|
171
172
|
]),
|
172
|
-
default:
|
173
|
+
default: h(() => [
|
173
174
|
v(o, {
|
174
175
|
type: "selection",
|
175
176
|
width: "30"
|
176
177
|
}),
|
177
|
-
(
|
178
|
+
(f(!0), U(Ke, null, Me(e(r).show, (l, ut) => {
|
178
179
|
var te, ae, le;
|
179
|
-
return
|
180
|
+
return f(), z(o, {
|
180
181
|
sortable: e(r) ? "custom" : !1,
|
181
182
|
prop: l.name,
|
182
183
|
"sort-orders": ["descending", "ascending"],
|
@@ -185,31 +186,31 @@ const lt = {
|
|
185
186
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
186
187
|
key: `${e(r).name}.${l.name}`
|
187
188
|
}, {
|
188
|
-
header:
|
189
|
-
l.control.required && l.control.editable ? (
|
189
|
+
header: h((B) => [
|
190
|
+
l.control.required && l.control.editable ? (f(), U("i", lt)) : $("", !0),
|
190
191
|
v(s, {
|
191
192
|
placement: "top",
|
192
193
|
content: l.label,
|
193
194
|
disabled: !l._headerTooltip
|
194
195
|
}, {
|
195
|
-
default:
|
196
|
+
default: h(() => [
|
196
197
|
T("span", {
|
197
198
|
onMouseenter: (M) => e($e)(M, B.column, l)
|
198
199
|
}, [
|
199
|
-
T("span", null, S(e(
|
200
|
+
T("span", null, S(e(qe)(e(r).name, l.name)), 1)
|
200
201
|
], 40, ot)
|
201
202
|
]),
|
202
203
|
_: 2
|
203
204
|
}, 1032, ["content", "disabled"])
|
204
205
|
]),
|
205
|
-
default:
|
206
|
-
v(
|
207
|
-
schema: e(
|
206
|
+
default: h((B) => [
|
207
|
+
v(Ie, {
|
208
|
+
schema: e(D),
|
208
209
|
table: e(r),
|
209
210
|
field: l,
|
210
211
|
set: e(C),
|
211
212
|
row: B.row,
|
212
|
-
config: e(
|
213
|
+
config: e(Oe).getConfig(l, e(q).type, e(i).type),
|
213
214
|
onChange: (M) => e(ke)(M, e(r), l, e(C), B.row)
|
214
215
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
216
|
]),
|
@@ -217,20 +218,20 @@ const lt = {
|
|
217
218
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
218
219
|
}), 128)),
|
219
220
|
v(o, {
|
220
|
-
label: e(
|
221
|
+
label: e(A)("common.operation"),
|
221
222
|
fixed: "right",
|
222
223
|
"show-overflow-tooltip": "",
|
223
|
-
"min-width": e(
|
224
|
+
"min-width": e(G)
|
224
225
|
}, {
|
225
|
-
default:
|
226
|
-
(
|
226
|
+
default: h((l) => [
|
227
|
+
(f(), z(je(e(De)), {
|
227
228
|
table: e(r),
|
228
229
|
next: e(p),
|
229
230
|
set: e(C),
|
230
231
|
row: l.row,
|
231
232
|
onPreview: e(ve),
|
232
|
-
onEdit: e(
|
233
|
-
onCopy: e(
|
233
|
+
onEdit: e(fe),
|
234
|
+
onCopy: e(he),
|
234
235
|
onBeforeRemove: e(ye),
|
235
236
|
onRemove: e(X),
|
236
237
|
onChangeWidth: e(Se)
|
@@ -241,12 +242,12 @@ const lt = {
|
|
241
242
|
]),
|
242
243
|
_: 1
|
243
244
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
244
|
-
v(e(
|
245
|
+
v(e(Fe), {
|
245
246
|
ref_key: "footerRef",
|
246
|
-
ref:
|
247
|
+
ref: O,
|
247
248
|
class: "list-toolbar"
|
248
249
|
}, {
|
249
|
-
default:
|
250
|
+
default: h(() => [
|
250
251
|
v(d, {
|
251
252
|
background: "",
|
252
253
|
layout: e(y).layout,
|
@@ -262,15 +263,15 @@ const lt = {
|
|
262
263
|
]),
|
263
264
|
_: 1
|
264
265
|
}, 512),
|
265
|
-
e(p).import ? (
|
266
|
+
e(p).import ? (f(), z(et, {
|
266
267
|
key: 0,
|
267
268
|
next: e(p),
|
268
269
|
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
269
|
-
onSucceed: e(
|
270
|
+
onSucceed: e(K),
|
270
271
|
modelValue: e(m),
|
271
272
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
272
273
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
273
|
-
e(p).export ? (
|
274
|
+
e(p).export ? (f(), z(tt, {
|
274
275
|
key: 1,
|
275
276
|
route: e(p).export.route,
|
276
277
|
"page-count": e(b).math.pageCount(e(i).count, e(i).size),
|
@@ -278,7 +279,7 @@ const lt = {
|
|
278
279
|
modelValue: e(g),
|
279
280
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
280
281
|
}, null, 8, ["route", "page-count", "modelValue"])) : $("", !0),
|
281
|
-
e(n).page ? (
|
282
|
+
e(n).page ? (f(), z(_, {
|
282
283
|
key: 2,
|
283
284
|
"destroy-on-close": "",
|
284
285
|
"append-to-body": e(n).appendToBody,
|
@@ -286,23 +287,23 @@ const lt = {
|
|
286
287
|
modelValue: e(n).visible,
|
287
288
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
288
289
|
}, {
|
289
|
-
header:
|
290
|
+
header: h(() => [
|
290
291
|
T("div", nt, [
|
291
292
|
ne(S(e(n).title) + " ", 1),
|
292
|
-
e(n).env ? (
|
293
|
+
e(n).env ? (f(), U("span", rt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
|
293
294
|
T("a", {
|
294
295
|
class: "drawer-copy",
|
295
296
|
href: e(b).url.getToUrl(e(n).url)
|
296
|
-
}, S(e(
|
297
|
+
}, S(e(A)("common.link")), 9, st)
|
297
298
|
])
|
298
299
|
]),
|
299
|
-
default:
|
300
|
+
default: h(() => [
|
300
301
|
v(e(Je), {
|
301
302
|
ref_key: "pageRef",
|
302
|
-
ref:
|
303
|
+
ref: F,
|
303
304
|
url: e(n).url,
|
304
305
|
onLoaded: e(_e),
|
305
|
-
onSucceed: e(
|
306
|
+
onSucceed: e(K),
|
306
307
|
onClose: e(be)
|
307
308
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
308
309
|
]),
|
@@ -313,5 +314,5 @@ const lt = {
|
|
313
314
|
}
|
314
315
|
});
|
315
316
|
export {
|
316
|
-
|
317
|
+
yt as default
|
317
318
|
};
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as be, defineAsyncComponent as Ce, toRefs as Re, ref as c, onMounted as ke, computed as K, watch as Se, resolveComponent as b, openBlock as v, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as be, defineAsyncComponent as Ce, toRefs as Re, ref as c, onMounted as ke, computed as K, watch as Se, resolveComponent as b, openBlock as v, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as g, createTextVNode as $e, toDisplayString as N, createBlock as F, createCommentVNode as D, renderList as ze, createElementVNode as C, normalizeStyle as Fe, resolveDynamicComponent as De, nextTick as X } from "vue";
|
2
|
+
import { U as d, f as He, t as Be, j as Ie, w as Y, d as T, S as Ne, L as Te, N as U } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const Ue = {
|
4
5
|
key: 0,
|
5
6
|
class: "required"
|
6
|
-
},
|
7
|
+
}, We = ["onMouseenter"], qe = { class: "footer-left" }, Ae = { class: "footer-right" }, Oe = /* @__PURE__ */ be({
|
7
8
|
__name: "Table",
|
8
9
|
props: {
|
9
10
|
route: {},
|
@@ -19,7 +20,7 @@ const qe = {
|
|
19
20
|
},
|
20
21
|
emits: ["submit", "change", "row-edit"],
|
21
22
|
setup(Z, { expose: ee, emit: te }) {
|
22
|
-
let le = Ce(() => import("./Index-
|
23
|
+
let le = Ce(() => import("./Index-BWukqxQl.js")), H = te, ae = Z, { schema: W, table: l, layout: m, set: s, next: Ee, route: q, module: k, validateErrors: A } = Re(ae), w = c({ page: 1 }), E = c({}), p = c([]), oe = c(!0), S = c(), M = c(), V = c(), j = c(), h = c({ layout: "prev, pager, next", count: 5 }), ne = new Ne(), re = (t, a, n) => {
|
23
24
|
H("row-edit", t, l.value, n);
|
24
25
|
}, ue = (t) => {
|
25
26
|
H("submit", t);
|
@@ -31,43 +32,43 @@ const qe = {
|
|
31
32
|
u._headerWidth = n;
|
32
33
|
}, de = (t, a, n, u, o) => {
|
33
34
|
H("change", t, a, n, u, o);
|
34
|
-
},
|
35
|
+
}, O = (t) => s.value[l.value.name].indexOf(t), me = (t) => {
|
35
36
|
p.value = t;
|
36
37
|
}, pe = async (t, a, n, u, o) => {
|
37
|
-
await
|
38
|
+
await Te.setColumnWidth(q.value, o.name, n.property, t);
|
38
39
|
}, ce = (t) => {
|
39
40
|
L(t.contentRect.width), X(() => {
|
40
|
-
|
41
|
+
P(t.contentRect.height);
|
41
42
|
});
|
42
43
|
}, L = (t = null) => {
|
43
44
|
let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
|
44
|
-
t == null && (t = d.dom.getWidth(a)), t <= 690 ?
|
45
|
-
},
|
45
|
+
t == null && (t = d.dom.getWidth(a)), t <= 690 ? h.value.count = 5 : h.value.count = 7, t <= 300 ? h.value.layout = "pager" : t <= 620 ? h.value.layout = "prev, pager, next" : h.value.layout = "total, prev, pager, next, jumper";
|
46
|
+
}, P = (t = null) => {
|
46
47
|
let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
|
47
48
|
t || (t = d.dom.getHeight(a));
|
48
|
-
let n = d.dom.getHeight(
|
49
|
+
let n = d.dom.getHeight(M.value), u = d.dom.find(a, ".main-footer"), o = d.dom.getHeight(u), i = t - n - o;
|
49
50
|
j.value = `${i}px`;
|
50
51
|
}, fe = async () => {
|
51
|
-
let t = s.value[l.value.name].length, a =
|
52
|
+
let t = s.value[l.value.name].length, a = T.getDefaultRow(l.value);
|
52
53
|
s.value[l.value.name].push(a);
|
53
54
|
let n = l.value.fields.filter((o) => o.feature != null);
|
54
55
|
for (let o = 0; o < n.length; o++) {
|
55
56
|
let i = n[o];
|
56
|
-
(await
|
57
|
+
(await U.feature.createAsync(i.feature.type)).add(l.value, i, s.value, a);
|
57
58
|
}
|
58
|
-
|
59
|
+
B(t);
|
59
60
|
let u = d.scroll.isBottom(".tree-detail");
|
60
61
|
await X(() => {
|
61
62
|
u && d.scroll.scrollToBottom(".tree-detail");
|
62
63
|
});
|
63
64
|
}, ve = async (t = null) => {
|
64
|
-
let a = p.value[0], n =
|
65
|
+
let a = p.value[0], n = T.getDefaultRow(l.value), u = d.array.insert(s.value[l.value.name], a, n), o = l.value.fields.filter((i) => i.feature != null);
|
65
66
|
for (let i = 0; i < o.length; i++) {
|
66
67
|
let f = o[i];
|
67
|
-
(await
|
68
|
+
(await U.feature.create(f.feature.type)).insert(l.value, f, s.value, a, n);
|
68
69
|
}
|
69
|
-
|
70
|
-
},
|
70
|
+
B(u), t == null || t(u);
|
71
|
+
}, ge = async () => {
|
71
72
|
let t = l.value.key.name, a = d.object.clone(p.value, (o) => {
|
72
73
|
o[t] = null, o[`Old_${t}`] = null;
|
73
74
|
}), n = s.value[l.value.name].indexOf(p.value[0]);
|
@@ -78,12 +79,12 @@ const qe = {
|
|
78
79
|
let u = l.value.fields.filter((o) => o.feature != null);
|
79
80
|
for (let o = 0; o < u.length; o++) {
|
80
81
|
let i = u[o];
|
81
|
-
(await
|
82
|
+
(await U.feature.create(i.feature.type)).copy(l.value, i, s.value);
|
82
83
|
}
|
83
|
-
|
84
|
-
},
|
84
|
+
B(n);
|
85
|
+
}, he = () => {
|
85
86
|
d.array.remove(s.value[l.value.name], p.value), p.value = [];
|
86
|
-
},
|
87
|
+
}, B = (t) => {
|
87
88
|
let a = d.math.pageCount(t + 1, m.value.size);
|
88
89
|
w.value.page = a;
|
89
90
|
}, ye = (t) => {
|
@@ -92,22 +93,22 @@ const qe = {
|
|
92
93
|
S.value.$el.querySelector("tbody");
|
93
94
|
};
|
94
95
|
ke(async () => {
|
95
|
-
await ne.openAsync("sys", "page",
|
96
|
-
|
96
|
+
await ne.openAsync("sys", "page", E.value), we(), L(), d.component.detectLoaded(V, () => {
|
97
|
+
P();
|
97
98
|
});
|
98
99
|
});
|
99
100
|
let _e = K(() => {
|
100
101
|
let t = (w.value.page - 1) * m.value.size, a = w.value.page * m.value.size - 1;
|
101
102
|
return s.value[l.value.name].filter((u, o) => o >= t && o <= a);
|
102
103
|
}), xe = K(() => {
|
103
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
104
|
-
return
|
104
|
+
let t = l.value.main ? `/${l.value.name}` : `/${W.value[0].name}/${l.value.name}`;
|
105
|
+
return He.getComponent(`${t}/update-child`, "partial", "update-child");
|
105
106
|
});
|
106
|
-
return Se(
|
107
|
+
return Se(A, (t, a) => {
|
107
108
|
let n = t.find((u) => u.table == l.value.name);
|
108
109
|
n != null && (w.value.page = Math.ceil((n.index + 1) / m.value.size));
|
109
110
|
}), ee({ onResize: ce }), (t, a) => {
|
110
|
-
const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"),
|
111
|
+
const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"), G = b("el-pagination");
|
111
112
|
return v(), z(Q, null, [
|
112
113
|
R(f, {
|
113
114
|
ref_key: "tableRef",
|
@@ -121,10 +122,10 @@ const qe = {
|
|
121
122
|
onSelectionChange: e(me),
|
122
123
|
onHeaderDragend: a[1] || (a[1] = (r, y, _, $) => e(pe)(r, y, _, $, e(l)))
|
123
124
|
}, {
|
124
|
-
empty:
|
125
|
-
$e(
|
125
|
+
empty: g(() => [
|
126
|
+
$e(N(e(Be)("common.no_data")), 1)
|
126
127
|
]),
|
127
|
-
default:
|
128
|
+
default: g(() => [
|
128
129
|
e(oe) ? (v(), F(n, {
|
129
130
|
key: 0,
|
130
131
|
type: "selection",
|
@@ -138,22 +139,22 @@ const qe = {
|
|
138
139
|
"show-overflow-tooltip": "",
|
139
140
|
prop: r.name,
|
140
141
|
label: r.label,
|
141
|
-
"min-width": ((J = ($ = (_ = e(
|
142
|
+
"min-width": ((J = ($ = (_ = e(E)) == null ? void 0 : _[e(q)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : J[r.name]) ?? r.control.width,
|
142
143
|
fixed: e(m).fixed.length > 0 ? e(m).fixed.indexOf(r.name) > -1 : y == 0
|
143
144
|
}, {
|
144
|
-
header:
|
145
|
-
e(k).type != "Detail" && r.control.required ? (v(), z("i",
|
145
|
+
header: g((x) => [
|
146
|
+
e(k).type != "Detail" && r.control.required ? (v(), z("i", Ue, "*")) : D("", !0),
|
146
147
|
R(u, {
|
147
148
|
placement: "top",
|
148
149
|
content: r.label,
|
149
150
|
disabled: e(ie)(x, y)
|
150
151
|
}, {
|
151
|
-
default:
|
152
|
+
default: g(() => [
|
152
153
|
C("span", {
|
153
|
-
onMouseenter: (
|
154
|
+
onMouseenter: (I) => e(se)(I, y)
|
154
155
|
}, [
|
155
|
-
C("span", null,
|
156
|
-
], 40,
|
156
|
+
C("span", null, N(e(Ie)(e(l).table, r.name)), 1)
|
157
|
+
], 40, We)
|
157
158
|
]),
|
158
159
|
_: 2
|
159
160
|
}, 1032, ["content", "disabled"]),
|
@@ -164,31 +165,31 @@ const qe = {
|
|
164
165
|
width: "auto",
|
165
166
|
title: r.control.tooltip.title
|
166
167
|
}, {
|
167
|
-
reference:
|
168
|
+
reference: g(() => a[2] || (a[2] = [
|
168
169
|
C("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
169
170
|
])),
|
170
|
-
default:
|
171
|
-
C("pre", null,
|
171
|
+
default: g(() => [
|
172
|
+
C("pre", null, N(r.control.tooltip.content), 1)
|
172
173
|
]),
|
173
174
|
_: 2
|
174
175
|
}, 1032, ["title"])) : D("", !0)
|
175
176
|
]),
|
176
|
-
default:
|
177
|
+
default: g((x) => [
|
177
178
|
R(i, {
|
178
179
|
style: Fe(e(Y).getStyle(r, e(k).type, e(m).type)),
|
179
|
-
rules: e(
|
180
|
-
prop: `[${e(l).name}][${e(
|
180
|
+
rules: e(T).getRules(e(A), e(l), r, x.$index),
|
181
|
+
prop: `[${e(l).name}][${e(O)(x.row)}][${r.name}]`
|
181
182
|
}, {
|
182
|
-
default:
|
183
|
+
default: g(() => [
|
183
184
|
R(e(le), {
|
184
|
-
schema: e(
|
185
|
+
schema: e(W),
|
185
186
|
table: e(l),
|
186
187
|
field: r,
|
187
188
|
set: e(s),
|
188
189
|
row: x.row,
|
189
190
|
config: e(Y).getConfig(r, e(k).type, e(m).type),
|
190
191
|
onSubmit: e(ue),
|
191
|
-
onChange: (
|
192
|
+
onChange: (I) => e(de)(I, e(s), e(l), r, e(O)(x.row))
|
192
193
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
193
194
|
]),
|
194
195
|
_: 2
|
@@ -203,30 +204,30 @@ const qe = {
|
|
203
204
|
e(l).main ? D("", !0) : (v(), z("div", {
|
204
205
|
key: 0,
|
205
206
|
ref_key: "footerRef",
|
206
|
-
ref:
|
207
|
+
ref: M,
|
207
208
|
class: "table-footer"
|
208
209
|
}, [
|
209
|
-
C("div",
|
210
|
+
C("div", qe, [
|
210
211
|
(v(), F(De(e(xe)), {
|
211
212
|
ref_key: "operationRef",
|
212
|
-
ref:
|
213
|
+
ref: V,
|
213
214
|
module: e(k),
|
214
215
|
table: e(l),
|
215
216
|
set: e(s),
|
216
217
|
selection: e(p),
|
217
218
|
onAdd: e(fe),
|
218
219
|
onInsert: e(ve),
|
219
|
-
onCopy: e(
|
220
|
-
onRemove: e(
|
220
|
+
onCopy: e(ge),
|
221
|
+
onRemove: e(he)
|
221
222
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
222
223
|
]),
|
223
|
-
C("div",
|
224
|
-
R(
|
224
|
+
C("div", Ae, [
|
225
|
+
R(G, {
|
225
226
|
background: "",
|
226
|
-
layout: e(
|
227
|
+
layout: e(h).layout,
|
227
228
|
"current-page": e(w).page,
|
228
229
|
"page-size": e(m).size,
|
229
|
-
"pager-count": e(
|
230
|
+
"pager-count": e(h).count,
|
230
231
|
total: e(s)[e(l).name].length,
|
231
232
|
onCurrentChange: e(ye)
|
232
233
|
}, null, 8, ["layout", "current-page", "page-size", "pager-count", "total", "onCurrentChange"])
|
@@ -237,5 +238,5 @@ const qe = {
|
|
237
238
|
}
|
238
239
|
});
|
239
240
|
export {
|
240
|
-
|
241
|
+
Oe as default
|
241
242
|
};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { defineComponent as x, mergeModels as u, toRefs as _, useModel as g, resolveComponent as C, openBlock as V, createBlock as b, unref as e, withKeys as y, isRef as v, createSlots as k, withCtx as D, createTextVNode as K, toDisplayString as M } from "vue";
|
2
|
+
import { l as w } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const N = /* @__PURE__ */ x({
|
5
|
+
__name: "Text",
|
6
|
+
props: /* @__PURE__ */ u({
|
7
|
+
schema: {},
|
8
|
+
table: {},
|
9
|
+
field: {},
|
10
|
+
searchData: {}
|
11
|
+
}, {
|
12
|
+
modelValue: {},
|
13
|
+
modelModifiers: {}
|
14
|
+
}),
|
15
|
+
emits: /* @__PURE__ */ u(["change", "submit"], ["update:modelValue"]),
|
16
|
+
setup(a, { emit: s }) {
|
17
|
+
let o = s, d = a, { table: p, field: t, searchData: B } = _(d), l = g(a, "modelValue"), c = (m) => {
|
18
|
+
m == "" && (l.value = null), o("change", l.value);
|
19
|
+
}, n = () => {
|
20
|
+
o("submit");
|
21
|
+
}, f = () => {
|
22
|
+
n();
|
23
|
+
};
|
24
|
+
return (m, r) => {
|
25
|
+
const h = C("el-input");
|
26
|
+
return V(), b(h, {
|
27
|
+
type: "text",
|
28
|
+
placeholder: e(w)(e(p).name, e(t).name),
|
29
|
+
clearable: "",
|
30
|
+
onKeyup: y(e(n), ["enter", "native"]),
|
31
|
+
onChange: e(c),
|
32
|
+
onClear: e(f),
|
33
|
+
modelValue: e(l),
|
34
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => v(l) ? l.value = i : l = i)
|
35
|
+
}, k({ _: 2 }, [
|
36
|
+
e(t).suffix ? {
|
37
|
+
name: "append",
|
38
|
+
fn: D(() => [
|
39
|
+
K(M(e(t).suffix), 1)
|
40
|
+
]),
|
41
|
+
key: "0"
|
42
|
+
} : void 0
|
43
|
+
]), 1032, ["placeholder", "onKeyup", "onChange", "onClear", "modelValue"]);
|
44
|
+
};
|
45
|
+
}
|
46
|
+
});
|
47
|
+
export {
|
48
|
+
N as default
|
49
|
+
};
|