halo-pc 1.0.15 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-BZph3Slr.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BW_G0Irk.js} +17 -24
- package/dist/Autocomplete-CuAwiHhE.js +49 -0
- package/dist/Autocomplete-Dw1r9LjJ.js +48 -0
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-qmcT2ECx.js} +1 -1
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-BWYY3ixE.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-CGxlpOR0.js} +3 -3
- package/dist/Callback-phrGGQ_Q.js +20 -0
- package/dist/Cascader-CT7ASkSy.js +41 -0
- package/dist/Cascader-CsJ1jVBY.js +81 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-BOC7ECAx.js} +1 -1
- package/dist/Checkbox-BePH3x-V.js +70 -0
- package/dist/Code-CE-Fe7WB.js +36 -0
- package/dist/{Code-BlwPnx9J.js → Code-CWxVzJHq.js} +1 -1
- package/dist/Code-CqLG9fEE.js +54 -0
- package/dist/Code-TBB9w4CV.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-oiyt3bsp.js +59 -0
- package/dist/Column-Ctyq9hqP.js +68 -0
- package/dist/Comment-RyVJJjTd.js +98 -0
- package/dist/Compare-DEccApnU.js +56 -0
- package/dist/Compare-ZBeSkf8f.js +26 -0
- package/dist/Copy-CNJ1TZJl.js +43 -0
- package/dist/Custom-DHvr_EJi.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-39v2Wzii.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-Bmm7IDoz.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-C1O_zTRs.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CGKObmMj.js} +54 -59
- package/dist/{Date-B8b9JXpP.js → Date-BAk-TE4a.js} +1 -1
- package/dist/Date-CsIPLFzI.js +37 -0
- package/dist/DateRange-BXSMqDJ0.js +57 -0
- package/dist/DateTime-2RoBkqWb.js +38 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-DSiPx95t.js} +1 -1
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-l6kVSbZe.js} +13 -20
- package/dist/Daterange-DRq9WIRI.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-DGia5Sy8.js} +1 -1
- package/dist/Delete-B7X35s7r.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-wJXhceca.js} +16 -23
- package/dist/Dictionary-CUFHT-1d.js +55 -0
- package/dist/Email-BqiiArN8.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-DngRHLmK.js} +40 -47
- package/dist/Image-D3FNAo-5.js +9 -0
- package/dist/Index-B3hh_9-f.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-B4bG41Qh.js} +1 -1
- package/dist/Index-BJ4rN3ua.js +4 -0
- package/dist/Index-C3EFws1o.js +4 -0
- package/dist/Index-ChQl4mWS.js +70 -0
- package/dist/{Index-B90giDWQ.js → Index-D6WfgZso.js} +1 -1
- package/dist/Index-Dec7ANPo.js +173 -0
- package/dist/{Index-CQURvmzd.js → Index-yxohMYWu.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js} +14 -21
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-DvLkDt-G.js} +20 -27
- package/dist/{Int-Bj3Gagp5.js → Int-CTZDyiRf.js} +9 -16
- package/dist/Int-DUxDmxeN.js +41 -0
- package/dist/List-DhQAnj6h.js +73 -0
- package/dist/Maintaince-DlOgC995.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BBZs8Oeu.js} +1 -1
- package/dist/Month-BOpeFNyJ.js +37 -0
- package/dist/Month-CGeJVL3p.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-UvBNgDPi.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-AYl3k_ON.js} +43 -49
- package/dist/Paging-B45u8Pwz.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-BKtQX0FN.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-C1sBqbWn.js} +21 -28
- package/dist/QueryApi-DwKYCq-u.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-DEHtOLFI.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-i6CjikAh.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-SHm6xbyk.js} +74 -80
- package/dist/RichText-Bxc-XIY-.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-Co8AjPaU.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CL0CnYJg.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CMiBnK26.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js} +34 -40
- package/dist/{Select-BiFIpc5-.js → Select-B-gNnoDq.js} +1 -1
- package/dist/Select-DuecGTXX.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-t1xYHXcV.js} +19 -26
- package/dist/{Single-DdcVVH9V.js → Single-Da4zGSt4.js} +116 -122
- package/dist/{Statistic-B7niMPBf.js → Statistic-MUCQAxl_.js} +25 -31
- package/dist/{Stock-CRsu1vcy.js → Stock-C0gpktjX.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-CFVyfAIN.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-B-uQM5GU.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-CT0S6MHJ.js} +1 -1
- package/dist/{Table-C2dYPoGi.js → Table-CU6q8l3a.js} +54 -61
- package/dist/{Table-a5uj25Nj.js → Table-NC8CrrxW.js} +63 -68
- package/dist/Text-Bx4cfjya.js +52 -0
- package/dist/{Text-CMEzogZ8.js → Text-ChJQSLGE.js} +1 -1
- package/dist/Text-ChdZDU0g.js +53 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BZNDg39p.js +53 -0
- package/dist/TextLink-DIHx9sjo.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-CRi6hLdT.js} +1 -1
- package/dist/Time-Cn6eQVUQ.js +37 -0
- package/dist/Timeline-DpEcUmkJ.js +53 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-B0Rqvp37.js} +73 -79
- package/dist/Tree-nr0ZIvCA.js +117 -0
- package/dist/TreeNode-e51TMrSj.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-QF8Zkcdq.js} +13 -20
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-DouQaV7E.js} +19 -26
- package/dist/Upload-0ba29Dyr.js +67 -0
- package/dist/Upload-BXj28BSA.js +146 -0
- package/dist/UploadApi-Boq1A5E-.js +13 -0
- package/dist/Year-DuBH5ghc.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-x4NXoaB_.js} +1 -1
- package/dist/main-RFuk2-Bk.js +19837 -0
- package/dist/main.js +54 -56
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- 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/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -0,0 +1,38 @@
|
|
1
|
+
import { defineComponent as i, toRefs as f, computed as V, resolveComponent as _, openBlock as h, createBlock as b, unref as e, isRef as k } from "vue";
|
2
|
+
import { V as Y } from "./main-RFuk2-Bk.js";
|
3
|
+
const x = /* @__PURE__ */ i({
|
4
|
+
__name: "Month",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {},
|
11
|
+
modelValue: {}
|
12
|
+
},
|
13
|
+
emits: ["submit", "change", "update:modelValue"],
|
14
|
+
setup(n, { emit: r }) {
|
15
|
+
let o = r, p = n, { table: u, field: a, set: g, modelValue: s } = f(p), l = V({
|
16
|
+
get() {
|
17
|
+
return s.value;
|
18
|
+
},
|
19
|
+
set(t) {
|
20
|
+
o("update:modelValue", t), o("change", t);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
return (t, m) => {
|
24
|
+
const c = _("el-date-picker");
|
25
|
+
return h(), b(c, {
|
26
|
+
type: "month",
|
27
|
+
placeholder: e(Y)(e(u).name, e(a).name),
|
28
|
+
"value-format": "YYYY-MM",
|
29
|
+
disabled: e(a).control.readonly,
|
30
|
+
modelValue: e(l),
|
31
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
|
32
|
+
}, null, 8, ["placeholder", "disabled", "modelValue"]);
|
33
|
+
};
|
34
|
+
}
|
35
|
+
});
|
36
|
+
export {
|
37
|
+
x as default
|
38
|
+
};
|
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let s = i(() => import("./Text-
|
13
|
+
let s = i(() => import("./Text-ChJQSLGE.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
|
14
14
|
return (w, t) => (V(), b(e(s), {
|
15
15
|
schema: e(n),
|
16
16
|
table: e(r),
|
@@ -1,14 +1,8 @@
|
|
1
|
-
import { defineComponent as de, toRefs as he, ref as w, onMounted as fe, computed as z, watch as D, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as
|
2
|
-
import {
|
3
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as de, toRefs as he, ref as w, onMounted as fe, computed as z, watch as D, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as H, unref as e, createBlock as g, withCtx as m, Fragment as S, renderList as R, createVNode as C, createCommentVNode as E, toDisplayString as M, createElementVNode as I, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
|
2
|
+
import { g as J, s as B, c as ye, M as Ce, U as ke, q as xe, F as we, i as Se } from "./main-RFuk2-Bk.js";
|
9
3
|
import "vue-router";
|
10
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
11
|
-
import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-
|
5
|
+
import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js";
|
12
6
|
const Re = {
|
13
7
|
key: 1,
|
14
8
|
class: "ha-empty"
|
@@ -19,7 +13,7 @@ const Re = {
|
|
19
13
|
}, ze = {
|
20
14
|
key: 0,
|
21
15
|
class: "normal-selection"
|
22
|
-
}, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */
|
16
|
+
}, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ I("i", { class: "fa fa-question-circle icon-question" }, null, -1), Be = /* @__PURE__ */ de({
|
23
17
|
__name: "Normal",
|
24
18
|
props: {
|
25
19
|
route: {},
|
@@ -32,31 +26,31 @@ const Re = {
|
|
32
26
|
set: {}
|
33
27
|
},
|
34
28
|
emits: ["change", "submit"],
|
35
|
-
setup(
|
36
|
-
let
|
37
|
-
|
29
|
+
setup(P, { expose: Q, emit: X }) {
|
30
|
+
let L = X, Y = P, { module: O, set: c, schema: V, table: t, layout: i, validateErrors: A } = he(Y), p = w({ page: 1, count: c.value[t.value.name].length }), k = w([]), b = w(), U = w([]), j = w(), Z = (l) => {
|
31
|
+
U.value.push(l);
|
38
32
|
}, ee = () => {
|
39
33
|
p.value.page = 1;
|
40
34
|
}, le = () => {
|
41
|
-
b.value =
|
42
|
-
let l =
|
35
|
+
b.value = T(t.value);
|
36
|
+
let l = B.getDefaultRow(t.value);
|
43
37
|
c.value[t.value.name].push(l);
|
44
38
|
}, te = () => {
|
45
39
|
let l = c.value[t.value.name];
|
46
40
|
k.value.forEach((a) => {
|
47
41
|
l.splice(l.indexOf(a), 1);
|
48
|
-
}), k.value = [],
|
42
|
+
}), k.value = [], U.value.forEach((a) => {
|
49
43
|
a.model && (a.model = !1);
|
50
44
|
});
|
51
|
-
},
|
52
|
-
|
45
|
+
}, q = (l) => c.value[t.value.name].indexOf(l), ae = (l, a, o, r, d) => {
|
46
|
+
L("change", l, a, o, r, d);
|
53
47
|
}, ne = (l, a) => {
|
54
48
|
l ? k.value.push(a) : Se.remove(k.value, a);
|
55
49
|
}, oe = (l) => {
|
56
|
-
|
50
|
+
L("submit", l);
|
57
51
|
}, re = (l, a = null) => {
|
58
52
|
p.value.page = l;
|
59
|
-
},
|
53
|
+
}, T = (l) => {
|
60
54
|
if (l.main || l.search.length == 0)
|
61
55
|
return null;
|
62
56
|
let a = {};
|
@@ -65,22 +59,22 @@ const Re = {
|
|
65
59
|
});
|
66
60
|
let o = {};
|
67
61
|
return o[l.name] = a, o;
|
68
|
-
},
|
69
|
-
b.value =
|
62
|
+
}, W = (l) => {
|
63
|
+
b.value = T(l);
|
70
64
|
}, ue = () => {
|
71
|
-
|
65
|
+
F();
|
72
66
|
}, se = (l) => {
|
73
|
-
|
74
|
-
},
|
67
|
+
W(l.schema[0]);
|
68
|
+
}, F = () => {
|
75
69
|
let l = j.value.clientWidth;
|
76
70
|
i.value.column = Math.ceil(l / 500);
|
77
71
|
}, me = () => {
|
78
|
-
|
72
|
+
F(), W(t.value);
|
79
73
|
};
|
80
74
|
fe(() => {
|
81
75
|
me();
|
82
76
|
});
|
83
|
-
let ce = z(() => J.splitRows(t.value.search, i.value.column)),
|
77
|
+
let ce = z(() => J.splitRows(t.value.search, i.value.column)), G = z(() => {
|
84
78
|
if (!b.value)
|
85
79
|
return c.value[t.value.name];
|
86
80
|
let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, r = c.value[t.value.name].filter(($) => {
|
@@ -102,24 +96,24 @@ const Re = {
|
|
102
96
|
return f;
|
103
97
|
});
|
104
98
|
return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
|
105
|
-
}), ie = z(() =>
|
99
|
+
}), ie = z(() => B.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), pe = z(() => {
|
106
100
|
let l = t.value.main ? `/${t.value.name}` : `/${V.value[0].name}/${t.value.name}`;
|
107
101
|
return ye.getComponent(`${l}/update-child`, "partial", "update-child");
|
108
102
|
});
|
109
103
|
return D(() => c.value[t.value.name], (l, a) => {
|
110
104
|
let o = l.length, r = a.length, d = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
|
111
105
|
(o > r || o < r && p.value.page > d) && (p.value.page = d);
|
112
|
-
}, { deep: !0 }), D(
|
106
|
+
}, { deep: !0 }), D(A, (l, a) => {
|
113
107
|
let o = l.find((r) => r.table == t.value.name);
|
114
108
|
o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
|
115
109
|
}), D(t, (l, a) => {
|
116
|
-
|
117
|
-
}),
|
110
|
+
F();
|
111
|
+
}), Q({ resize: ue, update: se }), (l, a) => {
|
118
112
|
const o = _("el-form-item"), r = _("el-col"), d = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
|
119
113
|
return n(), v("div", {
|
120
114
|
ref_key: "normalRef",
|
121
115
|
ref: j,
|
122
|
-
class:
|
116
|
+
class: H(["ha-normal-layout", { draggable: e(i).sort }])
|
123
117
|
}, [
|
124
118
|
e(b) ? (n(), g($, {
|
125
119
|
key: 0,
|
@@ -131,9 +125,9 @@ const Re = {
|
|
131
125
|
key: h
|
132
126
|
}, {
|
133
127
|
default: m(() => [
|
134
|
-
(n(!0), v(S, null, R(s, (u,
|
128
|
+
(n(!0), v(S, null, R(s, (u, N) => (n(), g(r, {
|
135
129
|
span: 24 / e(i).column,
|
136
|
-
key:
|
130
|
+
key: N
|
137
131
|
}, {
|
138
132
|
default: m(() => [
|
139
133
|
C(o, {
|
@@ -159,9 +153,9 @@ const Re = {
|
|
159
153
|
]),
|
160
154
|
_: 1
|
161
155
|
})) : E("", !0),
|
162
|
-
e(
|
163
|
-
(n(!0), v(S, null, R(e(
|
164
|
-
class:
|
156
|
+
e(G).length ? (n(), v("div", $e, [
|
157
|
+
(n(!0), v(S, null, R(e(G), (s) => (n(), v("div", {
|
158
|
+
class: H(["normal-row", { main: e(t).main }])
|
165
159
|
}, [
|
166
160
|
e(t).main ? E("", !0) : (n(), v("div", ze, [
|
167
161
|
C(f, {
|
@@ -172,22 +166,22 @@ const Re = {
|
|
172
166
|
onChange: (h) => e(ne)(h, s)
|
173
167
|
}, null, 8, ["row", "onChange"])
|
174
168
|
])),
|
175
|
-
|
169
|
+
I("div", Ee, [
|
176
170
|
(n(!0), v(S, null, R(e(ie), (h) => (n(), g(d, null, {
|
177
171
|
default: m(() => [
|
178
|
-
(n(!0), v(S, null, R(h, ({ data: u, span:
|
179
|
-
span:
|
172
|
+
(n(!0), v(S, null, R(h, ({ data: u, span: N }) => (n(), g(r, {
|
173
|
+
span: N,
|
180
174
|
key: `${e(t).name}.${u.name}`
|
181
175
|
}, {
|
182
176
|
default: m(() => [
|
183
177
|
C(o, {
|
184
|
-
style: ge(e(J).getStyle(u, e(
|
178
|
+
style: ge(e(J).getStyle(u, e(O).type, e(i).type)),
|
185
179
|
label: u.label,
|
186
|
-
rules: e(
|
187
|
-
prop: `[${e(t).name}][${e(
|
180
|
+
rules: e(B).getRules(e(A), e(t), u, e(q)(s)),
|
181
|
+
prop: `[${e(t).name}][${e(q)(s)}][${u.name}]`
|
188
182
|
}, {
|
189
183
|
label: m(() => [
|
190
|
-
_e(
|
184
|
+
_e(M(e(xe)(e(t).name, u.name)) + " ", 1),
|
191
185
|
u.control.tooltip ? (n(), g(x, {
|
192
186
|
key: 0,
|
193
187
|
trigger: "hover",
|
@@ -199,7 +193,7 @@ const Re = {
|
|
199
193
|
Ve
|
200
194
|
]),
|
201
195
|
default: m(() => [
|
202
|
-
|
196
|
+
I("pre", null, M(u.control.tooltip.content), 1)
|
203
197
|
]),
|
204
198
|
_: 2
|
205
199
|
}, 1032, ["title"])) : E("", !0)
|
@@ -212,7 +206,7 @@ const Re = {
|
|
212
206
|
set: e(c),
|
213
207
|
row: s,
|
214
208
|
onSubmit: e(oe),
|
215
|
-
onChange: (ve) => e(ae)(ve, e(c), e(t), u, e(
|
209
|
+
onChange: (ve) => e(ae)(ve, e(c), e(t), u, e(q)(s))
|
216
210
|
}, null, 8, ["schema", "table", "field", "set", "row", "onSubmit", "onChange"])
|
217
211
|
]),
|
218
212
|
_: 2
|
@@ -225,11 +219,11 @@ const Re = {
|
|
225
219
|
}, 1024))), 256))
|
226
220
|
])
|
227
221
|
], 2))), 256))
|
228
|
-
], 512)) : (n(), v("div", Re,
|
222
|
+
], 512)) : (n(), v("div", Re, M(e(ke)("common.no_data")), 1)),
|
229
223
|
e(t).main ? E("", !0) : (n(), g(e(we), { key: 3 }, {
|
230
224
|
left: m(() => [
|
231
225
|
(n(), g(be(e(pe)), {
|
232
|
-
module: e(
|
226
|
+
module: e(O),
|
233
227
|
set: e(c),
|
234
228
|
table: e(t),
|
235
229
|
selection: e(k),
|
@@ -254,5 +248,5 @@ const Re = {
|
|
254
248
|
}
|
255
249
|
});
|
256
250
|
export {
|
257
|
-
|
251
|
+
Be as default
|
258
252
|
};
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { defineComponent as V, toRefs as $, ref as r, onMounted as j, watch as A, unref as t, openBlock as E, createBlock as H, createCommentVNode as I } from "vue";
|
2
|
+
import { W as s, a as K, G as Q, s as d, t as X, l as U } from "./main-RFuk2-Bk.js";
|
3
|
+
import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js";
|
4
|
+
const le = /* @__PURE__ */ V({
|
5
|
+
__name: "Paging",
|
6
|
+
props: {
|
7
|
+
base: {},
|
8
|
+
route: {},
|
9
|
+
url: {},
|
10
|
+
win: {}
|
11
|
+
},
|
12
|
+
emits: ["navigate", "load"],
|
13
|
+
setup(b, { expose: k, emit: z }) {
|
14
|
+
let m = z, P = b, { url: p, base: y, route: u } = $(P), f = r(), v = r(), c = r(), h = r(), x = r(), C = r(), g = r(), o = r(), N = (e) => !0, L = (e) => {
|
15
|
+
let a = s.getPath(p.value), l = s.getPath(e);
|
16
|
+
return a != l;
|
17
|
+
}, R = (e = null) => {
|
18
|
+
_(e);
|
19
|
+
}, w = () => {
|
20
|
+
}, S = (e) => {
|
21
|
+
var l;
|
22
|
+
let a = K(e.module.type, e.module.name);
|
23
|
+
Q.setTitle(a, e.module.env), f.value = e.module, x.value = e.next, C.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema), c.value = (l = v.value) == null ? void 0 : l[0], h.value = c.value.layouts[0], g.value = d.getConditionForm(v.value, u.value.query.condition);
|
24
|
+
}, q = (e = null, a = null) => {
|
25
|
+
let l = e ?? u.value.query, n = s.getUrl(u.value.path, l);
|
26
|
+
m("load", n, !1, (T) => {
|
27
|
+
a && a(T);
|
28
|
+
});
|
29
|
+
}, i = (e, a) => {
|
30
|
+
m("navigate", e, a);
|
31
|
+
}, B = async (e) => {
|
32
|
+
let a = u.value.query;
|
33
|
+
a.page = 1;
|
34
|
+
let l = X.pure(g.value);
|
35
|
+
a.condition = U.encode(l);
|
36
|
+
let n = s.getUrl(u.value.path, a);
|
37
|
+
n == p.value ? q(a, e) : i(n, e);
|
38
|
+
}, D = (e, a) => {
|
39
|
+
let l = u.value.query;
|
40
|
+
l.order_by = U.encode(JSON.stringify(e));
|
41
|
+
let n = s.getUrl(u.value.path, l);
|
42
|
+
i(n, a);
|
43
|
+
}, W = (e, a = null) => {
|
44
|
+
let l = u.value.query;
|
45
|
+
l.page = e;
|
46
|
+
let n = s.getUrl(u.value.path, l);
|
47
|
+
i(n, a);
|
48
|
+
}, F = (e, a = null) => {
|
49
|
+
let l = u.value.query;
|
50
|
+
l.size = e;
|
51
|
+
let n = s.getUrl(u.value.path, l);
|
52
|
+
i(n, a);
|
53
|
+
}, G = (e) => {
|
54
|
+
h.value = c.value.layouts.find((a) => a.type == e);
|
55
|
+
}, J = () => {
|
56
|
+
S(y.value.data);
|
57
|
+
}, _ = (e = null) => q(null, e), M = (e) => {
|
58
|
+
if (!o.value || !o.value.resize)
|
59
|
+
return !1;
|
60
|
+
o.value.resize(e);
|
61
|
+
}, O = (e, a) => {
|
62
|
+
if (!o.value || !o.value.keyboard)
|
63
|
+
return !1;
|
64
|
+
o.value.keyboard(e, a);
|
65
|
+
};
|
66
|
+
return j(async () => {
|
67
|
+
J();
|
68
|
+
}), A(() => y.value, (e) => {
|
69
|
+
S(e.data);
|
70
|
+
}), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: O, resize: M }), (e, a) => t(h) ? (E(), H(Y, {
|
71
|
+
key: 0,
|
72
|
+
ref_key: "pagingRef",
|
73
|
+
ref: o,
|
74
|
+
module: t(f),
|
75
|
+
next: t(x),
|
76
|
+
set: t(C),
|
77
|
+
schema: t(v),
|
78
|
+
table: t(c),
|
79
|
+
layout: t(h),
|
80
|
+
"search-data": t(g),
|
81
|
+
onNavigate: t(i),
|
82
|
+
onSort: t(D),
|
83
|
+
onSearch: t(B),
|
84
|
+
onPageChange: t(W),
|
85
|
+
onSizeChange: t(F),
|
86
|
+
onLayoutChange: t(G),
|
87
|
+
onSucceed: t(R),
|
88
|
+
onClose: t(w)
|
89
|
+
}, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : I("", !0);
|
90
|
+
}
|
91
|
+
});
|
92
|
+
export {
|
93
|
+
le as default
|
94
|
+
};
|
@@ -1,13 +1,6 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import "./
|
3
|
-
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import { t as o } from "./main-BS_9gx1M.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
10
|
-
const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), ne = /* @__PURE__ */ D({
|
1
|
+
import { defineComponent as q, toRefs as D, ref as F, resolveComponent as g, openBlock as i, createElementBlock as H, Fragment as I, createElementVNode as l, unref as e, createBlock as m, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as p, createVNode as y, createSlots as P } from "vue";
|
2
|
+
import { U as o } from "./main-RFuk2-Bk.js";
|
3
|
+
const R = { class: "search-title" }, T = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), $ = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), z = { class: "search-operation" }, A = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), G = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), W = /* @__PURE__ */ q({
|
11
4
|
__name: "PagingHeader",
|
12
5
|
props: {
|
13
6
|
schema: {},
|
@@ -19,55 +12,55 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
19
12
|
},
|
20
13
|
emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
|
21
14
|
setup(b, { emit: k }) {
|
22
|
-
let
|
23
|
-
u.value = !0,
|
15
|
+
let s = k, x = b, { schema: K, table: C, layout: L, next: d, set: v, selection: a } = D(x), u = F(!1), w = () => {
|
16
|
+
u.value = !0, s("submit", () => {
|
24
17
|
u.value = !1;
|
25
18
|
});
|
26
19
|
}, N = (f) => {
|
27
|
-
|
20
|
+
s("add", f);
|
28
21
|
}, V = () => {
|
29
|
-
|
22
|
+
s("show-import");
|
30
23
|
}, B = () => {
|
31
|
-
|
24
|
+
s("show-export");
|
32
25
|
}, E = (f) => {
|
33
|
-
|
26
|
+
s("copy", f);
|
34
27
|
}, S = () => {
|
35
|
-
|
28
|
+
s("remove", a.value);
|
36
29
|
};
|
37
30
|
return (f, _) => {
|
38
31
|
var h;
|
39
|
-
const c = g("el-button"),
|
40
|
-
return
|
41
|
-
l("div",
|
42
|
-
e(
|
32
|
+
const c = g("el-button"), U = g("el-popconfirm");
|
33
|
+
return i(), H(I, null, [
|
34
|
+
l("div", R, [
|
35
|
+
e(d).insert ? (i(), m(c, {
|
43
36
|
key: 0,
|
44
37
|
type: "primary",
|
45
38
|
class: "btn-insert",
|
46
39
|
onClick: e(N)
|
47
40
|
}, {
|
48
41
|
icon: t(() => [
|
49
|
-
|
42
|
+
T
|
50
43
|
]),
|
51
44
|
default: t(() => [
|
52
45
|
r(" " + n(e(o)("paging.add")), 1)
|
53
46
|
]),
|
54
47
|
_: 1
|
55
|
-
}, 8, ["onClick"])) :
|
56
|
-
e(
|
48
|
+
}, 8, ["onClick"])) : p("", !0),
|
49
|
+
e(d).copy ? (i(), m(c, {
|
57
50
|
key: 1,
|
58
51
|
type: "primary",
|
59
|
-
disabled: !e(
|
60
|
-
onClick: _[0] || (_[0] = (
|
52
|
+
disabled: !e(a).length,
|
53
|
+
onClick: _[0] || (_[0] = (M) => e(E)(e(a)))
|
61
54
|
}, {
|
62
55
|
icon: t(() => [
|
63
|
-
|
56
|
+
$
|
64
57
|
]),
|
65
58
|
default: t(() => [
|
66
|
-
r(" " + n(e(o)("common.copy")) + n(e(
|
59
|
+
r(" " + n(e(o)("common.copy")) + n(e(a).length ? "(" + e(a).length + ")" : ""), 1)
|
67
60
|
]),
|
68
61
|
_: 1
|
69
|
-
}, 8, ["disabled"])) :
|
70
|
-
e(
|
62
|
+
}, 8, ["disabled"])) : p("", !0),
|
63
|
+
e(d).delete ? (i(), m(U, {
|
71
64
|
key: 2,
|
72
65
|
width: 180,
|
73
66
|
title: e(o)("common.confirm_delete"),
|
@@ -80,26 +73,26 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
80
73
|
type: "danger",
|
81
74
|
class: "btn-delete",
|
82
75
|
plain: "",
|
83
|
-
disabled: e(
|
76
|
+
disabled: e(a).length == 0
|
84
77
|
}, {
|
85
78
|
icon: t(() => [
|
86
|
-
|
79
|
+
j
|
87
80
|
]),
|
88
81
|
default: t(() => [
|
89
|
-
r(" " + n(e(o)("common.delete")) + "(" + n(e(
|
82
|
+
r(" " + n(e(o)("common.delete")) + "(" + n(e(a).length) + ") ", 1)
|
90
83
|
]),
|
91
84
|
_: 1
|
92
85
|
}, 8, ["disabled"])
|
93
86
|
]),
|
94
87
|
_: 1
|
95
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) :
|
88
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : p("", !0)
|
96
89
|
]),
|
97
|
-
l("div",
|
90
|
+
l("div", z, [
|
98
91
|
y(c, {
|
99
92
|
type: "primary",
|
100
93
|
loading: e(u),
|
101
94
|
onClick: e(w)
|
102
|
-
},
|
95
|
+
}, P({
|
103
96
|
default: t(() => [
|
104
97
|
r(" " + n(e(o)("paging.search")), 1)
|
105
98
|
]),
|
@@ -108,41 +101,41 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
|
|
108
101
|
e(u) ? void 0 : {
|
109
102
|
name: "icon",
|
110
103
|
fn: t(() => [
|
111
|
-
|
104
|
+
A
|
112
105
|
]),
|
113
106
|
key: "0"
|
114
107
|
}
|
115
108
|
]), 1032, ["loading", "onClick"]),
|
116
|
-
e(
|
109
|
+
e(d).import ? (i(), m(c, {
|
117
110
|
key: 0,
|
118
111
|
onClick: e(V)
|
119
112
|
}, {
|
120
113
|
icon: t(() => [
|
121
|
-
|
114
|
+
G
|
122
115
|
]),
|
123
116
|
default: t(() => [
|
124
117
|
r(" " + n(e(o)("paging.import")), 1)
|
125
118
|
]),
|
126
119
|
_: 1
|
127
|
-
}, 8, ["onClick"])) :
|
128
|
-
e(
|
120
|
+
}, 8, ["onClick"])) : p("", !0),
|
121
|
+
e(d).export ? (i(), m(c, {
|
129
122
|
key: 1,
|
130
123
|
disabled: ((h = e(v)[e(C).name]) == null ? void 0 : h.length) == 0,
|
131
124
|
onClick: e(B)
|
132
125
|
}, {
|
133
126
|
icon: t(() => [
|
134
|
-
|
127
|
+
J
|
135
128
|
]),
|
136
129
|
default: t(() => [
|
137
130
|
r(" " + n(e(o)("paging.export")), 1)
|
138
131
|
]),
|
139
132
|
_: 1
|
140
|
-
}, 8, ["disabled", "onClick"])) :
|
133
|
+
}, 8, ["disabled", "onClick"])) : p("", !0)
|
141
134
|
])
|
142
135
|
], 64);
|
143
136
|
};
|
144
137
|
}
|
145
138
|
});
|
146
139
|
export {
|
147
|
-
|
140
|
+
W as default
|
148
141
|
};
|
@@ -1,13 +1,6 @@
|
|
1
|
-
import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as
|
2
|
-
import "./
|
3
|
-
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import { t as a } from "./main-BS_9gx1M.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
10
|
-
const E = { class: "paging-row" }, I = /* @__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 { U as s } from "./main-RFuk2-Bk.js";
|
3
|
+
const E = { class: "paging-row" }, j = /* @__PURE__ */ x({
|
11
4
|
__name: "PagingRow",
|
12
5
|
props: {
|
13
6
|
table: {},
|
@@ -17,43 +10,43 @@ const E = { class: "paging-row" }, I = /* @__PURE__ */ x({
|
|
17
10
|
},
|
18
11
|
emits: ["preview", "edit", "copy", "before-remove", "remove"],
|
19
12
|
setup(d, { emit: b }) {
|
20
|
-
let i = b, k = d, { table: N, next: l, set:
|
21
|
-
i("preview",
|
13
|
+
let i = b, k = d, { table: N, next: l, set: U, row: c } = y(k), p = (o) => {
|
14
|
+
i("preview", c.value, o);
|
22
15
|
}, f = (o) => {
|
23
|
-
i("edit",
|
16
|
+
i("edit", c.value, o);
|
24
17
|
}, u = (o) => {
|
25
|
-
i("copy",
|
18
|
+
i("copy", c.value, o);
|
26
19
|
}, v = (o) => {
|
27
20
|
}, C = () => {
|
28
|
-
i("remove", [
|
21
|
+
i("remove", [c.value]);
|
29
22
|
};
|
30
23
|
return (o, t) => {
|
31
24
|
const w = _("el-popconfirm");
|
32
|
-
return r(),
|
33
|
-
e(l).detail ? (r(),
|
25
|
+
return r(), m("div", E, [
|
26
|
+
e(l).detail ? (r(), m("i", {
|
34
27
|
key: 0,
|
35
28
|
class: "fa fa-search-plus btn-icon",
|
36
29
|
onClick: t[0] || (t[0] = //@ts-ignore
|
37
|
-
(...n) => e(
|
38
|
-
})) :
|
39
|
-
e(l).update ? (r(),
|
30
|
+
(...n) => e(p) && e(p)(...n))
|
31
|
+
})) : a("", !0),
|
32
|
+
e(l).update ? (r(), m("i", {
|
40
33
|
key: 1,
|
41
34
|
class: "fa fa-pencil btn-icon",
|
42
35
|
onClick: t[1] || (t[1] = //@ts-ignore
|
43
36
|
(...n) => e(f) && e(f)(...n))
|
44
|
-
})) :
|
45
|
-
e(l).copy ? (r(),
|
37
|
+
})) : a("", !0),
|
38
|
+
e(l).copy ? (r(), m("i", {
|
46
39
|
key: 2,
|
47
40
|
class: "fa fa-copy btn-icon",
|
48
41
|
onClick: t[2] || (t[2] = //@ts-ignore
|
49
42
|
(...n) => e(u) && e(u)(...n))
|
50
|
-
})) :
|
43
|
+
})) : a("", !0),
|
51
44
|
e(l).delete ? (r(), g(w, {
|
52
45
|
key: 3,
|
53
46
|
width: 180,
|
54
|
-
title: e(
|
55
|
-
"confirm-button-text": e(
|
56
|
-
"cancel-button-text": e(
|
47
|
+
title: e(s)("common.confirm_delete"),
|
48
|
+
"confirm-button-text": e(s)("common.confirm"),
|
49
|
+
"cancel-button-text": e(s)("common.cancel"),
|
57
50
|
onConfirm: e(C)
|
58
51
|
}, {
|
59
52
|
reference: B(() => [
|
@@ -64,11 +57,11 @@ const E = { class: "paging-row" }, I = /* @__PURE__ */ x({
|
|
64
57
|
})
|
65
58
|
]),
|
66
59
|
_: 1
|
67
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) :
|
60
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : a("", !0)
|
68
61
|
]);
|
69
62
|
};
|
70
63
|
}
|
71
64
|
});
|
72
65
|
export {
|
73
|
-
|
66
|
+
j as default
|
74
67
|
};
|