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
@@ -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-RpQODrQa.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-65efBfek.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
|
};
|
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: { type: [String, Number, Boolean] }
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = f(() => import("./Dictionary-
|
13
|
+
let r = f(() => import("./Dictionary-Dd_IU-Hn.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
|
14
14
|
return (_, t) => (b(), V(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|
@@ -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-fOkzw7J1.js";
|
10
|
-
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.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, a as ue, b as je, G as Ae, s as re } from "./main-65efBfek.js";
|
3
|
+
import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
|
4
|
+
import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.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: ce, base: j, route: z } = $e(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), q = u([]), ve = 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(ce.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
|
+
v.value.layout = v.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
|
+
v.value.table = t, v.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, c.value),
|
72
|
-
E.value.clearValidate(),
|
64
|
+
let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
|
65
|
+
t && t(U, c.value), We.post(U, c.value).then(({ data: $, message: V }) => {
|
66
|
+
E.value.clearValidate(), ue.success(V), G(c.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, c.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, v.value.table = r.value[1], v.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: ve,
|
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
135
|
model: e(c),
|
142
|
-
onSubmit: t[3] || (t[3] =
|
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
148
|
set: e(c),
|
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(v).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(v).table,
|
191
|
+
layout: e(v).layout,
|
198
192
|
next: e(b),
|
199
193
|
set: e(c),
|
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
215
|
set: e(c),
|
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
271
|
set: e(c),
|
278
|
-
row: e(
|
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
|
};
|