halo-pc 1.0.40 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CqtkXVmQ.js → Article-BMW_FzdK.js} +32 -31
- package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-7iPkMQaX.js} +13 -12
- package/dist/Autocomplete-B6Mwp9rT.js +50 -0
- package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-C-El55Lz.js} +1 -1
- package/dist/{Autocomplete-LQiKcvz1.js → Autocomplete-PZTjEBIx.js} +11 -10
- package/dist/{CSharp-BIFRQLaK.js → CSharp-BQUrQwua.js} +1 -1
- package/dist/{Calender-DPNTn-S4.js → Calender-CJXR7uhM.js} +2 -2
- package/dist/Callback-CyDW9WU2.js +21 -0
- package/dist/{Cascader-Vhc81TDV.js → Cascader-CFc_8QSm.js} +18 -17
- package/dist/Cascader-DMQjalNv.js +47 -0
- package/dist/{Checkbox-D9Sp6ZGQ.js → Checkbox-aU8e779g.js} +12 -11
- package/dist/{Checkbox-CIim5NiB.js → Checkbox-pV01os-T.js} +1 -1
- package/dist/Code-C0Kxulod.js +4 -0
- package/dist/Code-C4pIa8BE.js +60 -0
- package/dist/Code-CCJx9RSm.js +42 -0
- package/dist/{Code-yDKaH1uF.js → Code-kDBbVC1W.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-36NN7tgP.js +65 -0
- package/dist/Column-BebDf5Z9.js +75 -0
- package/dist/{Comment-tU2wBvGO.js → Comment-BgfD9WtL.js} +25 -19
- package/dist/{Compare-DqvGyQWA.js → Compare-BZucuvFP.js} +9 -8
- package/dist/{Compare-D7Gz-lE9.js → Compare-D-Byn_Gq.js} +11 -10
- package/dist/Copy-DW4jSNQi.js +44 -0
- package/dist/Custom-DIF-RYi3.js +55 -0
- package/dist/{DataExport-BDftKI0U.js → DataExport-CyQy2xjO.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +28 -27
- package/dist/{DataImport-CRYaaQfA.js → DataImport-BVF83UsQ.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +31 -30
- package/dist/{Date-Dlh1_S7p.js → Date-CqpFvbYZ.js} +1 -1
- package/dist/{Date-DPPiYLWw.js → Date-g1XKWU4b.js} +8 -7
- package/dist/{DateRange-BgF_T3ls.js → DateRange-B2afkdbT.js} +6 -5
- package/dist/{DateTime-DP-VfmtN.js → DateTime-D_x_wBZR.js} +8 -7
- package/dist/{DateTime-CNjPeK9t.js → DateTime-Zi3vtH77.js} +1 -1
- package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BFWM_U7H.js} +10 -9
- package/dist/{Daterange-DHVjhrK9.js → Daterange-tXA0b0Ak.js} +5 -4
- package/dist/{Decimal-BDEWVSsK.js → Decimal-DKQ38XS_.js} +1 -1
- package/dist/{Delete-Bl0GmthL.js → Delete-BOkBpAGN.js} +20 -19
- package/dist/{Detail-BozyhOTt.js → Detail-SWgERqKG.js} +11 -10
- package/dist/{Dictionary-CJwZPQz6.js → Dictionary-Xsj_Qorw.js} +15 -9
- package/dist/{Email-D5X1SzuJ.js → Email-DILPnLkb.js} +12 -11
- package/dist/{File-DixK0K7p.js → File-BDUTK7hV.js} +40 -39
- package/dist/Image-Yx3ZHHJK.js +9 -0
- package/dist/Index-BTa4YIN9.js +174 -0
- package/dist/Index-BWukqxQl.js +4 -0
- package/dist/Index-BahY1OIJ.js +4 -0
- package/dist/Index-C9ffFYsl.js +4 -0
- package/dist/{Index-j15c7lwJ.js → Index-CiQQmYeA.js} +1 -1
- package/dist/Index-DG7Hovsx.js +4 -0
- package/dist/{Index-D2FOeoNQ.js → Index-DeYqTT9Q.js} +1 -1
- package/dist/{Index-DbXgnBz6.js → Index-WVLyjyqt.js} +16 -15
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +13 -12
- package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js} +21 -15
- package/dist/{Install-WR3b4IfI.js → Install-DW5uDsXF.js} +14 -13
- package/dist/{Int-GGWiUqO2.js → Int-BM4sbZvh.js} +14 -13
- package/dist/{Int-CWsDtoxE.js → Int-BrFE_Hmm.js} +10 -9
- package/dist/List-DWjTqrJR.js +72 -0
- package/dist/Maintaince-DF3nu9Jd.js +20 -0
- package/dist/{Markdown-nVfQs7kc.js → Markdown-BC8l7O_U.js} +1 -1
- package/dist/{Month-CxKMP4kO.js → Month-DRa9o-WC.js} +1 -1
- package/dist/{Month-DnYlAi7k.js → Month-QG6OiiLU.js} +11 -10
- package/dist/Month-Y0kLXgV7.js +38 -0
- package/dist/{Normal-RcqEyIFN.js → Normal-CSy3DFPH.js} +50 -49
- package/dist/{Paging-DrdGzxeP.js → Paging-BYccIXmC.js} +43 -42
- package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-U-oJ1TQE.js} +16 -15
- package/dist/{PagingRow-oQWCofO4.js → PagingRow-BmokRXX3.js} +14 -13
- package/dist/{Racebar-CvoF2ySW.js → Racebar-BvFHNGb8.js} +28 -22
- package/dist/{Radio-DhjfkC14.js → Radio-CjfXrTOE.js} +1 -1
- package/dist/{Register-B0Vx60wY.js → Register-BG-3_Q2E.js} +55 -54
- package/dist/RichText-C88f59ao.js +47 -0
- package/dist/{SearchForm-BHVnQaSL.js → SearchForm-C0zqD7UP.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +46 -45
- package/dist/{SearchHeader-C9yovXli.js → SearchHeader-e2LOidgU.js} +1 -1
- package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js} +1 -1
- package/dist/{Select-vgwpegBi.js → Select-CfIvGDPS.js} +21 -20
- package/dist/{Select-CX4i5KPQ.js → Select-CvP_zGxM.js} +1 -1
- package/dist/{Select-BDoCqD3I.js → Select-Cz6MPDCC.js} +11 -10
- package/dist/{Single-C3629BdC.js → Single-p-8OfzhQ.js} +101 -100
- package/dist/{Statistic-WPezAlUn.js → Statistic-BIKfbZCI.js} +32 -31
- package/dist/{Stock-EPM3j2f_.js → Stock-B7RP-SuF.js} +1 -1
- package/dist/{Stock-BD5Acf8y.js → Stock-BhOP8J0c.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +20 -19
- package/dist/{Switch-B0XN4K-9.js → Switch-BcDhe4_E.js} +1 -1
- package/dist/{Table-BklK1hSh.js → Table-Cy7FarYr.js} +71 -70
- package/dist/{Table-JFdOXuME.js → Table-DK-TaejU.js} +58 -57
- package/dist/Text-B580p9od.js +49 -0
- package/dist/Text-D89aQLxL.js +4 -0
- package/dist/{Text-DrJkdxZF.js → Text-YNB0It4-.js} +13 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js +59 -0
- package/dist/{TextLink-BnijIoEJ.js → TextLink-CI-AIgdm.js} +9 -8
- package/dist/{Textarea-3SWLqQvO.js → Textarea-86C9lCtg.js} +1 -1
- package/dist/{Time-C3qlNZkJ.js → Time-BgArfSc6.js} +10 -9
- package/dist/{Timeline-B6hUIYhL.js → Timeline-O_jWjdxT.js} +19 -13
- package/dist/{Tree-JexLPBXX.js → Tree-BfFRW-xZ.js} +41 -35
- package/dist/{Tree-DBvFF4Rj.js → Tree-DayADkaC.js} +73 -72
- package/dist/{TreeNode-BOWB2WN9.js → TreeNode-BZp8w6M5.js} +10 -9
- package/dist/{Update-CDLYYwgj.js → Update-Bcdz87R4.js} +6 -5
- package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-YzPMnj_r.js} +20 -19
- package/dist/{Upload-B2hbxDsT.js → Upload-DU5VOqXj.js} +47 -46
- package/dist/Upload-Dj5nSsug.js +71 -0
- package/dist/{Year-BUF60NmB.js → Year-B3E0kOiA.js} +8 -7
- package/dist/{Year-BRsJ7b1J.js → Year-CcbzIuwy.js} +1 -1
- package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
- package/dist/assets/moment-h96o7c8I.js +2578 -0
- package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
- package/dist/assets/underscore-B0BCaBxV.js +1070 -0
- package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
- package/dist/assets/util-deprecate-Dzun97re.js +28 -0
- package/dist/main-DxH9UW19.js +10723 -0
- package/dist/main.js +60 -59
- package/dist/style.css +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +0 -49
- package/dist/Callback-Ci5KrWOC.js +0 -20
- package/dist/Cascader-CnOEgPDf.js +0 -41
- package/dist/Code-BEjqqeFZ.js +0 -54
- package/dist/Code-BSrEPuXk.js +0 -4
- package/dist/Code-Dp1-k8sW.js +0 -36
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
- package/dist/Column-B0ViSver.js +0 -69
- package/dist/Copy-Dm1LH9qB.js +0 -43
- package/dist/Custom-CLKAPWEo.js +0 -49
- package/dist/Image-BrelhCGo.js +0 -9
- package/dist/Index-BeM6hKX9.js +0 -4
- package/dist/Index-BkfLyqpm.js +0 -173
- package/dist/Index-D8UVsXwf.js +0 -4
- package/dist/Index-FL-dxfFB.js +0 -4
- package/dist/Index-fWOqfFkG.js +0 -4
- package/dist/List-kRCsHp6d.js +0 -71
- package/dist/Maintaince-BG8MUi3A.js +0 -14
- package/dist/Month-B1icZmL4.js +0 -37
- package/dist/RichText-4wrLw9cy.js +0 -41
- package/dist/Text-CNtHdodK.js +0 -4
- package/dist/Text-KAuEjP7I.js +0 -48
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
- package/dist/Upload-mlk6Y4Po.js +0 -65
- package/dist/main-DymfKjqO.js +0 -16480
@@ -0,0 +1,47 @@
|
|
1
|
+
import { defineComponent as g, mergeModels as x, toRefs as S, useModel as M, ref as d, onMounted as _, computed as c, watch as f, openBlock as w, createBlock as R, unref as r, normalizeStyle as b, isRef as k } from "vue";
|
2
|
+
import { s as B } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/liquidjs-BfOWWjtJ.js";
|
4
|
+
import "./assets/underscore-B0BCaBxV.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
8
|
+
import "./assets/moment-h96o7c8I.js";
|
9
|
+
const D = /* @__PURE__ */ g({
|
10
|
+
__name: "RichText",
|
11
|
+
props: /* @__PURE__ */ x({
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {}
|
17
|
+
}, {
|
18
|
+
modelValue: {},
|
19
|
+
modelModifiers: {}
|
20
|
+
}),
|
21
|
+
emits: ["update:modelValue"],
|
22
|
+
setup(n) {
|
23
|
+
let v = n, { field: e, table: h, set: C, row: s } = S(v), u = M(n, "modelValue"), t = d({ readonly: !1, scrollTop: 0 }), i = d(), y = (l) => {
|
24
|
+
a.value != null && (s.value[a.value.name] = l.scrollTop);
|
25
|
+
}, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", V = () => {
|
26
|
+
t.value.readonly = e.value.control.readonly, t.value.scrollTop = m.value, i.value = T();
|
27
|
+
};
|
28
|
+
_(() => {
|
29
|
+
V();
|
30
|
+
});
|
31
|
+
let m = c(() => a.value ? s.value[a.value.name] : null), a = c(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
|
32
|
+
return f(() => m.value, (l, o) => {
|
33
|
+
t.value.scrollTop = l;
|
34
|
+
}), f(() => e.value.control.readonly, (l, o) => {
|
35
|
+
t.value.readonly = l;
|
36
|
+
}), (l, o) => (w(), R(r(B), {
|
37
|
+
style: b(r(i)),
|
38
|
+
options: r(t),
|
39
|
+
onScroll: r(y),
|
40
|
+
modelValue: r(u),
|
41
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => k(u) ? u.value = p : u = p)
|
42
|
+
}, null, 8, ["style", "options", "onScroll", "modelValue"]));
|
43
|
+
}
|
44
|
+
});
|
45
|
+
export {
|
46
|
+
D as default
|
47
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as B, watch as Q, resolveComponent as m, openBlock as n, createBlock as i, withCtx as r, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as w, createTextVNode as M, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import { U as ee, d as N, j as te, D as ae } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
4
|
+
const ue = /* @__PURE__ */ I({
|
4
5
|
__name: "SearchForm",
|
5
6
|
props: {
|
6
7
|
schema: {},
|
@@ -9,11 +10,11 @@ const re = /* @__PURE__ */ I({
|
|
9
10
|
searchData: {}
|
10
11
|
},
|
11
12
|
emits: ["change", "submit", "mounted"],
|
12
|
-
setup(
|
13
|
-
let
|
14
|
-
|
13
|
+
setup(T, { expose: W, emit: j }) {
|
14
|
+
let C = j, E = T, { schema: F, table: u, layout: V, searchData: b } = J(E), k = p(), y = p(), L = p(), d = p(), $ = (e) => {
|
15
|
+
C("change", e);
|
15
16
|
}, R = (e = null) => {
|
16
|
-
|
17
|
+
C("submit");
|
17
18
|
}, z = (e, t) => {
|
18
19
|
let l = e == "*" ? null : e;
|
19
20
|
b.value[u.value.name][t.name] = l, R();
|
@@ -21,7 +22,7 @@ const re = /* @__PURE__ */ I({
|
|
21
22
|
k.value && (y.value = k.value.$el.clientWidth);
|
22
23
|
}, O = (e) => {
|
23
24
|
S();
|
24
|
-
},
|
25
|
+
}, D = () => {
|
25
26
|
let e = V.value.tabs;
|
26
27
|
if (e)
|
27
28
|
for (let t = 0; t < e.length; t++) {
|
@@ -29,15 +30,15 @@ const re = /* @__PURE__ */ I({
|
|
29
30
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
30
31
|
}
|
31
32
|
};
|
32
|
-
d.value = ee.object.clone(b.value),
|
33
|
-
S(), await P(),
|
33
|
+
d.value = ee.object.clone(b.value), D(), K(async () => {
|
34
|
+
S(), await P(), C("mounted");
|
34
35
|
});
|
35
|
-
let q =
|
36
|
+
let q = B(() => {
|
36
37
|
if (!y.value)
|
37
38
|
return [];
|
38
|
-
let e = Math.ceil(y.value / 200), t =
|
39
|
-
return
|
40
|
-
}),
|
39
|
+
let e = Math.ceil(y.value / 200), t = N.expandSearch(F.value), l = V.value.tabs ?? [], c = t.filter((_) => l.indexOf(_.name) == -1);
|
40
|
+
return N.getLines(c, e, (_) => _, () => 1);
|
41
|
+
}), U = B(() => {
|
41
42
|
let e = [], t = V.value.tabs;
|
42
43
|
return t && t.forEach((l) => {
|
43
44
|
let c = u.value.fields.find((f) => f.name == l);
|
@@ -45,14 +46,14 @@ const re = /* @__PURE__ */ I({
|
|
45
46
|
}), e;
|
46
47
|
});
|
47
48
|
return Q(() => b.value, (e, t) => {
|
48
|
-
|
49
|
-
}),
|
50
|
-
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"),
|
49
|
+
D();
|
50
|
+
}), W({ onResize: O }), (e, t) => {
|
51
|
+
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"), _ = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
|
51
52
|
return n(), i(H, {
|
52
53
|
"max-height": "200px",
|
53
54
|
class: "search-form"
|
54
55
|
}, {
|
55
|
-
default:
|
56
|
+
default: r(() => [
|
56
57
|
a(u).search.length > 0 ? (n(), i(G, {
|
57
58
|
key: 0,
|
58
59
|
ref_key: "searchFormRef",
|
@@ -62,33 +63,33 @@ const re = /* @__PURE__ */ I({
|
|
62
63
|
onSubmit: t[0] || (t[0] = X(() => {
|
63
64
|
}, ["prevent"]))
|
64
65
|
}, {
|
65
|
-
default:
|
66
|
-
(n(!0), v(g, null, x(a(
|
66
|
+
default: r(() => [
|
67
|
+
(n(!0), v(g, null, x(a(U), (s, h) => (n(), i(f, {
|
67
68
|
class: "search-tab",
|
68
69
|
label: s.label,
|
69
70
|
"label-width": 50
|
70
71
|
}, {
|
71
|
-
default:
|
72
|
-
|
72
|
+
default: r(() => [
|
73
|
+
w(c, {
|
73
74
|
ref_for: !0,
|
74
75
|
ref_key: "tabRefs",
|
75
|
-
ref:
|
76
|
-
onChange: (
|
76
|
+
ref: L,
|
77
|
+
onChange: (o) => a(z)(o, s),
|
77
78
|
modelValue: a(d)[a(u).name][s.name],
|
78
|
-
"onUpdate:modelValue": (
|
79
|
+
"onUpdate:modelValue": (o) => a(d)[a(u).name][s.name] = o
|
79
80
|
}, {
|
80
|
-
default:
|
81
|
-
|
82
|
-
default:
|
83
|
-
|
81
|
+
default: r(() => [
|
82
|
+
w(l, { value: "*" }, {
|
83
|
+
default: r(() => t[1] || (t[1] = [
|
84
|
+
M("全部")
|
84
85
|
])),
|
85
86
|
_: 1
|
86
87
|
}),
|
87
|
-
(n(!0), v(g, null, x(s.control.data.data, (
|
88
|
-
value:
|
88
|
+
(n(!0), v(g, null, x(s.control.data.data, (o) => (n(), i(l, {
|
89
|
+
value: o.value
|
89
90
|
}, {
|
90
|
-
default:
|
91
|
-
|
91
|
+
default: r(() => [
|
92
|
+
M(Y(o.text), 1)
|
92
93
|
]),
|
93
94
|
_: 2
|
94
95
|
}, 1032, ["value"]))), 256))
|
@@ -100,23 +101,23 @@ const re = /* @__PURE__ */ I({
|
|
100
101
|
}, 1032, ["label"]))), 256)),
|
101
102
|
(n(!0), v(g, null, x(a(q), (s) => (n(), i(A, {
|
102
103
|
class: "search-row",
|
103
|
-
label: a(
|
104
|
+
label: a(U).length ? "其它" : "",
|
104
105
|
"label-width": 50,
|
105
106
|
gutter: 5
|
106
107
|
}, {
|
107
|
-
default:
|
108
|
-
(n(!0), v(g, null, x(s, ({ data:
|
109
|
-
default:
|
110
|
-
|
111
|
-
label: a(te)(
|
108
|
+
default: r(() => [
|
109
|
+
(n(!0), v(g, null, x(s, ({ data: h, span: o }, le) => (n(), i(_, { span: o }, {
|
110
|
+
default: r(() => [
|
111
|
+
w(f, {
|
112
|
+
label: a(te)(h.table.name, h.name)
|
112
113
|
}, {
|
113
|
-
default:
|
114
|
-
|
114
|
+
default: r(() => [
|
115
|
+
w(a(ae), {
|
115
116
|
schema: a(F),
|
116
|
-
table:
|
117
|
-
field:
|
117
|
+
table: h.table,
|
118
|
+
field: h,
|
118
119
|
"search-data": a(b),
|
119
|
-
onChange: a(
|
120
|
+
onChange: a($),
|
120
121
|
onSubmit: a(R)
|
121
122
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
122
123
|
]),
|
@@ -138,5 +139,5 @@ const re = /* @__PURE__ */ I({
|
|
138
139
|
}
|
139
140
|
});
|
140
141
|
export {
|
141
|
-
|
142
|
+
ue as _
|
142
143
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as C, toRefs as E, computed as k, openBlock as r, createElementBlock as B, createBlock as D, resolveDynamicComponent as I, unref as e } from "vue";
|
2
|
-
import {
|
2
|
+
import { f as R } from "./main-DxH9UW19.js";
|
3
3
|
const A = { class: "search-footer" }, q = /* @__PURE__ */ C({
|
4
4
|
__name: "SearchHeader",
|
5
5
|
props: {
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
1
|
+
import { defineComponent as T, toRefs as A, ref as f, computed as D, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as $, withCtx as V, createElementBlock as w, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as k, createCommentVNode as H, nextTick as I } from "vue";
|
2
|
+
import { n as J, U as P, w as Q, h as W } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
const X = { class: "option-text" }, Y = {
|
4
5
|
key: 0,
|
5
6
|
class: "option-suffix"
|
6
|
-
},
|
7
|
+
}, te = /* @__PURE__ */ T({
|
7
8
|
__name: "Select",
|
8
9
|
props: {
|
9
10
|
schema: {},
|
@@ -15,7 +16,7 @@ const X = { class: "option-text" }, Y = {
|
|
15
16
|
},
|
16
17
|
emits: ["submit", "change", "update:modelValue"],
|
17
18
|
setup(C, { emit: E }) {
|
18
|
-
let s = E, B = C, { schema: S, field: u, table: m, set:
|
19
|
+
let s = E, B = C, { schema: S, field: u, table: m, set: v, row: R, modelValue: p } = A(B), x = f(), b = f(), h = f(!1), d = f(u.value.control.data.data), j = (t) => {
|
19
20
|
t == "" && (t = null);
|
20
21
|
let e;
|
21
22
|
if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
|
@@ -25,25 +26,25 @@ const X = { class: "option-text" }, Y = {
|
|
25
26
|
R.value[a.name] = o;
|
26
27
|
}
|
27
28
|
g(m.value, u.value), s("change", t);
|
28
|
-
}, j = () => {
|
29
|
-
s("submit");
|
30
29
|
}, K = () => {
|
30
|
+
s("submit");
|
31
31
|
}, N = () => {
|
32
|
-
|
32
|
+
}, U = () => {
|
33
|
+
h.value = !0;
|
33
34
|
let t = { text: b.value, conditions: [] };
|
34
35
|
u.value.control.data.conditions.forEach((e) => {
|
35
|
-
let a =
|
36
|
+
let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
|
36
37
|
t.conditions.push({ name: e.name, value: o });
|
37
38
|
}), W.post(u.value.control.data.route, t).then(({ data: e }) => {
|
38
39
|
d.value = e;
|
39
40
|
}).finally(() => {
|
40
|
-
|
41
|
+
h.value = !1, I(() => {
|
41
42
|
let e = d.value.find((a) => a.value == r.value);
|
42
43
|
x.value.scrollToOption(e);
|
43
44
|
});
|
44
45
|
});
|
45
46
|
}, F = (t) => {
|
46
|
-
b.value = t,
|
47
|
+
b.value = t, U();
|
47
48
|
}, M = (t, e) => {
|
48
49
|
let a = [];
|
49
50
|
return S.value.forEach((o) => {
|
@@ -55,9 +56,9 @@ const X = { class: "option-text" }, Y = {
|
|
55
56
|
}), a;
|
56
57
|
}, g = (t, e) => {
|
57
58
|
M(t, e).forEach((o) => {
|
58
|
-
Q.setRowsValue(null,
|
59
|
+
Q.setRowsValue(null, v.value, o.table, o.field), g(o.table, o.field);
|
59
60
|
});
|
60
|
-
}, r =
|
61
|
+
}, r = D({
|
61
62
|
get() {
|
62
63
|
return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
|
63
64
|
},
|
@@ -80,23 +81,23 @@ const X = { class: "option-text" }, Y = {
|
|
80
81
|
placeholder: n(J)(n(m).name, n(u).name),
|
81
82
|
multiple: n(u).control.multiple,
|
82
83
|
"remote-method": n(F),
|
83
|
-
loading: n(
|
84
|
+
loading: n(h),
|
84
85
|
disabled: n(u).control.readonly,
|
85
|
-
onKeyup: O(
|
86
|
-
onBlur: n(
|
87
|
-
onChange: n(
|
86
|
+
onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
|
87
|
+
onBlur: n(N),
|
88
|
+
onChange: n(j),
|
88
89
|
modelValue: n(r),
|
89
90
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
|
90
91
|
}, {
|
91
92
|
default: V(() => [
|
92
|
-
(c(!0),
|
93
|
+
(c(!0), w(q, null, z(n(d), (l, i) => (c(), y(a, {
|
93
94
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
94
95
|
value: l.value,
|
95
96
|
key: l.value
|
96
97
|
}, {
|
97
98
|
default: V(() => [
|
98
|
-
G("span", X,
|
99
|
-
l.suffix ? (c(),
|
99
|
+
G("span", X, k(l.text), 1),
|
100
|
+
l.suffix ? (c(), w("span", Y, "(" + k(l.suffix) + ")", 1)) : H("", !0)
|
100
101
|
]),
|
101
102
|
_: 2
|
102
103
|
}, 1032, ["label", "value"]))), 128))
|
@@ -107,5 +108,5 @@ const X = { class: "option-text" }, Y = {
|
|
107
108
|
}
|
108
109
|
});
|
109
110
|
export {
|
110
|
-
|
111
|
+
te as default
|
111
112
|
};
|
@@ -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-Xsj_Qorw.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,9 +1,10 @@
|
|
1
|
-
import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as p, unref as t, withKeys as M, withModifiers as N, isRef as
|
2
|
-
import {
|
1
|
+
import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as p, unref as t, withKeys as M, withModifiers as N, isRef as j, withCtx as f, createElementBlock as h, Fragment as F, renderList as L, createElementVNode as U, toDisplayString as _, createCommentVNode as q } from "vue";
|
2
|
+
import { t as z, j as A, h as G } from "./main-DxH9UW19.js";
|
3
|
+
import "./assets/moment-h96o7c8I.js";
|
3
4
|
const H = { class: "option-text" }, I = {
|
4
5
|
key: 0,
|
5
6
|
class: "option-suffix"
|
6
|
-
},
|
7
|
+
}, W = /* @__PURE__ */ K({
|
7
8
|
__name: "Select",
|
8
9
|
props: {
|
9
10
|
schema: {},
|
@@ -14,7 +15,7 @@ const H = { class: "option-text" }, I = {
|
|
14
15
|
},
|
15
16
|
emits: ["change", "submit", "update:modelValue"],
|
16
17
|
setup(v, { emit: x }) {
|
17
|
-
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b),
|
18
|
+
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
19
|
r("submit");
|
19
20
|
}, w = () => {
|
20
21
|
}, B = (l) => {
|
@@ -27,7 +28,7 @@ const H = { class: "option-text" }, I = {
|
|
27
28
|
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
28
29
|
m.value = o;
|
29
30
|
}).finally(() => {
|
30
|
-
|
31
|
+
k.value = !1;
|
31
32
|
});
|
32
33
|
}, n = S({
|
33
34
|
get() {
|
@@ -52,19 +53,19 @@ const H = { class: "option-text" }, I = {
|
|
52
53
|
"loading-text": "加载中",
|
53
54
|
"remote-method": t(B),
|
54
55
|
disabled: t(a).control.readonly,
|
55
|
-
onKeyup: M(N(t(
|
56
|
+
onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
|
56
57
|
onChange: t(w),
|
57
58
|
modelValue: t(n),
|
58
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
59
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => j(n) ? n.value = e : n = e)
|
59
60
|
}, {
|
60
61
|
default: f(() => [
|
61
|
-
(s(!0), h(
|
62
|
+
(s(!0), h(F, null, L(t(m), (e, O) => (s(), p(u, {
|
62
63
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
63
64
|
value: e.value,
|
64
65
|
key: e.value
|
65
66
|
}, {
|
66
67
|
default: f(() => [
|
67
|
-
|
68
|
+
U("span", H, _(e.text), 1),
|
68
69
|
e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
|
69
70
|
]),
|
70
71
|
_: 2
|
@@ -76,5 +77,5 @@ const H = { class: "option-text" }, I = {
|
|
76
77
|
}
|
77
78
|
});
|
78
79
|
export {
|
79
|
-
|
80
|
+
W as default
|
80
81
|
};
|