halo-pc 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
- package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
- package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
- package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
- package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +47 -49
- 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 +2 -2
- package/dist/Article-X51Oz1hI.js +0 -198
- package/dist/Autocomplete-Ci1CXGQE.js +0 -55
- package/dist/Autocomplete-Co_6LMOR.js +0 -54
- package/dist/Callback-DwiifiR-.js +0 -27
- package/dist/Cascader-BrjhyzSI.js +0 -88
- package/dist/Cascader-DuG1TFF-.js +0 -48
- package/dist/Checkbox-DAsy2Gtb.js +0 -77
- package/dist/Code-CNioVNv0.js +0 -4
- package/dist/Code-CQQJJ5Jx.js +0 -61
- package/dist/Code-DAMTIprA.js +0 -43
- package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
- package/dist/Column-DMN_0BnR.js +0 -75
- package/dist/Comment-D4gvdlOG.js +0 -105
- package/dist/Compare-B9ms7AkH.js +0 -63
- package/dist/Compare-OHWeHehJ.js +0 -33
- package/dist/Copy-B6pQ--3T.js +0 -50
- package/dist/Custom-Dt_-KfRY.js +0 -58
- package/dist/Date-DAud0Tf9.js +0 -44
- package/dist/DateRange-ClHpJNRt.js +0 -64
- package/dist/DateTime-BO1c3xG2.js +0 -45
- package/dist/Daterange-BlMa4jnq.js +0 -64
- package/dist/Delete-BVH0G9h3.js +0 -63
- package/dist/Dictionary-DwcOV9xl.js +0 -60
- package/dist/Email-BljE8jDr.js +0 -55
- package/dist/Image-Bv2Ducoj.js +0 -9
- package/dist/Index-BFuHqDAs.js +0 -4
- package/dist/Index-D-TyDnGW.js +0 -4
- package/dist/Index-D2H5yTHn.js +0 -4
- package/dist/Index-YG1SBeIv.js +0 -76
- package/dist/Int-g8pM8ZyY.js +0 -47
- package/dist/List-ow09enu_.js +0 -80
- package/dist/Maintaince-Ctz2-ztL.js +0 -21
- package/dist/Month-CPMc1YrA.js +0 -45
- package/dist/Month-bDRWnCLy.js +0 -44
- package/dist/Paging-668tf97P.js +0 -100
- package/dist/QueryApi-UJNYVuJd.js +0 -21
- package/dist/RichText-BDRC1veI.js +0 -48
- package/dist/Select-RlOWoUwz.js +0 -118
- package/dist/Text-McD2Rcic.js +0 -59
- package/dist/Text-Stj6-whX.js +0 -4
- package/dist/Text-V0WQUxoe.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
- package/dist/TextLink-DmRFUHgF.js +0 -66
- package/dist/Time-CgOW3aic.js +0 -44
- package/dist/Timeline-BV-wfL2F.js +0 -60
- package/dist/Tree-r6FMB9WN.js +0 -123
- package/dist/TreeNode-Y4ktCxAQ.js +0 -43
- package/dist/Upload-BGYLdPIM.js +0 -151
- package/dist/Upload-Df16iaP1.js +0 -73
- package/dist/UploadApi-CnAUAXVp.js +0 -21
- package/dist/Year-OqMhzqjx.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-RpQODrQa.js +0 -8936
@@ -0,0 +1,73 @@
|
|
1
|
+
import { defineComponent as B, toRefs as W, ref as u, watch as E, openBlock as F, createBlock as G, resolveDynamicComponent as T, unref as t, withCtx as U, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
+
import { W as s, b as j, G as A, s as d, l as H } from "./main-65efBfek.js";
|
3
|
+
const I = { class: "not-support" }, O = /* @__PURE__ */ B({
|
4
|
+
__name: "List",
|
5
|
+
props: {
|
6
|
+
base: {},
|
7
|
+
route: {},
|
8
|
+
url: {},
|
9
|
+
win: {}
|
10
|
+
},
|
11
|
+
emits: ["load", "navigate"],
|
12
|
+
setup(_, { expose: S, emit: P }) {
|
13
|
+
let h = P, k = _, { url: m, base: p, route: r } = W(k), f = u(), i = u(), n = u(), y = u(), g = u(), o = u(), c = u(), q = (e) => {
|
14
|
+
let l = s.getPath(e), a = s.getPath(m.value);
|
15
|
+
return l != a;
|
16
|
+
}, C = (e) => {
|
17
|
+
let l = s.getPath(m.value), a = s.getPath(e);
|
18
|
+
return l != a;
|
19
|
+
}, x = (e) => {
|
20
|
+
var a;
|
21
|
+
let l = j(e.module.type, e.module.name);
|
22
|
+
A.setTitle(l, e.module.env), f.value = e.module, i.value = d.expandSchema(e.schema), n.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = d.expandSet(e.schema, e.set), c.value = d.getConditionForm(i.value, r.value.query.condition);
|
23
|
+
}, v = (e = null, l = null) => {
|
24
|
+
let a = e ?? r.value.query, N = s.getUrl(r.value.path, a);
|
25
|
+
h("load", N, !1, l);
|
26
|
+
}, R = (e) => {
|
27
|
+
v(null, e);
|
28
|
+
}, w = (e) => {
|
29
|
+
h("navigate", e);
|
30
|
+
}, D = async (e) => {
|
31
|
+
let l = r.value.query;
|
32
|
+
l.condition = H.encode(c.value), v(l, e);
|
33
|
+
}, b = () => {
|
34
|
+
v();
|
35
|
+
}, z = (e, l) => {
|
36
|
+
if (!o.value || !o.value.keyboard)
|
37
|
+
return !1;
|
38
|
+
o.value.keyboard(e, l);
|
39
|
+
}, L = (e) => {
|
40
|
+
if (!o.value || !o.value.resize)
|
41
|
+
return !1;
|
42
|
+
o.value.resize(e);
|
43
|
+
};
|
44
|
+
return (() => {
|
45
|
+
x(p.value.data);
|
46
|
+
})(), E(() => p.value, (e) => {
|
47
|
+
x(e.data);
|
48
|
+
}), S({ shouldLoad: q, shouldSpin: C, refresh: b, keyboard: z, resize: L }), (e, l) => (F(), G(T(`list-${t(n).layouts[0].type.toLowerCase()}`), {
|
49
|
+
ref_key: "listRef",
|
50
|
+
ref: o,
|
51
|
+
route: t(r),
|
52
|
+
module: t(f),
|
53
|
+
schema: t(i),
|
54
|
+
table: t(n),
|
55
|
+
layout: t(n).layouts[0],
|
56
|
+
next: t(y),
|
57
|
+
set: t(g),
|
58
|
+
"search-data": t(c),
|
59
|
+
onSucceed: t(R),
|
60
|
+
onSearch: t(D),
|
61
|
+
onNavigate: t(w),
|
62
|
+
onRefresh: t(b)
|
63
|
+
}, {
|
64
|
+
default: U(() => [
|
65
|
+
V("div", I, "未支持的列表布局方式:" + $(t(n).layouts[0].type), 1)
|
66
|
+
]),
|
67
|
+
_: 1
|
68
|
+
}, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
|
69
|
+
}
|
70
|
+
});
|
71
|
+
export {
|
72
|
+
O as default
|
73
|
+
};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { defineComponent as t, openBlock as n, createElementBlock as o, createElementVNode as e, toDisplayString as s, unref as c } from "vue";
|
2
|
+
import { m as i } from "./main-65efBfek.js";
|
3
|
+
const a = { class: "maintenance" }, r = /* @__PURE__ */ e("div", { class: "title" }, "系统维护中", -1), _ = { class: "description" }, u = /* @__PURE__ */ t({
|
4
|
+
__name: "Maintaince",
|
5
|
+
setup(d) {
|
6
|
+
return (m, l) => (n(), o("div", a, [
|
7
|
+
r,
|
8
|
+
e("div", _, s(c(i)), 1)
|
9
|
+
]));
|
10
|
+
}
|
11
|
+
});
|
12
|
+
export {
|
13
|
+
u as default
|
14
|
+
};
|
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: {}
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = i(() => import("./Text-
|
13
|
+
let r = i(() => import("./Text-y-q7UXlg.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
|
14
14
|
return (x, o) => (w(), V(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(n),
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineComponent as i, toRefs as f, computed as V, resolveComponent as h, openBlock as _, createBlock as b, unref as e, isRef as k } from "vue";
|
2
|
+
import { V as Y } from "./main-65efBfek.js";
|
3
|
+
const x = /* @__PURE__ */ i({
|
4
|
+
__name: "Month",
|
5
|
+
props: {
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
searchData: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
emits: ["submit", "change", "update:modelValue"],
|
13
|
+
setup(n, { emit: r }) {
|
14
|
+
let a = r, p = n, { table: u, field: o, searchData: g, modelValue: s } = f(p), l = V({
|
15
|
+
get() {
|
16
|
+
return s.value;
|
17
|
+
},
|
18
|
+
set(t) {
|
19
|
+
a("update:modelValue", t), a("change", t);
|
20
|
+
}
|
21
|
+
});
|
22
|
+
return (t, m) => {
|
23
|
+
const c = h("el-date-picker");
|
24
|
+
return _(), b(c, {
|
25
|
+
type: "month",
|
26
|
+
placeholder: e(Y)(e(u).name, e(o).name),
|
27
|
+
"value-format": "YYYY-MM",
|
28
|
+
disabled: e(o).control.readonly,
|
29
|
+
modelValue: e(l),
|
30
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
|
31
|
+
}, null, 8, ["placeholder", "disabled", "modelValue"]);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
});
|
35
|
+
export {
|
36
|
+
x as default
|
37
|
+
};
|
@@ -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-65efBfek.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-y-q7UXlg.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
|
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 F, 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 k, createCommentVNode as E, toDisplayString as I, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
|
2
|
+
import { i as J, s as M, c as ye, M as ke, U as Ce, q as xe, I as we, k as Se } from "./main-65efBfek.js";
|
9
3
|
import "vue-router";
|
10
4
|
import "./assets/intro.js-DxWjEdp_.js";
|
11
|
-
import { _ as
|
5
|
+
import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.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__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Me = /* @__PURE__ */ de({
|
23
17
|
__name: "Normal",
|
24
18
|
props: {
|
25
19
|
route: {},
|
@@ -32,28 +26,28 @@ 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 }), C = 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
35
|
b.value = T(t.value);
|
42
|
-
let l =
|
36
|
+
let l = M.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
|
+
C.value.forEach((a) => {
|
47
41
|
l.splice(l.indexOf(a), 1);
|
48
|
-
}),
|
42
|
+
}), C.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
|
-
l ?
|
48
|
+
l ? C.value.push(a) : Se.remove(C.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) => {
|
@@ -68,19 +62,19 @@ const Re = {
|
|
68
62
|
}, W = (l) => {
|
69
63
|
b.value = T(l);
|
70
64
|
}, ue = () => {
|
71
|
-
|
65
|
+
N();
|
72
66
|
}, se = (l) => {
|
73
67
|
W(l.schema[0]);
|
74
|
-
},
|
68
|
+
}, N = () => {
|
75
69
|
let l = j.value.clientWidth;
|
76
70
|
i.value.column = Math.ceil(l / 500);
|
77
71
|
}, me = () => {
|
78
|
-
|
72
|
+
N(), W(t.value);
|
79
73
|
};
|
80
74
|
fe(() => {
|
81
75
|
me();
|
82
76
|
});
|
83
|
-
let ce = z(() =>
|
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(() => M.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
|
-
return
|
110
|
-
let o = l.length, r = a.length, d =
|
103
|
+
return F(() => c.value[t.value.name], (l, a) => {
|
104
|
+
let o = l.length, r = a.length, d = ke.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 }),
|
106
|
+
}, { deep: !0 }), F(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
|
-
}),
|
116
|
-
|
117
|
-
}),
|
109
|
+
}), F(t, (l, a) => {
|
110
|
+
N();
|
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,16 +125,16 @@ 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, D) => (n(), g(r, {
|
135
129
|
span: 24 / e(i).column,
|
136
|
-
key:
|
130
|
+
key: D
|
137
131
|
}, {
|
138
132
|
default: m(() => [
|
139
|
-
|
133
|
+
k(o, {
|
140
134
|
label: u.label
|
141
135
|
}, {
|
142
136
|
default: m(() => [
|
143
|
-
|
137
|
+
k(K, {
|
144
138
|
schema: e(V),
|
145
139
|
table: e(t),
|
146
140
|
field: u,
|
@@ -161,10 +155,10 @@ const Re = {
|
|
161
155
|
})) : E("", !0),
|
162
156
|
e(G).length ? (n(), v("div", $e, [
|
163
157
|
(n(!0), v(S, null, R(e(G), (s) => (n(), v("div", {
|
164
|
-
class:
|
158
|
+
class: H(["normal-row", { main: e(t).main }])
|
165
159
|
}, [
|
166
160
|
e(t).main ? E("", !0) : (n(), v("div", ze, [
|
167
|
-
|
161
|
+
k(f, {
|
168
162
|
ref_for: !0,
|
169
163
|
ref: e(Z),
|
170
164
|
class: "normal-checkbox",
|
@@ -172,22 +166,22 @@ const Re = {
|
|
172
166
|
onChange: (h) => e(ne)(h, s)
|
173
167
|
}, null, 8, ["row", "onChange"])
|
174
168
|
])),
|
175
|
-
|
169
|
+
B("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: D }) => (n(), g(r, {
|
173
|
+
span: D,
|
180
174
|
key: `${e(t).name}.${u.name}`
|
181
175
|
}, {
|
182
176
|
default: m(() => [
|
183
|
-
|
184
|
-
style: ge(e(
|
177
|
+
k(o, {
|
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(M).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(I(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,20 +193,20 @@ const Re = {
|
|
199
193
|
Ve
|
200
194
|
]),
|
201
195
|
default: m(() => [
|
202
|
-
|
196
|
+
B("pre", null, I(u.control.tooltip.content), 1)
|
203
197
|
]),
|
204
198
|
_: 2
|
205
199
|
}, 1032, ["title"])) : E("", !0)
|
206
200
|
]),
|
207
201
|
default: m(() => [
|
208
|
-
|
202
|
+
k(K, {
|
209
203
|
schema: e(V),
|
210
204
|
table: e(t),
|
211
205
|
field: u,
|
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,20 +219,20 @@ const Re = {
|
|
225
219
|
}, 1024))), 256))
|
226
220
|
])
|
227
221
|
], 2))), 256))
|
228
|
-
], 512)) : (n(), v("div", Re,
|
222
|
+
], 512)) : (n(), v("div", Re, I(e(Ce)("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
|
-
selection: e(
|
229
|
+
selection: e(C),
|
236
230
|
onAdd: e(le),
|
237
231
|
onRemove: e(te)
|
238
232
|
}, null, 40, ["module", "set", "table", "selection", "onAdd", "onRemove"]))
|
239
233
|
]),
|
240
234
|
default: m(() => [
|
241
|
-
|
235
|
+
k(y, {
|
242
236
|
background: "",
|
243
237
|
layout: "total, prev, pager, next, jumper",
|
244
238
|
"current-page": e(p).page,
|
@@ -254,5 +248,5 @@ const Re = {
|
|
254
248
|
}
|
255
249
|
});
|
256
250
|
export {
|
257
|
-
|
251
|
+
Me 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, b as K, G as Q, s as d, t as X, l as U } from "./main-65efBfek.js";
|
3
|
+
import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.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
|
+
};
|