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,111 @@
|
|
1
|
+
import { defineComponent as T, toRefs as U, ref as d, computed as A, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as D, withModifiers as O, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
|
2
|
+
import { V as J, f as P, g as Q, L as W } from "./main-RFuk2-Bk.js";
|
3
|
+
const X = { class: "option-text" }, Y = {
|
4
|
+
key: 0,
|
5
|
+
class: "option-suffix"
|
6
|
+
}, le = /* @__PURE__ */ T({
|
7
|
+
__name: "Select",
|
8
|
+
props: {
|
9
|
+
schema: {},
|
10
|
+
table: {},
|
11
|
+
field: {},
|
12
|
+
set: {},
|
13
|
+
row: {},
|
14
|
+
modelValue: { type: [String, Number, Boolean, Array] }
|
15
|
+
},
|
16
|
+
emits: ["submit", "change", "update:modelValue"],
|
17
|
+
setup(C, { emit: E }) {
|
18
|
+
let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = U(B), x = d(), g = d(), v = d(!1), f = d(u.value.control.data.data), K = (t) => {
|
19
|
+
t == "" && (t = null);
|
20
|
+
let e;
|
21
|
+
if (P.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
|
22
|
+
let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
|
23
|
+
e && (o = f.value.find((i) => i.value == e).text);
|
24
|
+
debugger;
|
25
|
+
R.value[a.name] = o;
|
26
|
+
}
|
27
|
+
b(m.value, u.value), s("change", t);
|
28
|
+
}, N = () => {
|
29
|
+
s("submit");
|
30
|
+
}, j = () => {
|
31
|
+
}, F = () => {
|
32
|
+
v.value = !0;
|
33
|
+
let t = { text: g.value, conditions: [] };
|
34
|
+
u.value.control.data.conditions.forEach((e) => {
|
35
|
+
let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
36
|
+
t.conditions.push({ name: e.name, value: o });
|
37
|
+
}), W.post(u.value.control.data.route, t).then(({ data: e }) => {
|
38
|
+
f.value = e;
|
39
|
+
}).finally(() => {
|
40
|
+
v.value = !1, I(() => {
|
41
|
+
let e = f.value.find((a) => a.value == r.value);
|
42
|
+
x.value.scrollToOption(e);
|
43
|
+
});
|
44
|
+
});
|
45
|
+
}, L = (t) => {
|
46
|
+
g.value = t, F();
|
47
|
+
}, M = (t, e) => {
|
48
|
+
let a = [];
|
49
|
+
return S.value.forEach((o) => {
|
50
|
+
o.fields.forEach((l) => {
|
51
|
+
l.dictionary && l.dictionary.conditions.forEach((i) => {
|
52
|
+
i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
|
53
|
+
});
|
54
|
+
});
|
55
|
+
}), a;
|
56
|
+
}, b = (t, e) => {
|
57
|
+
M(t, e).forEach((o) => {
|
58
|
+
Q.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
|
59
|
+
});
|
60
|
+
}, r = A({
|
61
|
+
get() {
|
62
|
+
return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
|
63
|
+
},
|
64
|
+
set(t) {
|
65
|
+
s("update:modelValue", t), s("change", t);
|
66
|
+
}
|
67
|
+
});
|
68
|
+
return (t, e) => {
|
69
|
+
const a = _("el-option"), o = _("el-select");
|
70
|
+
return c(), y(o, {
|
71
|
+
ref_key: "selectRef",
|
72
|
+
ref: x,
|
73
|
+
filterable: "",
|
74
|
+
remote: "",
|
75
|
+
"reserve-keyword": "",
|
76
|
+
"default-first-option": "",
|
77
|
+
"remote-show-suffix": "",
|
78
|
+
"loading-text": "加载中",
|
79
|
+
clearable: "",
|
80
|
+
placeholder: n(J)(n(m).name, n(u).name),
|
81
|
+
multiple: n(u).control.multiple,
|
82
|
+
"remote-method": n(L),
|
83
|
+
loading: n(v),
|
84
|
+
disabled: n(u).control.readonly,
|
85
|
+
onKeyup: D(O(n(N), ["alt"]), ["enter", "native"]),
|
86
|
+
onBlur: n(j),
|
87
|
+
onChange: n(K),
|
88
|
+
modelValue: n(r),
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
|
90
|
+
}, {
|
91
|
+
default: V(() => [
|
92
|
+
(c(!0), k(q, null, z(n(f), (l, i) => (c(), y(a, {
|
93
|
+
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
94
|
+
value: l.value,
|
95
|
+
key: l.value
|
96
|
+
}, {
|
97
|
+
default: V(() => [
|
98
|
+
G("span", X, w(l.text), 1),
|
99
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
|
100
|
+
]),
|
101
|
+
_: 2
|
102
|
+
}, 1032, ["label", "value"]))), 128))
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
}, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
|
106
|
+
};
|
107
|
+
}
|
108
|
+
});
|
109
|
+
export {
|
110
|
+
le as default
|
111
|
+
};
|
@@ -1,16 +1,9 @@
|
|
1
|
-
import { defineComponent as K, toRefs as R, ref 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 { t as z, f as A, h as G } from "./main-BS_9gx1M.js";
|
9
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
1
|
+
import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as U, withModifiers as q, isRef as L, withCtx as p, createElementBlock as h, Fragment as M, renderList as N, createElementVNode as F, toDisplayString as _, createCommentVNode as j } from "vue";
|
2
|
+
import { U as z, q as A, L as G } from "./main-RFuk2-Bk.js";
|
10
3
|
const H = { class: "option-text" }, I = {
|
11
4
|
key: 0,
|
12
5
|
class: "option-suffix"
|
13
|
-
},
|
6
|
+
}, T = /* @__PURE__ */ K({
|
14
7
|
__name: "Select",
|
15
8
|
props: {
|
16
9
|
schema: {},
|
@@ -21,18 +14,18 @@ const H = { class: "option-text" }, I = {
|
|
21
14
|
},
|
22
15
|
emits: ["change", "submit", "update:modelValue"],
|
23
16
|
setup(v, { emit: x }) {
|
24
|
-
let
|
25
|
-
|
17
|
+
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
|
18
|
+
r("submit");
|
26
19
|
}, w = () => {
|
27
20
|
}, B = (l) => {
|
28
|
-
|
21
|
+
i.value = l, D();
|
29
22
|
}, D = () => {
|
30
|
-
let l = { text:
|
23
|
+
let l = { text: i.value, conditions: [] };
|
31
24
|
a.value.control.data.conditions.forEach((o) => {
|
32
25
|
let u = y.value[o.table][o.field];
|
33
26
|
l.conditions.push({ name: o.name, value: u });
|
34
27
|
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
35
|
-
|
28
|
+
m.value = o;
|
36
29
|
}).finally(() => {
|
37
30
|
k.value = !1;
|
38
31
|
});
|
@@ -41,12 +34,12 @@ const H = { class: "option-text" }, I = {
|
|
41
34
|
return V.value;
|
42
35
|
},
|
43
36
|
set(l) {
|
44
|
-
|
37
|
+
r("update:modelValue", l), r("change", l);
|
45
38
|
}
|
46
39
|
});
|
47
40
|
return (l, o) => {
|
48
|
-
const u =
|
49
|
-
return
|
41
|
+
const u = c("el-option"), E = c("el-select");
|
42
|
+
return s(), f(E, {
|
50
43
|
ref: "selectRef",
|
51
44
|
filterable: "",
|
52
45
|
remote: "",
|
@@ -59,20 +52,20 @@ const H = { class: "option-text" }, I = {
|
|
59
52
|
"loading-text": "加载中",
|
60
53
|
"remote-method": t(B),
|
61
54
|
disabled: t(a).control.readonly,
|
62
|
-
onKeyup:
|
55
|
+
onKeyup: U(q(t(C), ["alt"]), ["enter", "native"]),
|
63
56
|
onChange: t(w),
|
64
57
|
modelValue: t(n),
|
65
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
58
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => L(n) ? n.value = e : n = e)
|
66
59
|
}, {
|
67
|
-
default:
|
68
|
-
(
|
60
|
+
default: p(() => [
|
61
|
+
(s(!0), h(M, null, N(t(m), (e, O) => (s(), f(u, {
|
69
62
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
70
63
|
value: e.value,
|
71
64
|
key: e.value
|
72
65
|
}, {
|
73
|
-
default:
|
74
|
-
|
75
|
-
e.suffix ? (
|
66
|
+
default: p(() => [
|
67
|
+
F("span", H, _(e.text), 1),
|
68
|
+
e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : j("", !0)
|
76
69
|
]),
|
77
70
|
_: 2
|
78
71
|
}, 1032, ["label", "value"]))), 128))
|
@@ -83,5 +76,5 @@ const H = { class: "option-text" }, I = {
|
|
83
76
|
}
|
84
77
|
});
|
85
78
|
export {
|
86
|
-
|
79
|
+
T as default
|
87
80
|
};
|
@@ -1,16 +1,10 @@
|
|
1
|
-
import { defineComponent as Ue, toRefs as $e, ref as
|
2
|
-
import "./
|
3
|
-
import "./
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
-
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js";
|
10
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js";
|
11
|
-
const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
|
12
|
-
We
|
13
|
-
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], cl = /* @__PURE__ */ Ue({
|
1
|
+
import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as W, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as qe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
|
2
|
+
import { c as Ne, K as Pe, U as oe, q as Fe, W as P, _ as Me, t as Oe, L as We, v as ue, a as je, G as Ae, s as re } from "./main-RFuk2-Bk.js";
|
3
|
+
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js";
|
4
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js";
|
5
|
+
const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
|
6
|
+
Qe
|
7
|
+
], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ Ue({
|
14
8
|
__name: "Single",
|
15
9
|
props: {
|
16
10
|
base: {},
|
@@ -20,68 +14,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
20
14
|
},
|
21
15
|
emits: ["navigate", "load", "succeed", "close"],
|
22
16
|
setup(se, { expose: ie, emit: de }) {
|
23
|
-
let
|
24
|
-
let t =
|
17
|
+
let B = de, me = se, { url: ve, base: j, route: z } = $e(me), p = u(), b = u(), v = u(), r = u(), y = u(), D = u(), c = u({ table: null, layout: null }), w = u(), q = u([]), ce = u(), E = u(), R = u(), F = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
|
18
|
+
let t = P.getPath(ve.value), a = P.getPath(l);
|
25
19
|
return t != a;
|
26
20
|
}, be = () => {
|
27
21
|
Ve();
|
28
|
-
}, _e = (l, t) => {
|
29
|
-
A("copy", l, t);
|
30
22
|
}, ye = (l, t) => {
|
23
|
+
A("copy", l, t);
|
24
|
+
}, _e = (l, t) => {
|
31
25
|
A("update", l, t);
|
32
26
|
}, he = () => {
|
33
27
|
i.value.visible = !1;
|
34
28
|
}, A = (l, t, a) => {
|
35
29
|
let n = ge(l, t);
|
36
|
-
a.ctrlKey ?
|
30
|
+
a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
|
37
31
|
}, ge = (l, t = null) => {
|
38
32
|
let a = `${b.value[l].route}`;
|
39
33
|
if (t != null) {
|
40
|
-
let n = t[
|
34
|
+
let n = t[y.value.key.name];
|
41
35
|
a += `?id=${n}`;
|
42
36
|
}
|
43
37
|
return a;
|
44
38
|
}, we = (l, t, a) => {
|
45
|
-
(a.ctrlKey || k.value) && (
|
39
|
+
(a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
|
46
40
|
n.control.textualize = !1;
|
47
41
|
}));
|
48
42
|
}, G = (l) => {
|
49
|
-
i.value.visible = !1,
|
43
|
+
i.value.visible = !1, B("succeed", Q.value, l);
|
50
44
|
}, Ce = () => {
|
51
|
-
|
52
|
-
},
|
53
|
-
},
|
45
|
+
B("close");
|
46
|
+
}, H = (l, t, a, n, T) => {
|
47
|
+
}, I = (l, t) => {
|
54
48
|
if (t) {
|
55
|
-
|
49
|
+
D.value = y.value.layouts.find((a) => a.type == l);
|
56
50
|
return;
|
57
51
|
}
|
58
|
-
|
52
|
+
c.value.layout = c.value.table.layouts.find((a) => a.type == l);
|
59
53
|
}, ke = (l) => {
|
60
|
-
let t =
|
61
|
-
|
54
|
+
let t = r.value.find((a) => a.name == l);
|
55
|
+
c.value.table = t, c.value.layout = t.layouts[0];
|
62
56
|
}, xe = (l) => {
|
63
57
|
let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
|
64
|
-
|
65
|
-
},
|
58
|
+
r.value.find((T) => T.name == a).main || (w.value = a);
|
59
|
+
}, Re = (l, t = null, a = null) => {
|
66
60
|
ae(() => {
|
67
61
|
E.value.validate((n, T) => {
|
68
62
|
if (!n)
|
69
63
|
return xe(T), a && a(!1), !1;
|
70
|
-
let U =
|
71
|
-
t && t(U,
|
72
|
-
E.value.clearValidate(),
|
64
|
+
let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
65
|
+
t && t(U, v.value), We.post(U, v.value).then(({ data: $, message: V }) => {
|
66
|
+
E.value.clearValidate(), ue.success(V), G(v.value);
|
73
67
|
}).catch(({ code: $, data: V, message: X }) => {
|
74
68
|
if ($ != "ValidateError")
|
75
69
|
return;
|
76
|
-
|
77
|
-
let
|
78
|
-
if (
|
79
|
-
let
|
80
|
-
|
70
|
+
q.value = V;
|
71
|
+
let N = V.find((_) => _.table !== y.value.name);
|
72
|
+
if (N) {
|
73
|
+
let _ = r.value.find((o) => o.name == N.table);
|
74
|
+
_ && (w.value = _.name);
|
81
75
|
}
|
82
76
|
ae(() => {
|
83
|
-
E.value.clearValidate(), E.value.validate((
|
84
|
-
|
77
|
+
E.value.clearValidate(), E.value.validate((_, o) => {
|
78
|
+
_ || (a && a(!1), q.value = []);
|
85
79
|
});
|
86
80
|
});
|
87
81
|
}).finally(() => {
|
@@ -89,76 +83,76 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
89
83
|
});
|
90
84
|
});
|
91
85
|
});
|
92
|
-
},
|
86
|
+
}, J = (l) => {
|
93
87
|
var a, n;
|
94
|
-
let t =
|
95
|
-
Ae.setTitle(t, l.module.env),
|
96
|
-
},
|
97
|
-
|
88
|
+
let t = je(l.module.type, l.module.name);
|
89
|
+
Ae.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, v.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, c.value.table = r.value[1], c.value.layout = r.value[1].layouts[0]);
|
90
|
+
}, Se = (l) => {
|
91
|
+
R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
|
98
92
|
}, Te = (l, t) => {
|
99
93
|
if (l == "ctrlS") {
|
100
|
-
if (
|
101
|
-
if (!
|
94
|
+
if (p.value.type == "Detail") {
|
95
|
+
if (!K.value || !K.value.keyboard)
|
102
96
|
return !1;
|
103
|
-
|
97
|
+
K.value.keyboard(l, t);
|
104
98
|
return;
|
105
99
|
}
|
106
|
-
|
100
|
+
O(t);
|
107
101
|
}
|
108
102
|
}, Ve = () => {
|
109
|
-
let l =
|
110
|
-
|
103
|
+
let l = P.getUrl(z.value.path, z.value.query);
|
104
|
+
B("load", l, !1, (t) => {
|
111
105
|
});
|
112
106
|
};
|
113
107
|
(() => {
|
114
|
-
|
108
|
+
J(j.value.data);
|
115
109
|
})();
|
116
|
-
let
|
117
|
-
if (!
|
118
|
-
|
110
|
+
let O = (l) => {
|
111
|
+
if (!F.value.submit) {
|
112
|
+
ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
|
119
113
|
return;
|
120
114
|
}
|
121
|
-
|
115
|
+
F.value.submit(l);
|
122
116
|
}, ze = Y(() => {
|
123
|
-
let l = `/${
|
124
|
-
return
|
125
|
-
}),
|
126
|
-
return
|
127
|
-
|
128
|
-
}), ie({ shouldLoad:
|
129
|
-
const a =
|
130
|
-
return d(),
|
117
|
+
let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
|
118
|
+
return Ne.getComponent(l, "partial", t);
|
119
|
+
}), Q = Y(() => p.value.type.toLowerCase());
|
120
|
+
return Le(() => j.value, (l) => {
|
121
|
+
J(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
|
122
|
+
}), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
|
123
|
+
const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), U = f("el-form"), $ = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
|
124
|
+
return d(), W("div", {
|
131
125
|
ref_key: "singleRef",
|
132
|
-
ref:
|
133
|
-
class:
|
126
|
+
ref: ce,
|
127
|
+
class: Be(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
|
134
128
|
}, [
|
135
|
-
m("div",
|
129
|
+
m("div", He, [
|
136
130
|
h($, { class: "main-scroller" }, {
|
137
131
|
default: s(() => [
|
138
132
|
h(U, {
|
139
133
|
ref_key: "formRef",
|
140
134
|
ref: E,
|
141
|
-
model: e(
|
142
|
-
onSubmit: t[3] || (t[3] =
|
135
|
+
model: e(v),
|
136
|
+
onSubmit: t[3] || (t[3] = De(() => {
|
143
137
|
}, ["prevent"]))
|
144
138
|
}, {
|
145
139
|
default: s(() => [
|
146
140
|
h(ne, {
|
147
141
|
ref_key: "mainRef",
|
148
|
-
ref:
|
149
|
-
module: e(
|
150
|
-
schema: e(
|
151
|
-
table: e(
|
152
|
-
layout: e(
|
142
|
+
ref: R,
|
143
|
+
module: e(p),
|
144
|
+
schema: e(r),
|
145
|
+
table: e(y),
|
146
|
+
layout: e(D),
|
153
147
|
next: e(b),
|
154
|
-
set: e(
|
148
|
+
set: e(v),
|
155
149
|
route: e(z),
|
156
|
-
"validate-errors": e(
|
157
|
-
onChange: e(
|
158
|
-
onLayoutChange: t[0] || (t[0] = (o) => e(
|
159
|
-
onSubmit: e(
|
150
|
+
"validate-errors": e(q),
|
151
|
+
onChange: e(H),
|
152
|
+
onLayoutChange: t[0] || (t[0] = (o) => e(I)(o, !0)),
|
153
|
+
onSubmit: e(O)
|
160
154
|
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
|
161
|
-
e(
|
155
|
+
e(r).length > 1 ? (d(), g(T, {
|
162
156
|
key: 0,
|
163
157
|
type: "border-card",
|
164
158
|
onTabChange: e(ke),
|
@@ -166,7 +160,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
166
160
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
|
167
161
|
}, {
|
168
162
|
default: s(() => [
|
169
|
-
(d(!0),
|
163
|
+
(d(!0), W(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
|
170
164
|
name: o.name,
|
171
165
|
key: o.name
|
172
166
|
}, {
|
@@ -177,7 +171,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
177
171
|
disabled: !o.tooltip
|
178
172
|
}, {
|
179
173
|
default: s(() => [
|
180
|
-
m("div", null, x(e(
|
174
|
+
m("div", null, x(e(Pe)(o.table)), 1)
|
181
175
|
]),
|
182
176
|
_: 2
|
183
177
|
}, 1032, ["content", "disabled"])
|
@@ -186,53 +180,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
186
180
|
}, 1032, ["name"]))), 128))
|
187
181
|
]),
|
188
182
|
_: 1
|
189
|
-
}, 8, ["onTabChange", "modelValue"])) :
|
190
|
-
e(
|
183
|
+
}, 8, ["onTabChange", "modelValue"])) : L("", !0),
|
184
|
+
e(c).table ? (d(), g(ne, {
|
191
185
|
key: 1,
|
192
186
|
ref_key: "childRef",
|
193
187
|
ref: C,
|
194
|
-
module: e(
|
195
|
-
schema: e(
|
196
|
-
table: e(
|
197
|
-
layout: e(
|
188
|
+
module: e(p),
|
189
|
+
schema: e(r),
|
190
|
+
table: e(c).table,
|
191
|
+
layout: e(c).layout,
|
198
192
|
next: e(b),
|
199
|
-
set: e(
|
193
|
+
set: e(v),
|
200
194
|
route: e(z),
|
201
|
-
"validate-errors": e(
|
195
|
+
"validate-errors": e(q),
|
202
196
|
onRowEdit: e(we),
|
203
|
-
onChange: e(
|
204
|
-
onLayoutChange: t[2] || (t[2] = (o) => e(
|
205
|
-
onSubmit: e(
|
206
|
-
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) :
|
197
|
+
onChange: e(H),
|
198
|
+
onLayoutChange: t[2] || (t[2] = (o) => e(I)(o, !1)),
|
199
|
+
onSubmit: e(O)
|
200
|
+
}, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
|
207
201
|
]),
|
208
202
|
_: 1
|
209
203
|
}, 8, ["model"])
|
210
204
|
]),
|
211
205
|
_: 1
|
212
206
|
}),
|
213
|
-
(d(), g(
|
207
|
+
(d(), g(qe(e(ze)), {
|
214
208
|
ref_key: "updateRef",
|
215
|
-
ref:
|
209
|
+
ref: F,
|
216
210
|
class: "main-footer",
|
217
|
-
schema: e(
|
218
|
-
table: e(
|
219
|
-
layout: e(
|
211
|
+
schema: e(r),
|
212
|
+
table: e(y),
|
213
|
+
layout: e(D),
|
220
214
|
next: e(b),
|
221
|
-
set: e(
|
215
|
+
set: e(v),
|
222
216
|
route: e(z),
|
223
|
-
onCopy: e(
|
224
|
-
onEdit: e(
|
225
|
-
onSubmit: e(
|
217
|
+
onCopy: e(ye),
|
218
|
+
onEdit: e(_e),
|
219
|
+
onSubmit: e(Re),
|
226
220
|
onClose: e(Ce)
|
227
221
|
}, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
|
228
222
|
]),
|
229
|
-
e(k) ? (d(), g(
|
223
|
+
e(k) ? (d(), g(N, {
|
230
224
|
key: 0,
|
231
225
|
class: "side-form"
|
232
226
|
}, {
|
233
227
|
header: s(() => [
|
234
|
-
m("div",
|
235
|
-
m("div",
|
228
|
+
m("div", Ie, [
|
229
|
+
m("div", Je, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
|
236
230
|
m("div", {
|
237
231
|
class: "row-close",
|
238
232
|
onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
|
@@ -247,12 +241,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
247
241
|
"label-width": "80px"
|
248
242
|
}, {
|
249
243
|
default: s(() => [
|
250
|
-
(d(!0),
|
251
|
-
style:
|
244
|
+
(d(!0), W(ee, null, le(e(S).show, (o) => (d(), g(X, {
|
245
|
+
style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
|
252
246
|
rules: o.rules
|
253
247
|
}, {
|
254
248
|
label: s(() => [
|
255
|
-
te(x(e(
|
249
|
+
te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
|
256
250
|
o.control.tooltip ? (d(), g(V, {
|
257
251
|
key: 0,
|
258
252
|
trigger: "hover",
|
@@ -267,15 +261,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
267
261
|
m("pre", null, x(o.control.tooltip.content), 1)
|
268
262
|
]),
|
269
263
|
_: 2
|
270
|
-
}, 1032, ["title"])) :
|
264
|
+
}, 1032, ["title"])) : L("", !0)
|
271
265
|
]),
|
272
266
|
default: s(() => [
|
273
267
|
h(Ge, {
|
274
|
-
schema: e(
|
275
|
-
table: e(
|
268
|
+
schema: e(r),
|
269
|
+
table: e(S),
|
276
270
|
field: o,
|
277
|
-
set: e(
|
278
|
-
row: e(
|
271
|
+
set: e(v),
|
272
|
+
row: e(M)
|
279
273
|
}, null, 8, ["schema", "table", "field", "set", "row"])
|
280
274
|
]),
|
281
275
|
_: 2
|
@@ -288,12 +282,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
288
282
|
})
|
289
283
|
]),
|
290
284
|
_: 1
|
291
|
-
})) :
|
292
|
-
e(i).page ? (d(), g(
|
285
|
+
})) : L("", !0),
|
286
|
+
e(i).page ? (d(), g(_, {
|
293
287
|
key: 1,
|
294
288
|
"destroy-on-close": "",
|
295
289
|
"append-to-body": e(i).appendToBody,
|
296
|
-
size: `${e(
|
290
|
+
size: `${e(p).width ?? "60%"}`,
|
297
291
|
modelValue: e(i).visible,
|
298
292
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
|
299
293
|
}, {
|
@@ -302,25 +296,25 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
|
|
302
296
|
te(x(e(b)[e(i).page].title) + " ", 1),
|
303
297
|
m("a", {
|
304
298
|
class: "drawer-copy",
|
305
|
-
href: `${e(
|
299
|
+
href: `${e(P).getToUrl(e(i).url)}`
|
306
300
|
}, x(e(oe)("common.link")), 9, el)
|
307
301
|
])
|
308
302
|
]),
|
309
303
|
default: s(() => [
|
310
|
-
h(e(
|
304
|
+
h(e(Me), {
|
311
305
|
ref_key: "pageRef",
|
312
|
-
ref:
|
306
|
+
ref: K,
|
313
307
|
url: e(i).url,
|
314
308
|
onSucceed: e(G),
|
315
309
|
onClose: e(he)
|
316
310
|
}, null, 8, ["url", "onSucceed", "onClose"])
|
317
311
|
]),
|
318
312
|
_: 1
|
319
|
-
}, 8, ["append-to-body", "size", "modelValue"])) :
|
313
|
+
}, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
|
320
314
|
], 2);
|
321
315
|
};
|
322
316
|
}
|
323
317
|
});
|
324
318
|
export {
|
325
|
-
|
319
|
+
rl as default
|
326
320
|
};
|