halo-pc 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DZlstqWL.js → Article-CqtkXVmQ.js} +37 -36
- package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-DeJdTtZD.js} +12 -13
- package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-0fxB2_FC.js} +1 -1
- package/dist/Autocomplete-BfhYwZ5G.js +49 -0
- package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-LQiKcvz1.js} +10 -11
- package/dist/{CSharp-q8eOBm4y.js → CSharp-BIFRQLaK.js} +1 -1
- package/dist/{Calender-CseGNCuW.js → Calender-DPNTn-S4.js} +2 -2
- package/dist/Callback-Ci5KrWOC.js +20 -0
- package/dist/Cascader-CnOEgPDf.js +41 -0
- package/dist/{Cascader-BG5ev35M.js → Cascader-Vhc81TDV.js} +17 -18
- package/dist/{Checkbox-CsCA6iQb.js → Checkbox-CIim5NiB.js} +1 -1
- package/dist/{Checkbox-dw8RNAGt.js → Checkbox-D9Sp6ZGQ.js} +11 -12
- package/dist/Code-BEjqqeFZ.js +54 -0
- package/dist/Code-BSrEPuXk.js +4 -0
- package/dist/Code-Dp1-k8sW.js +36 -0
- package/dist/{Code-BE8YLGaE.js → Code-yDKaH1uF.js} +10 -8
- package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
- package/dist/Column-B0ViSver.js +69 -0
- package/dist/{Comment-kTmfTlbF.js → Comment-tU2wBvGO.js} +22 -26
- package/dist/{Compare-DlyQBCat.js → Compare-D7Gz-lE9.js} +10 -11
- package/dist/{Compare-DVWaiCUC.js → Compare-DqvGyQWA.js} +8 -9
- package/dist/Copy-Dm1LH9qB.js +43 -0
- package/dist/Custom-CLKAPWEo.js +49 -0
- package/dist/{DataExport-Um1wXyRe.js → DataExport-BDftKI0U.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +27 -28
- package/dist/{DataImport-CPMLup4P.js → DataImport-CRYaaQfA.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +30 -31
- package/dist/{Date-BhZ8ltgp.js → Date-DPPiYLWw.js} +7 -8
- package/dist/{Date-Cj9lCW_Y.js → Date-Dlh1_S7p.js} +1 -1
- package/dist/{DateRange-Bw_Oyawz.js → DateRange-BgF_T3ls.js} +5 -6
- package/dist/{DateTime-Cv-SRE88.js → DateTime-CNjPeK9t.js} +1 -1
- package/dist/{DateTime-BU6JaBPk.js → DateTime-DP-VfmtN.js} +7 -8
- package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-DbEpW4nB.js} +9 -10
- package/dist/{Daterange-CSZe4XGO.js → Daterange-DHVjhrK9.js} +4 -5
- package/dist/{Decimal-DSDuwW9Z.js → Decimal-BDEWVSsK.js} +1 -1
- package/dist/{Delete-CjPgg-5G.js → Delete-Bl0GmthL.js} +19 -20
- package/dist/{Detail-gj--ICe8.js → Detail-BozyhOTt.js} +10 -11
- package/dist/{Dictionary-Ck_02mWa.js → Dictionary-CJwZPQz6.js} +9 -15
- package/dist/{Email-BSQbDvh1.js → Email-D5X1SzuJ.js} +11 -12
- package/dist/{File-FW4usX43.js → File-DixK0K7p.js} +44 -43
- package/dist/Image-BrelhCGo.js +9 -0
- package/dist/Index-BeM6hKX9.js +4 -0
- package/dist/Index-BkfLyqpm.js +173 -0
- package/dist/{Index-MUgqP8jJ.js → Index-D2FOeoNQ.js} +1 -1
- package/dist/Index-D8UVsXwf.js +4 -0
- package/dist/{Index-Dq5Vp-ts.js → Index-DbXgnBz6.js} +15 -16
- package/dist/Index-FL-dxfFB.js +4 -0
- package/dist/Index-fWOqfFkG.js +4 -0
- package/dist/{Index-BibWDRoP.js → Index-j15c7lwJ.js} +1 -1
- package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +21 -22
- package/dist/{Install-Cpp3BDCS.js → Install-WR3b4IfI.js} +13 -14
- package/dist/{Int-Ck1SvK7R.js → Int-CWsDtoxE.js} +9 -10
- package/dist/{Int-DcQsipaO.js → Int-GGWiUqO2.js} +13 -14
- package/dist/List-kRCsHp6d.js +71 -0
- package/dist/Maintaince-BG8MUi3A.js +14 -0
- package/dist/{Markdown-BEUz4VZ7.js → Markdown-nVfQs7kc.js} +1 -1
- package/dist/Month-B1icZmL4.js +37 -0
- package/dist/{Month-DmUiyF1G.js → Month-CxKMP4kO.js} +1 -1
- package/dist/{Month-DJGGGrZr.js → Month-DnYlAi7k.js} +10 -11
- package/dist/{Normal-ACcTHsXb.js → Normal-RcqEyIFN.js} +47 -46
- package/dist/Paging-DrdGzxeP.js +94 -0
- package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-C8UpM9Kj.js} +18 -17
- package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-oQWCofO4.js} +13 -14
- package/dist/{Racebar-LfnPLNOY.js → Racebar-CvoF2ySW.js} +32 -36
- package/dist/{Radio-DcEZI4m7.js → Radio-DhjfkC14.js} +1 -1
- package/dist/{Register-B4x_zgyH.js → Register-B0Vx60wY.js} +55 -56
- package/dist/RichText-4wrLw9cy.js +41 -0
- package/dist/{SearchForm-DU5QLTbe.js → SearchForm-BHVnQaSL.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +50 -51
- package/dist/SearchHeader-C9yovXli.js +4 -0
- package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
- package/dist/{Select-C3gUeHmu.js → Select-BDoCqD3I.js} +10 -11
- package/dist/{Select-CMxubJIV.js → Select-CX4i5KPQ.js} +1 -1
- package/dist/{Select-DrDDVJtz.js → Select-vgwpegBi.js} +20 -21
- package/dist/{Single-De-YyuVk.js → Single-C3629BdC.js} +127 -128
- package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
- package/dist/{Statistic-SvjQ7uGI.js → Statistic-WPezAlUn.js} +34 -33
- package/dist/{Stock-C2b9p3-N.js → Stock-BD5Acf8y.js} +8 -6
- package/dist/{Stock-XZkBSQw1.js → Stock-EPM3j2f_.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +22 -21
- package/dist/{Switch-PJT-5dDt.js → Switch-B0XN4K-9.js} +1 -1
- package/dist/{Table-Dy1H2IHN.js → Table-BklK1hSh.js} +142 -136
- package/dist/{Table-CkoZ8OjZ.js → Table-JFdOXuME.js} +61 -60
- package/dist/Text-CNtHdodK.js +4 -0
- package/dist/{Text-CytgR_l_.js → Text-DrJkdxZF.js} +12 -13
- package/dist/Text-KAuEjP7I.js +48 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +53 -0
- package/dist/{TextLink-DINdFWzs.js → TextLink-BnijIoEJ.js} +8 -9
- package/dist/{Textarea-DakZXfN6.js → Textarea-3SWLqQvO.js} +1 -1
- package/dist/{Time-Bn1Av2wo.js → Time-C3qlNZkJ.js} +9 -10
- package/dist/{Timeline-B32cUvwI.js → Timeline-B6hUIYhL.js} +11 -15
- package/dist/{Tree-BGfHm4k_.js → Tree-DBvFF4Rj.js} +77 -76
- package/dist/{Tree-BItAXuSC.js → Tree-JexLPBXX.js} +38 -42
- package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BOWB2WN9.js} +9 -10
- package/dist/{Update-DSTmaeT8.js → Update-CDLYYwgj.js} +5 -6
- package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-DUG7pAuO.js} +19 -20
- package/dist/{Upload-DMqlcxCt.js → Upload-B2hbxDsT.js} +46 -47
- package/dist/Upload-mlk6Y4Po.js +65 -0
- package/dist/{Year-DckBNPK_.js → Year-BRsJ7b1J.js} +1 -1
- package/dist/{Year-Cv92J5pF.js → Year-BUF60NmB.js} +7 -8
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-DymfKjqO.js +16480 -0
- package/dist/main.js +144 -142
- package/dist/style.css +1 -1
- package/esm/coms/commons/Table.vue.d.ts +1 -1
- package/esm/coms/drivers/Index.vue.d.ts +2 -2
- package/esm/coms/globals/Menu.vue.d.ts +1 -1
- package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
- package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
- package/esm/coms/headers/Index.vue.d.ts +1 -1
- package/esm/coms/layouts/Index.vue.d.ts +3 -3
- package/esm/coms/layouts/Side.vue.d.ts +2 -2
- package/esm/coms/layouts/Top.vue.d.ts +1 -1
- package/esm/coms/lists/Racebar.vue.d.ts +1 -1
- package/esm/coms/lists/Statistic.vue.d.ts +1 -1
- package/esm/coms/lists/Tree.vue.d.ts +3 -3
- package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
- package/esm/coms/pages/Column.vue.d.ts +1 -1
- package/esm/coms/pages/Custom.vue.d.ts +6 -6
- package/esm/coms/pages/List.vue.d.ts +5 -3
- package/esm/coms/pages/Paging.vue.d.ts +5 -3
- package/esm/coms/pages/Single.vue.d.ts +3 -3
- package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
- package/esm/coms/pagings/@types/index.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +4 -2
- package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
- package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
- package/esm/coms/pagings/Table.vue.d.ts +4 -2
- package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
- package/esm/coms/singles/Index.vue.d.ts +1 -1
- package/esm/coms/singles/Normal.vue.d.ts +1 -1
- package/esm/coms/singles/Table.vue.d.ts +1 -1
- package/esm/coms/singles/Tree.vue.d.ts +1 -1
- package/package.json +6 -6
- package/dist/Autocomplete-bc-9LfGa.js +0 -50
- package/dist/Callback-D_dFJlfv.js +0 -21
- package/dist/Cascader-Dzeoz7ss.js +0 -47
- package/dist/Code-BRe68AIa.js +0 -42
- package/dist/Code-C5QfTMNw.js +0 -60
- package/dist/Code-_XoN6vQE.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +0 -63
- package/dist/Column-C-NHhT2v.js +0 -75
- package/dist/Copy-DQFJy3uX.js +0 -44
- package/dist/Custom-D5HoD0nQ.js +0 -59
- package/dist/Image-DiAw_6jM.js +0 -9
- package/dist/Index-B_5hshjJ.js +0 -4
- package/dist/Index-BtlD6ocN.js +0 -4
- package/dist/Index-C3f38zw0.js +0 -4
- package/dist/Index-CB_TnEaw.js +0 -4
- package/dist/Index-hgTZyQps.js +0 -174
- package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
- package/dist/List-hWB41wF_.js +0 -72
- package/dist/Maintaince-l-Tdveur.js +0 -20
- package/dist/Month-DkafiRHq.js +0 -38
- package/dist/Paging-Vfz2RDBo.js +0 -93
- package/dist/RichText-B1Iogpgr.js +0 -47
- package/dist/SearchFooter-CmM8qnxP.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
- package/dist/Text-Bt5jL_KV.js +0 -49
- package/dist/Text-vHouxGHU.js +0 -4
- package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +0 -59
- package/dist/Upload-DpQu3z1T.js +0 -71
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- 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/main-KNkwb0pq.js +0 -10515
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent as g, mergeModels as x, toRefs as S, useModel as M, ref as p, onMounted as w, computed as m, watch as v, openBlock as F, createBlock as R, unref as r, normalizeStyle as b, isRef as k } from "vue";
|
2
|
+
import { F as B } from "./main-DymfKjqO.js";
|
3
|
+
const O = /* @__PURE__ */ g({
|
4
|
+
__name: "RichText",
|
5
|
+
props: /* @__PURE__ */ x({
|
6
|
+
schema: {},
|
7
|
+
table: {},
|
8
|
+
field: {},
|
9
|
+
set: {},
|
10
|
+
row: {}
|
11
|
+
}, {
|
12
|
+
modelValue: {},
|
13
|
+
modelModifiers: {}
|
14
|
+
}),
|
15
|
+
emits: ["update:modelValue"],
|
16
|
+
setup(n) {
|
17
|
+
let f = n, { field: e, table: h, set: C, row: s } = S(f), u = M(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), i = p(), y = (l) => {
|
18
|
+
a.value != null && (s.value[a.value.name] = l.scrollTop);
|
19
|
+
}, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", V = () => {
|
20
|
+
t.value.readonly = e.value.control.readonly, t.value.scrollTop = d.value, i.value = T();
|
21
|
+
};
|
22
|
+
w(() => {
|
23
|
+
V();
|
24
|
+
});
|
25
|
+
let d = m(() => a.value ? s.value[a.value.name] : null), a = m(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
|
26
|
+
return v(() => d.value, (l, o) => {
|
27
|
+
t.value.scrollTop = l;
|
28
|
+
}), v(() => e.value.control.readonly, (l, o) => {
|
29
|
+
t.value.readonly = l;
|
30
|
+
}), (l, o) => (F(), R(r(B), {
|
31
|
+
style: b(r(i)),
|
32
|
+
options: r(t),
|
33
|
+
onScroll: r(y),
|
34
|
+
modelValue: r(u),
|
35
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => k(u) ? u.value = c : u = c)
|
36
|
+
}, null, 8, ["style", "options", "onScroll", "modelValue"]));
|
37
|
+
}
|
38
|
+
});
|
39
|
+
export {
|
40
|
+
O as default
|
41
|
+
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const ue = /* @__PURE__ */ I({
|
1
|
+
import { defineComponent as I, toRefs as J, ref as p, onMounted as K, nextTick as P, computed as M, watch as Q, resolveComponent as m, openBlock as n, createBlock as i, withCtx as o, unref as a, withModifiers as X, createElementBlock as v, Fragment as g, renderList as x, createVNode as C, createTextVNode as N, toDisplayString as Y, createCommentVNode as Z } from "vue";
|
2
|
+
import { d as ee, m as T, C as te, o as ae } from "./main-DymfKjqO.js";
|
3
|
+
const re = /* @__PURE__ */ I({
|
5
4
|
__name: "SearchForm",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -10,19 +9,19 @@ const ue = /* @__PURE__ */ I({
|
|
10
9
|
searchData: {}
|
11
10
|
},
|
12
11
|
emits: ["change", "submit", "mounted"],
|
13
|
-
setup(
|
14
|
-
let
|
15
|
-
|
16
|
-
},
|
17
|
-
|
12
|
+
setup(W, { expose: E, emit: L }) {
|
13
|
+
let w = L, U = W, { schema: F, table: u, layout: V, searchData: b } = J(U), k = p(), y = p(), $ = p(), d = p(), j = (e) => {
|
14
|
+
w("change", e);
|
15
|
+
}, R = (e = null) => {
|
16
|
+
w("submit");
|
18
17
|
}, z = (e, t) => {
|
19
18
|
let l = e == "*" ? null : e;
|
20
|
-
b.value[u.value.name][t.name] = l,
|
21
|
-
},
|
19
|
+
b.value[u.value.name][t.name] = l, R();
|
20
|
+
}, S = () => {
|
22
21
|
k.value && (y.value = k.value.$el.clientWidth);
|
23
22
|
}, O = (e) => {
|
24
|
-
|
25
|
-
},
|
23
|
+
S();
|
24
|
+
}, B = () => {
|
26
25
|
let e = V.value.tabs;
|
27
26
|
if (e)
|
28
27
|
for (let t = 0; t < e.length; t++) {
|
@@ -30,15 +29,15 @@ const ue = /* @__PURE__ */ I({
|
|
30
29
|
d.value[u.value.name][l] || (d.value[u.value.name][l] = "*");
|
31
30
|
}
|
32
31
|
};
|
33
|
-
d.value = ee.object.clone(b.value),
|
34
|
-
|
32
|
+
d.value = ee.object.clone(b.value), B(), K(async () => {
|
33
|
+
S(), await P(), w("mounted");
|
35
34
|
});
|
36
|
-
let q =
|
35
|
+
let q = M(() => {
|
37
36
|
if (!y.value)
|
38
37
|
return [];
|
39
|
-
let e = Math.ceil(y.value / 200), t =
|
40
|
-
return
|
41
|
-
}),
|
38
|
+
let e = Math.ceil(y.value / 200), t = T.expandSearch(F.value), l = V.value.tabs ?? [], c = t.filter((h) => l.indexOf(h.name) == -1);
|
39
|
+
return T.getLines(c, e, (h) => h, () => 1);
|
40
|
+
}), D = M(() => {
|
42
41
|
let e = [], t = V.value.tabs;
|
43
42
|
return t && t.forEach((l) => {
|
44
43
|
let c = u.value.fields.find((f) => f.name == l);
|
@@ -46,14 +45,14 @@ const ue = /* @__PURE__ */ I({
|
|
46
45
|
}), e;
|
47
46
|
});
|
48
47
|
return Q(() => b.value, (e, t) => {
|
49
|
-
|
50
|
-
}),
|
51
|
-
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"),
|
48
|
+
B();
|
49
|
+
}), E({ onResize: O }), (e, t) => {
|
50
|
+
const l = m("el-radio-button"), c = m("el-radio-group"), f = m("el-form-item"), h = m("el-col"), A = m("el-row"), G = m("el-form"), H = m("el-scrollbar");
|
52
51
|
return n(), i(H, {
|
53
52
|
"max-height": "200px",
|
54
53
|
class: "search-form"
|
55
54
|
}, {
|
56
|
-
default:
|
55
|
+
default: o(() => [
|
57
56
|
a(u).search.length > 0 ? (n(), i(G, {
|
58
57
|
key: 0,
|
59
58
|
ref_key: "searchFormRef",
|
@@ -63,33 +62,33 @@ const ue = /* @__PURE__ */ I({
|
|
63
62
|
onSubmit: t[0] || (t[0] = X(() => {
|
64
63
|
}, ["prevent"]))
|
65
64
|
}, {
|
66
|
-
default:
|
67
|
-
(n(!0), v(g, null, x(a(
|
65
|
+
default: o(() => [
|
66
|
+
(n(!0), v(g, null, x(a(D), (s, _) => (n(), i(f, {
|
68
67
|
class: "search-tab",
|
69
68
|
label: s.label,
|
70
69
|
"label-width": 50
|
71
70
|
}, {
|
72
|
-
default:
|
73
|
-
|
71
|
+
default: o(() => [
|
72
|
+
C(c, {
|
74
73
|
ref_for: !0,
|
75
74
|
ref_key: "tabRefs",
|
76
|
-
ref:
|
77
|
-
onChange: (
|
75
|
+
ref: $,
|
76
|
+
onChange: (r) => a(z)(r, s),
|
78
77
|
modelValue: a(d)[a(u).name][s.name],
|
79
|
-
"onUpdate:modelValue": (
|
78
|
+
"onUpdate:modelValue": (r) => a(d)[a(u).name][s.name] = r
|
80
79
|
}, {
|
81
|
-
default:
|
82
|
-
|
83
|
-
default:
|
84
|
-
|
80
|
+
default: o(() => [
|
81
|
+
C(l, { value: "*" }, {
|
82
|
+
default: o(() => t[1] || (t[1] = [
|
83
|
+
N("全部")
|
85
84
|
])),
|
86
85
|
_: 1
|
87
86
|
}),
|
88
|
-
(n(!0), v(g, null, x(s.control.data.data, (
|
89
|
-
value:
|
87
|
+
(n(!0), v(g, null, x(s.control.data.data, (r) => (n(), i(l, {
|
88
|
+
value: r.value
|
90
89
|
}, {
|
91
|
-
default:
|
92
|
-
|
90
|
+
default: o(() => [
|
91
|
+
N(Y(r.text), 1)
|
93
92
|
]),
|
94
93
|
_: 2
|
95
94
|
}, 1032, ["value"]))), 256))
|
@@ -101,24 +100,24 @@ const ue = /* @__PURE__ */ I({
|
|
101
100
|
}, 1032, ["label"]))), 256)),
|
102
101
|
(n(!0), v(g, null, x(a(q), (s) => (n(), i(A, {
|
103
102
|
class: "search-row",
|
104
|
-
label: a(
|
103
|
+
label: a(D).length ? "其它" : "",
|
105
104
|
"label-width": 50,
|
106
105
|
gutter: 5
|
107
106
|
}, {
|
108
|
-
default:
|
109
|
-
(n(!0), v(g, null, x(s, ({ data:
|
110
|
-
default:
|
111
|
-
|
112
|
-
label: a(te)(
|
107
|
+
default: o(() => [
|
108
|
+
(n(!0), v(g, null, x(s, ({ data: _, span: r }, le) => (n(), i(h, { span: r }, {
|
109
|
+
default: o(() => [
|
110
|
+
C(f, {
|
111
|
+
label: a(te)(_.table.name, _.name)
|
113
112
|
}, {
|
114
|
-
default:
|
115
|
-
|
113
|
+
default: o(() => [
|
114
|
+
C(a(ae), {
|
116
115
|
schema: a(F),
|
117
|
-
table:
|
118
|
-
field:
|
116
|
+
table: _.table,
|
117
|
+
field: _,
|
119
118
|
"search-data": a(b),
|
120
|
-
onChange: a(
|
121
|
-
onSubmit: a(
|
119
|
+
onChange: a(j),
|
120
|
+
onSubmit: a(R)
|
122
121
|
}, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
|
123
122
|
]),
|
124
123
|
_: 2
|
@@ -139,5 +138,5 @@ const ue = /* @__PURE__ */ I({
|
|
139
138
|
}
|
140
139
|
});
|
141
140
|
export {
|
142
|
-
|
141
|
+
re as _
|
143
142
|
};
|
@@ -0,0 +1,60 @@
|
|
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 { c as R } from "./main-DymfKjqO.js";
|
3
|
+
const A = { class: "search-footer" }, q = /* @__PURE__ */ C({
|
4
|
+
__name: "SearchHeader",
|
5
|
+
props: {
|
6
|
+
selection: {},
|
7
|
+
searchData: {},
|
8
|
+
module: {},
|
9
|
+
schema: {},
|
10
|
+
table: {},
|
11
|
+
layout: {},
|
12
|
+
next: {},
|
13
|
+
set: {},
|
14
|
+
url: {},
|
15
|
+
win: {}
|
16
|
+
},
|
17
|
+
emits: ["search", "succeed", "add", "remove", "copy", "show-import", "show-export"],
|
18
|
+
setup(a, { emit: c }) {
|
19
|
+
let t = c, s = a, { url: l, win: m, schema: p, table: n, layout: h, set: i, next: u, selection: d, searchData: H } = E(s), w = (o) => {
|
20
|
+
t("search", o);
|
21
|
+
}, x = () => {
|
22
|
+
t("succeed");
|
23
|
+
}, y = (o) => {
|
24
|
+
t("add", o);
|
25
|
+
}, S = (o) => {
|
26
|
+
t("remove", o);
|
27
|
+
}, v = () => {
|
28
|
+
t("copy");
|
29
|
+
}, _ = () => {
|
30
|
+
t("show-import");
|
31
|
+
}, f = () => {
|
32
|
+
t("show-export");
|
33
|
+
}, g = k(() => {
|
34
|
+
let o = `/${n.value.name}/paging-header`;
|
35
|
+
return R.getComponent(o, "partial", "paging-header");
|
36
|
+
});
|
37
|
+
return (o, b) => (r(), B("div", A, [
|
38
|
+
(r(), D(I(e(g)), {
|
39
|
+
url: e(l),
|
40
|
+
win: e(m),
|
41
|
+
schema: e(p),
|
42
|
+
table: e(n),
|
43
|
+
layout: e(h),
|
44
|
+
next: e(u),
|
45
|
+
set: e(i),
|
46
|
+
selection: e(d),
|
47
|
+
onAdd: e(y),
|
48
|
+
onRemove: e(S),
|
49
|
+
onCopy: e(v),
|
50
|
+
onShowImport: e(_),
|
51
|
+
onShowExport: e(f),
|
52
|
+
onSucceed: e(x),
|
53
|
+
onSubmit: e(w)
|
54
|
+
}, null, 40, ["url", "win", "schema", "table", "layout", "next", "set", "selection", "onAdd", "onRemove", "onCopy", "onShowImport", "onShowExport", "onSucceed", "onSubmit"]))
|
55
|
+
]));
|
56
|
+
}
|
57
|
+
});
|
58
|
+
export {
|
59
|
+
q as _
|
60
|
+
};
|
@@ -1,10 +1,9 @@
|
|
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 {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
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 F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
|
2
|
+
import { p as z, C as A, _ as G } from "./main-DymfKjqO.js";
|
4
3
|
const H = { class: "option-text" }, I = {
|
5
4
|
key: 0,
|
6
5
|
class: "option-suffix"
|
7
|
-
},
|
6
|
+
}, T = /* @__PURE__ */ K({
|
8
7
|
__name: "Select",
|
9
8
|
props: {
|
10
9
|
schema: {},
|
@@ -15,7 +14,7 @@ const H = { class: "option-text" }, I = {
|
|
15
14
|
},
|
16
15
|
emits: ["change", "submit", "update:modelValue"],
|
17
16
|
setup(v, { emit: x }) {
|
18
|
-
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b),
|
17
|
+
let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), C = d(!1), i = d(), m = d(a.value.control.data.data), k = () => {
|
19
18
|
r("submit");
|
20
19
|
}, w = () => {
|
21
20
|
}, B = (l) => {
|
@@ -28,7 +27,7 @@ const H = { class: "option-text" }, I = {
|
|
28
27
|
}), G.post(a.value.control.data.route, l).then(({ data: o }) => {
|
29
28
|
m.value = o;
|
30
29
|
}).finally(() => {
|
31
|
-
|
30
|
+
C.value = !1;
|
32
31
|
});
|
33
32
|
}, n = S({
|
34
33
|
get() {
|
@@ -53,19 +52,19 @@ const H = { class: "option-text" }, I = {
|
|
53
52
|
"loading-text": "加载中",
|
54
53
|
"remote-method": t(B),
|
55
54
|
disabled: t(a).control.readonly,
|
56
|
-
onKeyup: M(N(t(
|
55
|
+
onKeyup: M(N(t(k), ["alt"]), ["enter", "native"]),
|
57
56
|
onChange: t(w),
|
58
57
|
modelValue: t(n),
|
59
|
-
"onUpdate:modelValue": o[0] || (o[0] = (e) =>
|
58
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
|
60
59
|
}, {
|
61
60
|
default: f(() => [
|
62
|
-
(s(!0), h(
|
61
|
+
(s(!0), h(L, null, U(t(m), (e, O) => (s(), p(u, {
|
63
62
|
label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
|
64
63
|
value: e.value,
|
65
64
|
key: e.value
|
66
65
|
}, {
|
67
66
|
default: f(() => [
|
68
|
-
|
67
|
+
j("span", H, _(e.text), 1),
|
69
68
|
e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
|
70
69
|
]),
|
71
70
|
_: 2
|
@@ -77,5 +76,5 @@ const H = { class: "option-text" }, I = {
|
|
77
76
|
}
|
78
77
|
});
|
79
78
|
export {
|
80
|
-
|
79
|
+
T as default
|
81
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-CJwZPQz6.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,10 +1,9 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
1
|
+
import { defineComponent as A, toRefs as D, ref as f, computed as L, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as O, withModifiers as U, 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 { T as J, d as P, h as Q, _ as W } from "./main-DymfKjqO.js";
|
4
3
|
const X = { class: "option-text" }, Y = {
|
5
4
|
key: 0,
|
6
5
|
class: "option-suffix"
|
7
|
-
},
|
6
|
+
}, le = /* @__PURE__ */ A({
|
8
7
|
__name: "Select",
|
9
8
|
props: {
|
10
9
|
schema: {},
|
@@ -16,7 +15,7 @@ const X = { class: "option-text" }, Y = {
|
|
16
15
|
},
|
17
16
|
emits: ["submit", "change", "update:modelValue"],
|
18
17
|
setup(C, { emit: E }) {
|
19
|
-
let s = E, B = C, { schema: S, field: u, table: m, set:
|
18
|
+
let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), b = f(), v = f(!1), d = f(u.value.control.data.data), T = (t) => {
|
20
19
|
t == "" && (t = null);
|
21
20
|
let e;
|
22
21
|
if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
|
@@ -26,25 +25,25 @@ const X = { class: "option-text" }, Y = {
|
|
26
25
|
R.value[a.name] = o;
|
27
26
|
}
|
28
27
|
g(m.value, u.value), s("change", t);
|
29
|
-
},
|
28
|
+
}, j = () => {
|
30
29
|
s("submit");
|
30
|
+
}, K = () => {
|
31
31
|
}, N = () => {
|
32
|
-
|
33
|
-
h.value = !0;
|
32
|
+
v.value = !0;
|
34
33
|
let t = { text: b.value, conditions: [] };
|
35
34
|
u.value.control.data.conditions.forEach((e) => {
|
36
|
-
let a =
|
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(",");
|
37
36
|
t.conditions.push({ name: e.name, value: o });
|
38
37
|
}), W.post(u.value.control.data.route, t).then(({ data: e }) => {
|
39
38
|
d.value = e;
|
40
39
|
}).finally(() => {
|
41
|
-
|
40
|
+
v.value = !1, I(() => {
|
42
41
|
let e = d.value.find((a) => a.value == r.value);
|
43
42
|
x.value.scrollToOption(e);
|
44
43
|
});
|
45
44
|
});
|
46
45
|
}, F = (t) => {
|
47
|
-
b.value = t,
|
46
|
+
b.value = t, N();
|
48
47
|
}, M = (t, e) => {
|
49
48
|
let a = [];
|
50
49
|
return S.value.forEach((o) => {
|
@@ -56,9 +55,9 @@ const X = { class: "option-text" }, Y = {
|
|
56
55
|
}), a;
|
57
56
|
}, g = (t, e) => {
|
58
57
|
M(t, e).forEach((o) => {
|
59
|
-
Q.setRowsValue(null,
|
58
|
+
Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
|
60
59
|
});
|
61
|
-
}, r =
|
60
|
+
}, r = L({
|
62
61
|
get() {
|
63
62
|
return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
|
64
63
|
},
|
@@ -81,23 +80,23 @@ const X = { class: "option-text" }, Y = {
|
|
81
80
|
placeholder: n(J)(n(m).name, n(u).name),
|
82
81
|
multiple: n(u).control.multiple,
|
83
82
|
"remote-method": n(F),
|
84
|
-
loading: n(
|
83
|
+
loading: n(v),
|
85
84
|
disabled: n(u).control.readonly,
|
86
|
-
onKeyup:
|
87
|
-
onBlur: n(
|
88
|
-
onChange: n(
|
85
|
+
onKeyup: O(U(n(j), ["alt"]), ["enter", "native"]),
|
86
|
+
onBlur: n(K),
|
87
|
+
onChange: n(T),
|
89
88
|
modelValue: n(r),
|
90
89
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
|
91
90
|
}, {
|
92
91
|
default: V(() => [
|
93
|
-
(c(!0),
|
92
|
+
(c(!0), k(q, null, z(n(d), (l, i) => (c(), y(a, {
|
94
93
|
label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
|
95
94
|
value: l.value,
|
96
95
|
key: l.value
|
97
96
|
}, {
|
98
97
|
default: V(() => [
|
99
|
-
G("span", X,
|
100
|
-
l.suffix ? (c(),
|
98
|
+
G("span", X, w(l.text), 1),
|
99
|
+
l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
|
101
100
|
]),
|
102
101
|
_: 2
|
103
102
|
}, 1032, ["label", "value"]))), 128))
|
@@ -108,5 +107,5 @@ const X = { class: "option-text" }, Y = {
|
|
108
107
|
}
|
109
108
|
});
|
110
109
|
export {
|
111
|
-
|
110
|
+
le as default
|
112
111
|
};
|