halo-pc 1.0.36 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
- package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/Calender-BoQV7bhA.js +10 -0
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
- package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-C6A3DOQp.js → Code-DDacfgvl.js} +1 -1
- package/dist/Code-DIGn8Raz.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
- package/dist/Column-DjA11efs.js +69 -0
- package/dist/{Comment-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
- package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
- package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
- package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/Custom-Dn9_vPuD.js +58 -0
- package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
- package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
- package/dist/Image-CfY4G1Yn.js +9 -0
- package/dist/{Index-BnudlpyF.js → Index-B5o7uf36.js} +15 -16
- package/dist/Index-CH3nwnPZ.js +4 -0
- package/dist/Index-CTjDkp7e.js +4 -0
- package/dist/Index-DSZ8wa7U.js +4 -0
- package/dist/Index-DVdiF3gr.js +4 -0
- package/dist/{Index-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
- package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
- package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
- package/dist/List-DA4SO_le.js +71 -0
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
- package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
- package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
- package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
- package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
- package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
- package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
- package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
- package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
- package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/Tree-DK73Ou_F.js +117 -0
- package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
- package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-CnA4ZUPj.js → Year-C93IJgc8.js} +8 -9
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-nvsTmKXH.js +16321 -0
- package/dist/main.js +137 -136
- package/dist/style.css +1 -1
- package/esm/coms/business/Form.vue.d.ts +2 -1
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
- package/esm/coms/drivers/@types/index.d.ts +3 -1
- package/esm/coms/drivers/Index.vue.d.ts +26 -29
- package/esm/coms/drivers/Kind.vue.d.ts +8 -8
- package/esm/coms/layouts/Index.vue.d.ts +7 -3
- package/esm/coms/layouts/Side.vue.d.ts +5 -2
- package/esm/coms/layouts/Top.vue.d.ts +4 -1
- package/esm/coms/lists/Tree.vue.d.ts +2 -1
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/List.vue.d.ts +1 -1
- package/esm/coms/pages/Paging.vue.d.ts +2 -1
- package/esm/coms/pages/Single.vue.d.ts +2 -1
- package/esm/coms/pagings/Article.vue.d.ts +2 -1
- package/esm/coms/pagings/Index.vue.d.ts +2 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +9 -9
- package/dist/Autocomplete-Buw1Hs35.js +0 -50
- package/dist/Calender-P8tmSbW2.js +0 -10
- package/dist/Callback-SEWVfpG_.js +0 -21
- package/dist/Cascader-DWNTommi.js +0 -47
- package/dist/Code-CQSTwwc4.js +0 -4
- package/dist/Code-CXMdFELH.js +0 -42
- package/dist/Code-THGJ7IzI.js +0 -60
- package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
- package/dist/Column-CucHIBYv.js +0 -75
- package/dist/Custom-CkyWaXAB.js +0 -61
- package/dist/Dictionary-BiSpx7nU.js +0 -61
- package/dist/Image-Cb1PzLpD.js +0 -9
- package/dist/Index-2vdi0Nq0.js +0 -4
- package/dist/Index-BOKSKn0N.js +0 -4
- package/dist/Index-CymZGuJo.js +0 -174
- package/dist/Index-Cz0Ti6rP.js +0 -4
- package/dist/Index-Dhg6Vts6.js +0 -4
- package/dist/List-BnT_8B_q.js +0 -74
- package/dist/Maintaince-CwL7tseR.js +0 -20
- package/dist/Month-CRmTCjQr.js +0 -38
- package/dist/Paging-ByJhfHCh.js +0 -95
- package/dist/RichText-Dj93TxtW.js +0 -47
- package/dist/Text-D2P-_cQT.js +0 -54
- package/dist/Text-oKVRjuSR.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
- package/dist/Tree-DRUGEHR3.js +0 -123
- package/dist/Upload-BCGGzOTn.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/main-BLb5AIWJ.js +0 -10249
@@ -1,19 +1,18 @@
|
|
1
|
-
import { defineComponent as he, toRefs as fe, ref as
|
2
|
-
import {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
1
|
+
import { defineComponent as he, toRefs as fe, ref as x, onMounted as ge, computed as E, watch as B, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as K, unref as e, createBlock as g, withCtx as m, Fragment as R, renderList as S, createVNode as C, createCommentVNode as V, toDisplayString as I, createElementVNode as L, normalizeStyle as _e, createTextVNode as be, resolveDynamicComponent as ye } from "vue";
|
2
|
+
import { o as P, m as F, c as Ce, d as Q, e as U, f as ke, w as we, F as xe } from "./main-nvsTmKXH.js";
|
4
3
|
import "vue-router";
|
5
4
|
import "./assets/intro.js-Cg1adLK7.js";
|
6
|
-
const
|
5
|
+
const Re = {
|
7
6
|
key: 1,
|
8
7
|
class: "ha-empty"
|
9
|
-
},
|
8
|
+
}, Se = {
|
10
9
|
key: 2,
|
11
10
|
ref: "normalRows",
|
12
11
|
class: "normal-rows"
|
13
12
|
}, $e = {
|
14
13
|
key: 0,
|
15
14
|
class: "normal-selection"
|
16
|
-
}, ze = { class: "normal-content" },
|
15
|
+
}, ze = { class: "normal-content" }, De = /* @__PURE__ */ he({
|
17
16
|
__name: "Normal",
|
18
17
|
props: {
|
19
18
|
route: {},
|
@@ -27,13 +26,13 @@ const we = {
|
|
27
26
|
},
|
28
27
|
emits: ["change", "submit"],
|
29
28
|
setup(X, { expose: Y, emit: Z }) {
|
30
|
-
let M = Z, ee = X, { module: O, set: c, schema:
|
29
|
+
let M = Z, ee = X, { module: O, set: c, schema: N, table: t, layout: i, validateErrors: A } = fe(ee), p = x({ page: 1, count: c.value[t.value.name].length }), k = x([]), b = x(), T = x([]), j = x(), le = (l) => {
|
31
30
|
T.value.push(l);
|
32
31
|
}, te = () => {
|
33
32
|
p.value.page = 1;
|
34
33
|
}, ae = () => {
|
35
|
-
b.value =
|
36
|
-
let l =
|
34
|
+
b.value = G(t.value);
|
35
|
+
let l = F.getDefaultRow(t.value);
|
37
36
|
c.value[t.value.name].push(l);
|
38
37
|
}, ne = () => {
|
39
38
|
let l = c.value[t.value.name];
|
@@ -42,45 +41,45 @@ const we = {
|
|
42
41
|
}), k.value = [], T.value.forEach((a) => {
|
43
42
|
a.model && (a.model = !1);
|
44
43
|
});
|
45
|
-
},
|
46
|
-
|
47
|
-
},
|
48
|
-
l ? k.value.push(a) :
|
49
|
-
},
|
44
|
+
}, W = (l) => c.value[t.value.name].indexOf(l), oe = (l, a, o, u, v) => {
|
45
|
+
F.updateTooltip(o, u, v), M("change", l, a, o, u, v);
|
46
|
+
}, ue = (l, a) => {
|
47
|
+
l ? k.value.push(a) : Q.array.remove(k.value, a);
|
48
|
+
}, re = (l) => {
|
50
49
|
M("submit", l);
|
51
50
|
}, se = (l, a = null) => {
|
52
51
|
p.value.page = l;
|
53
|
-
},
|
52
|
+
}, G = (l) => {
|
54
53
|
if (l.main || l.search.length == 0)
|
55
54
|
return null;
|
56
55
|
let a = {};
|
57
|
-
l.search.forEach((
|
58
|
-
a[
|
56
|
+
l.search.forEach((u) => {
|
57
|
+
a[u.name] || (a[u.name] = null);
|
59
58
|
});
|
60
59
|
let o = {};
|
61
60
|
return o[l.name] = a, o;
|
62
|
-
},
|
63
|
-
b.value =
|
61
|
+
}, H = (l) => {
|
62
|
+
b.value = G(l);
|
64
63
|
}, me = () => {
|
65
|
-
|
64
|
+
D();
|
66
65
|
}, ce = (l) => {
|
67
|
-
|
68
|
-
},
|
69
|
-
let l =
|
66
|
+
H(l.schema[0]);
|
67
|
+
}, D = () => {
|
68
|
+
let l = j.value.clientWidth;
|
70
69
|
i.value.column = Math.ceil(l / 500);
|
71
70
|
}, ie = () => {
|
72
|
-
|
71
|
+
D(), H(t.value);
|
73
72
|
};
|
74
73
|
ge(() => {
|
75
74
|
ie();
|
76
75
|
});
|
77
|
-
let pe = E(() =>
|
76
|
+
let pe = E(() => P.splitRows(t.value.search, i.value.column)), J = E(() => {
|
78
77
|
if (!b.value)
|
79
78
|
return c.value[t.value.name];
|
80
|
-
let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.
|
79
|
+
let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.size, o = p.value.page * i.value.size - 1, u = c.value[t.value.name].filter(($) => {
|
81
80
|
let f = !0;
|
82
|
-
for (let
|
83
|
-
let y = t.value.search[
|
81
|
+
for (let w = 0; w < t.value.search.length; w++) {
|
82
|
+
let y = t.value.search[w], s = $[y.name], h = l[y.name];
|
84
83
|
if (h) {
|
85
84
|
if (y.search == "Equals") {
|
86
85
|
if (s !== h) {
|
@@ -95,49 +94,49 @@ const we = {
|
|
95
94
|
}
|
96
95
|
return f;
|
97
96
|
});
|
98
|
-
return p.value.count =
|
99
|
-
}), ve = E(() =>
|
100
|
-
let l = t.value.main ? `/${t.value.name}` : `/${
|
97
|
+
return p.value.count = u.length, u.filter(($, f) => f >= a && f <= o);
|
98
|
+
}), ve = E(() => F.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), de = E(() => {
|
99
|
+
let l = t.value.main ? `/${t.value.name}` : `/${N.value[0].name}/${t.value.name}`;
|
101
100
|
return Ce.getComponent(`${l}/update-child`, "partial", "update-child");
|
102
101
|
});
|
103
|
-
return
|
104
|
-
let o = l.length,
|
105
|
-
(o >
|
106
|
-
}, { deep: !0 }),
|
107
|
-
let o = l.find((
|
108
|
-
o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.
|
109
|
-
}),
|
110
|
-
|
102
|
+
return B(() => c.value[t.value.name], (l, a) => {
|
103
|
+
let o = l.length, u = a.length, v = Q.math.pageCount(c.value[t.value.name].length, i.value.size);
|
104
|
+
(o > u || o < u && p.value.page > v) && (p.value.page = v);
|
105
|
+
}, { deep: !0 }), B(A, (l, a) => {
|
106
|
+
let o = l.find((u) => u.table == t.value.name);
|
107
|
+
o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.size));
|
108
|
+
}), B(t, (l, a) => {
|
109
|
+
D();
|
111
110
|
}), Y({ resize: me, update: ce }), (l, a) => {
|
112
|
-
const o = _("el-form-item"),
|
111
|
+
const o = _("el-form-item"), u = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), w = _("el-popover"), y = _("el-pagination");
|
113
112
|
return n(), d("div", {
|
114
113
|
ref_key: "normalRef",
|
115
|
-
ref:
|
116
|
-
class:
|
114
|
+
ref: j,
|
115
|
+
class: K(["ha-normal-layout", { draggable: e(i).sort }])
|
117
116
|
}, [
|
118
117
|
e(b) ? (n(), g($, {
|
119
118
|
key: 0,
|
120
119
|
class: "search-form"
|
121
120
|
}, {
|
122
121
|
default: m(() => [
|
123
|
-
(n(!0), d(
|
122
|
+
(n(!0), d(R, null, S(e(pe), (s, h) => (n(), g(v, {
|
124
123
|
gutter: 5,
|
125
124
|
key: h
|
126
125
|
}, {
|
127
126
|
default: m(() => [
|
128
|
-
(n(!0), d(
|
127
|
+
(n(!0), d(R, null, S(s, (r, q) => (n(), g(u, {
|
129
128
|
span: 24 / e(i).column,
|
130
|
-
key:
|
129
|
+
key: q
|
131
130
|
}, {
|
132
131
|
default: m(() => [
|
133
132
|
C(o, {
|
134
|
-
label:
|
133
|
+
label: r.label
|
135
134
|
}, {
|
136
135
|
default: m(() => [
|
137
|
-
C(e(
|
138
|
-
schema: e(
|
136
|
+
C(e(U), {
|
137
|
+
schema: e(N),
|
139
138
|
table: e(t),
|
140
|
-
field:
|
139
|
+
field: r,
|
141
140
|
set: e(b),
|
142
141
|
onSubmit: e(te)
|
143
142
|
}, null, 8, ["schema", "table", "field", "set", "onSubmit"])
|
@@ -153,9 +152,9 @@ const we = {
|
|
153
152
|
]),
|
154
153
|
_: 1
|
155
154
|
})) : V("", !0),
|
156
|
-
e(
|
157
|
-
(n(!0), d(
|
158
|
-
class:
|
155
|
+
e(J).length ? (n(), d("div", Se, [
|
156
|
+
(n(!0), d(R, null, S(e(J), (s) => (n(), d("div", {
|
157
|
+
class: K(["normal-row", { main: e(t).main }])
|
159
158
|
}, [
|
160
159
|
e(t).main ? V("", !0) : (n(), d("div", $e, [
|
161
160
|
C(f, {
|
@@ -163,53 +162,53 @@ const we = {
|
|
163
162
|
ref: e(le),
|
164
163
|
class: "normal-checkbox",
|
165
164
|
row: s,
|
166
|
-
onChange: (h) => e(
|
165
|
+
onChange: (h) => e(ue)(h, s)
|
167
166
|
}, null, 8, ["row", "onChange"])
|
168
167
|
])),
|
169
168
|
L("div", ze, [
|
170
|
-
(n(!0), d(
|
169
|
+
(n(!0), d(R, null, S(e(ve), (h) => (n(), g(v, null, {
|
171
170
|
default: m(() => [
|
172
|
-
(n(!0), d(
|
173
|
-
span:
|
174
|
-
key: `${e(t).name}.${
|
171
|
+
(n(!0), d(R, null, S(h, ({ data: r, span: q }) => (n(), g(u, {
|
172
|
+
span: q,
|
173
|
+
key: `${e(t).name}.${r.name}`
|
175
174
|
}, {
|
176
175
|
default: m(() => [
|
177
176
|
C(o, {
|
178
|
-
style: _e(e(
|
179
|
-
label:
|
180
|
-
rules: e(
|
181
|
-
prop: `[${e(t).name}][${e(
|
177
|
+
style: _e(e(P).getStyle(r, e(O).type, e(i).type)),
|
178
|
+
label: r.label,
|
179
|
+
rules: e(F).getRules(e(A), e(t), r, e(W)(s)),
|
180
|
+
prop: `[${e(t).name}][${e(W)(s)}][${r.name}]`
|
182
181
|
}, {
|
183
182
|
label: m(() => {
|
184
183
|
var z;
|
185
184
|
return [
|
186
|
-
be(
|
187
|
-
(z =
|
185
|
+
be(I(e(we)(e(t).name, r.name)) + " ", 1),
|
186
|
+
(z = r.control.tooltip) != null && z.content ? (n(), g(w, {
|
188
187
|
key: 0,
|
189
188
|
trigger: "hover",
|
190
189
|
placement: "top",
|
191
190
|
width: "auto",
|
192
|
-
title:
|
191
|
+
title: r.control.tooltip.title
|
193
192
|
}, {
|
194
193
|
reference: m(() => a[1] || (a[1] = [
|
195
194
|
L("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
196
195
|
])),
|
197
196
|
default: m(() => [
|
198
|
-
L("pre", null,
|
197
|
+
L("pre", null, I(r.control.tooltip.content), 1)
|
199
198
|
]),
|
200
199
|
_: 2
|
201
200
|
}, 1032, ["title"])) : V("", !0)
|
202
201
|
];
|
203
202
|
}),
|
204
203
|
default: m(() => [
|
205
|
-
C(e(
|
206
|
-
schema: e(
|
204
|
+
C(e(U), {
|
205
|
+
schema: e(N),
|
207
206
|
set: e(c),
|
208
207
|
table: e(t),
|
209
208
|
row: s,
|
210
|
-
field:
|
211
|
-
onSubmit: e(
|
212
|
-
onChange: (z) => e(oe)(z, e(c), e(t), s,
|
209
|
+
field: r,
|
210
|
+
onSubmit: e(re),
|
211
|
+
onChange: (z) => e(oe)(z, e(c), e(t), s, r)
|
213
212
|
}, null, 8, ["schema", "set", "table", "row", "field", "onSubmit", "onChange"])
|
214
213
|
]),
|
215
214
|
_: 2
|
@@ -222,8 +221,8 @@ const we = {
|
|
222
221
|
}, 1024))), 256))
|
223
222
|
])
|
224
223
|
], 2))), 256))
|
225
|
-
], 512)) : (n(), d("div",
|
226
|
-
e(t).main ? V("", !0) : (n(), g(e(
|
224
|
+
], 512)) : (n(), d("div", Re, I(e(ke)("common.no_data")), 1)),
|
225
|
+
e(t).main ? V("", !0) : (n(), g(e(xe), { key: 3 }, {
|
227
226
|
left: m(() => [
|
228
227
|
(n(), g(ye(e(de)), {
|
229
228
|
module: e(O),
|
@@ -239,7 +238,7 @@ const we = {
|
|
239
238
|
background: "",
|
240
239
|
layout: "total, prev, pager, next, jumper",
|
241
240
|
"current-page": e(p).page,
|
242
|
-
"page-size": e(i).
|
241
|
+
"page-size": e(i).size,
|
243
242
|
total: e(p).count,
|
244
243
|
onCurrentChange: a[0] || (a[0] = (s) => e(se)(s, e(t)))
|
245
244
|
}, null, 8, ["current-page", "page-size", "total"])
|
@@ -251,5 +250,5 @@ const we = {
|
|
251
250
|
}
|
252
251
|
});
|
253
252
|
export {
|
254
|
-
|
253
|
+
De as default
|
255
254
|
};
|
@@ -0,0 +1,92 @@
|
|
1
|
+
import { defineComponent as O, toRefs as T, ref as r, onMounted as V, watch as $, unref as a, openBlock as E, createBlock as G, createCommentVNode as I } from "vue";
|
2
|
+
import { d as o, S as Q, M as W, m as d, g as U, A as X } from "./main-nvsTmKXH.js";
|
3
|
+
import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js";
|
4
|
+
const te = /* @__PURE__ */ O({
|
5
|
+
__name: "Paging",
|
6
|
+
props: {
|
7
|
+
base: {},
|
8
|
+
route: {},
|
9
|
+
url: {},
|
10
|
+
win: {}
|
11
|
+
},
|
12
|
+
emits: ["navigate", "load"],
|
13
|
+
setup(b, { expose: z, emit: P }) {
|
14
|
+
let m = P, k = b, { url: p, base: y, route: u } = T(k), f = r(), v = r(), g = r(), c = r(), x = r(), S = r(), h = r(), s = r(), N = (e) => !0, L = (e) => {
|
15
|
+
let l = o.url.getPath(p.value), t = o.url.getPath(e);
|
16
|
+
return l != t;
|
17
|
+
}, M = (e = null) => {
|
18
|
+
_(e);
|
19
|
+
}, R = () => {
|
20
|
+
}, C = (e) => {
|
21
|
+
var t;
|
22
|
+
let l = Q(e.module.type, e.module.name);
|
23
|
+
W.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, S.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema, e.set), g.value = (t = v.value) == null ? void 0 : t[0], c.value = g.value.layouts[0], h.value = d.getConditionForm(v.value, u.value.query.condition);
|
24
|
+
}, q = (e = null, l = null) => {
|
25
|
+
let t = e ?? u.value.query, n = o.url.getUrl(u.value.path, t);
|
26
|
+
m("load", n, !1, (K) => {
|
27
|
+
l && l(K);
|
28
|
+
});
|
29
|
+
}, i = (e, l) => {
|
30
|
+
m("navigate", e, l);
|
31
|
+
}, w = async (e) => {
|
32
|
+
let l = u.value.query;
|
33
|
+
l.page = 1;
|
34
|
+
let t = o.object.pure(h.value);
|
35
|
+
l.condition = U.encode(t);
|
36
|
+
let n = o.url.getUrl(u.value.path, l);
|
37
|
+
n == p.value ? q(l, e) : i(n, e);
|
38
|
+
}, A = (e, l) => {
|
39
|
+
let t = u.value.query;
|
40
|
+
t.order_by = U.encode(JSON.stringify(e));
|
41
|
+
let n = o.url.getUrl(u.value.path, t);
|
42
|
+
i(n, l);
|
43
|
+
}, B = (e, l = null) => {
|
44
|
+
let t = u.value.query;
|
45
|
+
t.page = e;
|
46
|
+
let n = o.url.getUrl(u.value.path, t);
|
47
|
+
i(n, l);
|
48
|
+
}, D = (e, l = null) => {
|
49
|
+
let t = u.value.query;
|
50
|
+
t.size = e;
|
51
|
+
let n = o.url.getUrl(u.value.path, t);
|
52
|
+
i(n, l);
|
53
|
+
}, H = (e) => {
|
54
|
+
c.value = g.value.layouts.find((l) => l.type == e);
|
55
|
+
}, j = () => {
|
56
|
+
C(y.value.data);
|
57
|
+
}, _ = (e = null) => q(null, e), F = (e) => {
|
58
|
+
if (!s.value || !s.value.resize)
|
59
|
+
return !1;
|
60
|
+
s.value.resize(e);
|
61
|
+
}, J = (e, l) => {
|
62
|
+
X.triggerKeyboardHandler(s.value, e, l);
|
63
|
+
};
|
64
|
+
return V(async () => {
|
65
|
+
j();
|
66
|
+
}), $(() => y.value, (e) => {
|
67
|
+
C(e.data);
|
68
|
+
}), z({ shouldLoad: N, shouldSpin: L, refresh: _, keyboardHandler: J, resize: F }), (e, l) => a(c) ? (E(), G(Y, {
|
69
|
+
key: 0,
|
70
|
+
ref_key: "pagingRef",
|
71
|
+
ref: s,
|
72
|
+
module: a(f),
|
73
|
+
next: a(x),
|
74
|
+
set: a(S),
|
75
|
+
schema: a(v),
|
76
|
+
table: a(g),
|
77
|
+
layout: a(c),
|
78
|
+
"search-data": a(h),
|
79
|
+
onNavigate: a(i),
|
80
|
+
onSort: a(A),
|
81
|
+
onSearch: a(w),
|
82
|
+
onPageChange: a(B),
|
83
|
+
onSizeChange: a(D),
|
84
|
+
onLayoutChange: a(H),
|
85
|
+
onSucceed: a(M),
|
86
|
+
onClose: a(R)
|
87
|
+
}, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : I("", !0);
|
88
|
+
}
|
89
|
+
});
|
90
|
+
export {
|
91
|
+
te as default
|
92
|
+
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as D, toRefs as F, ref as H, resolveComponent as b, openBlock as c, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as d, withCtx as o, createTextVNode as m, toDisplayString as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @__PURE__ */ D({
|
1
|
+
import { defineComponent as D, toRefs as F, ref as H, resolveComponent as b, openBlock as c, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as d, withCtx as o, createTextVNode as m, toDisplayString as a, createCommentVNode as f, createVNode as k, createSlots as R } from "vue";
|
2
|
+
import { f as n } from "./main-nvsTmKXH.js";
|
3
|
+
const T = { class: "search-title" }, $ = { class: "search-operation" }, K = /* @__PURE__ */ D({
|
5
4
|
__name: "PagingHeader",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -13,27 +12,27 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
13
12
|
},
|
14
13
|
emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
|
15
14
|
setup(x, { emit: C }) {
|
16
|
-
let
|
17
|
-
|
18
|
-
|
15
|
+
let s = C, h = x, { schema: j, table: v, layout: z, next: p, set: _, selection: i } = F(h), u = H(!1), w = () => {
|
16
|
+
u.value = !0, s("submit", () => {
|
17
|
+
u.value = !1;
|
19
18
|
});
|
20
19
|
}, N = (g) => {
|
21
|
-
|
20
|
+
s("add", g);
|
22
21
|
}, V = () => {
|
23
|
-
|
22
|
+
s("show-import");
|
24
23
|
}, B = () => {
|
25
|
-
|
24
|
+
s("show-export");
|
26
25
|
}, E = (g) => {
|
27
|
-
|
26
|
+
s("copy", g);
|
28
27
|
}, S = () => {
|
29
|
-
|
28
|
+
s("remove", i.value);
|
30
29
|
};
|
31
30
|
return (g, t) => {
|
32
31
|
var y;
|
33
|
-
const
|
32
|
+
const r = b("el-button"), q = b("el-popconfirm");
|
34
33
|
return c(), I(P, null, [
|
35
34
|
l("div", T, [
|
36
|
-
e(p).insert ? (c(), d(
|
35
|
+
e(p).insert ? (c(), d(r, {
|
37
36
|
key: 0,
|
38
37
|
type: "primary",
|
39
38
|
class: "btn-insert",
|
@@ -43,24 +42,24 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
43
42
|
l("i", { class: "fa fa-plus" }, null, -1)
|
44
43
|
])),
|
45
44
|
default: o(() => [
|
46
|
-
m(" " +
|
45
|
+
m(" " + a(e(n)("paging.add")), 1)
|
47
46
|
]),
|
48
47
|
_: 1
|
49
|
-
}, 8, ["onClick"])) :
|
50
|
-
e(p).copy ? (c(), d(
|
48
|
+
}, 8, ["onClick"])) : f("", !0),
|
49
|
+
e(p).copy ? (c(), d(r, {
|
51
50
|
key: 1,
|
52
51
|
type: "primary",
|
53
|
-
disabled: !e(
|
54
|
-
onClick: t[0] || (t[0] = (A) => e(E)(e(
|
52
|
+
disabled: !e(i).length,
|
53
|
+
onClick: t[0] || (t[0] = (A) => e(E)(e(i)))
|
55
54
|
}, {
|
56
55
|
icon: o(() => t[2] || (t[2] = [
|
57
56
|
l("i", { class: "fa fa-copy" }, null, -1)
|
58
57
|
])),
|
59
58
|
default: o(() => [
|
60
|
-
m(" " +
|
59
|
+
m(" " + a(e(n)("common.copy")) + a(e(i).length ? "(" + e(i).length + ")" : ""), 1)
|
61
60
|
]),
|
62
61
|
_: 1
|
63
|
-
}, 8, ["disabled"])) :
|
62
|
+
}, 8, ["disabled"])) : f("", !0),
|
64
63
|
e(p).delete ? (c(), d(q, {
|
65
64
|
key: 2,
|
66
65
|
width: 180,
|
@@ -70,36 +69,36 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
70
69
|
onConfirm: e(S)
|
71
70
|
}, {
|
72
71
|
reference: o(() => [
|
73
|
-
k(
|
72
|
+
k(r, {
|
74
73
|
type: "danger",
|
75
74
|
class: "btn-delete",
|
76
75
|
plain: "",
|
77
|
-
disabled: e(
|
76
|
+
disabled: e(i).length == 0
|
78
77
|
}, {
|
79
78
|
icon: o(() => t[3] || (t[3] = [
|
80
79
|
l("i", { class: "fa fa-trash-alt" }, null, -1)
|
81
80
|
])),
|
82
81
|
default: o(() => [
|
83
|
-
m(" " +
|
82
|
+
m(" " + a(e(n)("common.delete")) + "(" + a(e(i).length) + ") ", 1)
|
84
83
|
]),
|
85
84
|
_: 1
|
86
85
|
}, 8, ["disabled"])
|
87
86
|
]),
|
88
87
|
_: 1
|
89
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) :
|
88
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : f("", !0)
|
90
89
|
]),
|
91
90
|
l("div", $, [
|
92
|
-
k(
|
91
|
+
k(r, {
|
93
92
|
type: "primary",
|
94
|
-
loading: e(
|
93
|
+
loading: e(u),
|
95
94
|
onClick: e(w)
|
96
95
|
}, R({
|
97
96
|
default: o(() => [
|
98
|
-
m(" " +
|
97
|
+
m(" " + a(e(n)("paging.search")), 1)
|
99
98
|
]),
|
100
99
|
_: 2
|
101
100
|
}, [
|
102
|
-
e(
|
101
|
+
e(u) ? void 0 : {
|
103
102
|
name: "icon",
|
104
103
|
fn: o(() => [
|
105
104
|
t[4] || (t[4] = l("i", { class: "fa fa-search" }, null, -1))
|
@@ -107,7 +106,7 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
107
106
|
key: "0"
|
108
107
|
}
|
109
108
|
]), 1032, ["loading", "onClick"]),
|
110
|
-
e(p).import ? (c(), d(
|
109
|
+
e(p).import ? (c(), d(r, {
|
111
110
|
key: 0,
|
112
111
|
onClick: e(V)
|
113
112
|
}, {
|
@@ -115,11 +114,11 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
115
114
|
l("i", { class: "fa fa-file-upload" }, null, -1)
|
116
115
|
])),
|
117
116
|
default: o(() => [
|
118
|
-
m(" " +
|
117
|
+
m(" " + a(e(n)("paging.import")), 1)
|
119
118
|
]),
|
120
119
|
_: 1
|
121
|
-
}, 8, ["onClick"])) :
|
122
|
-
e(p).export ? (c(), d(
|
120
|
+
}, 8, ["onClick"])) : f("", !0),
|
121
|
+
e(p).export ? (c(), d(r, {
|
123
122
|
key: 1,
|
124
123
|
disabled: ((y = e(_)[e(v).name]) == null ? void 0 : y.length) == 0,
|
125
124
|
onClick: e(B)
|
@@ -128,15 +127,15 @@ const T = { class: "search-title" }, $ = { class: "search-operation" }, L = /* @
|
|
128
127
|
l("i", { class: "fa fa-share-square" }, null, -1)
|
129
128
|
])),
|
130
129
|
default: o(() => [
|
131
|
-
m(" " +
|
130
|
+
m(" " + a(e(n)("paging.export")), 1)
|
132
131
|
]),
|
133
132
|
_: 1
|
134
|
-
}, 8, ["disabled", "onClick"])) :
|
133
|
+
}, 8, ["disabled", "onClick"])) : f("", !0)
|
135
134
|
])
|
136
135
|
], 64);
|
137
136
|
};
|
138
137
|
}
|
139
138
|
});
|
140
139
|
export {
|
141
|
-
|
140
|
+
K as default
|
142
141
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const E = { class: "paging-row" }, z = /* @__PURE__ */ x({
|
1
|
+
import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as m, unref as e, createCommentVNode as a, createBlock as g, withCtx as B, createElementVNode as R } from "vue";
|
2
|
+
import { f } from "./main-nvsTmKXH.js";
|
3
|
+
const E = { class: "paging-row" }, q = /* @__PURE__ */ x({
|
5
4
|
__name: "PagingRow",
|
6
5
|
props: {
|
7
6
|
table: {},
|
@@ -11,32 +10,32 @@ const E = { class: "paging-row" }, z = /* @__PURE__ */ x({
|
|
11
10
|
},
|
12
11
|
emits: ["preview", "edit", "copy", "before-remove", "remove"],
|
13
12
|
setup(d, { emit: b }) {
|
14
|
-
let i = b, k = d, { table: N, next: l, set: V, row:
|
15
|
-
i("preview",
|
16
|
-
},
|
17
|
-
i("edit",
|
13
|
+
let i = b, k = d, { table: N, next: l, set: V, row: c } = y(k), p = (o) => {
|
14
|
+
i("preview", c.value, o);
|
15
|
+
}, s = (o) => {
|
16
|
+
i("edit", c.value, o);
|
18
17
|
}, u = (o) => {
|
19
|
-
i("copy",
|
18
|
+
i("copy", c.value, o);
|
20
19
|
}, v = (o) => {
|
21
20
|
}, C = () => {
|
22
|
-
i("remove", [
|
21
|
+
i("remove", [c.value]);
|
23
22
|
};
|
24
23
|
return (o, t) => {
|
25
24
|
const w = _("el-popconfirm");
|
26
|
-
return r(),
|
27
|
-
e(l).detail ? (r(),
|
25
|
+
return r(), m("div", E, [
|
26
|
+
e(l).detail ? (r(), m("i", {
|
28
27
|
key: 0,
|
29
28
|
class: "fa fa-search-plus btn-icon",
|
30
29
|
onClick: t[0] || (t[0] = //@ts-ignore
|
31
|
-
(...n) => e(
|
30
|
+
(...n) => e(p) && e(p)(...n))
|
32
31
|
})) : a("", !0),
|
33
|
-
e(l).update ? (r(),
|
32
|
+
e(l).update ? (r(), m("i", {
|
34
33
|
key: 1,
|
35
34
|
class: "fa fa-pencil btn-icon",
|
36
35
|
onClick: t[1] || (t[1] = //@ts-ignore
|
37
|
-
(...n) => e(
|
36
|
+
(...n) => e(s) && e(s)(...n))
|
38
37
|
})) : a("", !0),
|
39
|
-
e(l).copy ? (r(),
|
38
|
+
e(l).copy ? (r(), m("i", {
|
40
39
|
key: 2,
|
41
40
|
class: "fa fa-copy btn-icon",
|
42
41
|
onClick: t[2] || (t[2] = //@ts-ignore
|
@@ -44,9 +43,9 @@ const E = { class: "paging-row" }, z = /* @__PURE__ */ x({
|
|
44
43
|
})) : a("", !0),
|
45
44
|
e(l).delete ? (r(), g(w, {
|
46
45
|
key: 3,
|
47
|
-
title: e(
|
48
|
-
"confirm-button-text": e(
|
49
|
-
"cancel-button-text": e(
|
46
|
+
title: e(f)("common.confirm_delete", ""),
|
47
|
+
"confirm-button-text": e(f)("common.confirm"),
|
48
|
+
"cancel-button-text": e(f)("common.cancel"),
|
50
49
|
width: 180,
|
51
50
|
onConfirm: e(C)
|
52
51
|
}, {
|
@@ -64,5 +63,5 @@ const E = { class: "paging-row" }, z = /* @__PURE__ */ x({
|
|
64
63
|
}
|
65
64
|
});
|
66
65
|
export {
|
67
|
-
|
66
|
+
q as default
|
68
67
|
};
|