halo-pc 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-DSuvpyeC.js → Article-H_clf90b.js} +31 -32
- package/dist/{ArticleFooter-Cx3OC7sV.js → ArticleFooter-BLi4TNA7.js} +3 -4
- package/dist/Autocomplete-BF9x0F4f.js +49 -0
- package/dist/{Autocomplete-DASTUS8d.js → Autocomplete-CcIzTPSr.js} +11 -12
- package/dist/{Autocomplete-1jt0wRMS.js → Autocomplete-DMm6oI1g.js} +1 -1
- package/dist/{CSharp-CebNTVPd.js → CSharp-CZOchOE-.js} +1 -1
- package/dist/{Calender-BBILvX8n.js → Calender-BoQV7bhA.js} +4 -4
- package/dist/Callback-79Bw4RwY.js +20 -0
- package/dist/Cascader-D1Ou5OSg.js +41 -0
- package/dist/{Cascader-DyQ312mS.js → Cascader-DMhl98vw.js} +27 -28
- package/dist/{Checkbox-CHmMU0Cs.js → Checkbox-C6t6S7ii.js} +1 -1
- package/dist/{Checkbox-CyC_mo50.js → Checkbox-DtrXMDBR.js} +13 -14
- package/dist/Code-B8ISTTYK.js +54 -0
- package/dist/Code-BMlBvnqa.js +4 -0
- package/dist/{Code-CIFJJJo3.js → Code-DDacfgvl.js} +1 -1
- package/dist/Code-DIGn8Raz.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
- package/dist/Column-DjA11efs.js +69 -0
- package/dist/{Comment-D78rr4-n.js → Comment-Ixu0gPk3.js} +19 -25
- package/dist/{Compare-DLiL32cA.js → Compare-C1uq4lgK.js} +9 -10
- package/dist/{Compare-Cb9vYPl5.js → Compare-NN40QJWm.js} +10 -11
- package/dist/{Copy-CH2_hawJ.js → Copy-BcfSvyWG.js} +11 -12
- package/dist/{Custom-D9qN9bwa.js → Custom-Dn9_vPuD.js} +21 -22
- package/dist/{DataExport-D8cqXPrh.js → DataExport-DNGgWqsx.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
- package/dist/{DataImport-3KwXYYGw.js → DataImport-CI9eM5T1.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
- package/dist/{Date-OZxdofhB.js → Date-CGyzi8yX.js} +1 -1
- package/dist/{Date-yHlD-Lw2.js → Date-CZGbZKjB.js} +8 -9
- package/dist/{DateRange-BLSxDHKv.js → DateRange-MbbkmZ_Y.js} +9 -10
- package/dist/{DateTime-B7GzMj8Q.js → DateTime-DHrHmRLL.js} +1 -1
- package/dist/{DateTime-8tbpOKOK.js → DateTime-DqUOXGWH.js} +8 -9
- package/dist/{DateTimeRange-COFWmQoO.js → DateTimeRange-DgXQkZLx.js} +11 -12
- package/dist/{Daterange-Cy8l4CfJ.js → Daterange-DLHJuRur.js} +8 -9
- package/dist/{Decimal-Dw6EtZOm.js → Decimal-BUJuuvfr.js} +1 -1
- package/dist/{Delete-DjXSCUKp.js → Delete-BGMk0orl.js} +19 -20
- package/dist/{Detail-DU8mI4u2.js → Detail-D4KzWdHQ.js} +7 -8
- package/dist/Dictionary-Esd3ERAq.js +55 -0
- package/dist/{Email-AHWpz5Ck.js → Email-C9K09hwC.js} +11 -12
- package/dist/{File-DUxwHR5G.js → File-ai1eYO7v.js} +43 -44
- package/dist/{Image-BJ5q87B6.js → Image-CfY4G1Yn.js} +1 -1
- package/dist/{Index-Z8HW5XAm.js → Index-B5o7uf36.js} +15 -16
- package/dist/Index-CH3nwnPZ.js +4 -0
- package/dist/Index-CTjDkp7e.js +4 -0
- package/dist/Index-DSZ8wa7U.js +4 -0
- package/dist/Index-DVdiF3gr.js +4 -0
- package/dist/{Index-Jt1omrn-.js → Index-DYHrSEZ5.js} +1 -1
- package/dist/Index-DsZPtDYE.js +173 -0
- package/dist/{Index-KTv20XtO.js → Index-S1btGSGD.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +6 -7
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BznVrY52.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +14 -20
- package/dist/{Install-C-xxCx9D.js → Install-D-MgafyF.js} +13 -14
- package/dist/{Int-BsHpY5Gt.js → Int-CnvfCxgn.js} +9 -10
- package/dist/{Int-1QpMyTPB.js → Int-D3RqVcmN.js} +13 -14
- package/dist/{List-DW7FpMfd.js → List-DA4SO_le.js} +18 -19
- package/dist/Maintaince-BIgEbjrq.js +14 -0
- package/dist/{Markdown-BZhSwheI.js → Markdown-hax8By5O.js} +1 -1
- package/dist/Month-5lTUiWin.js +37 -0
- package/dist/{Month-IJnA7Kgl.js → Month-BDkwv-vc.js} +11 -12
- package/dist/{Month-BKXtBi6i.js → Month-CnVTSnyK.js} +1 -1
- package/dist/{Normal-CettIwbU.js → Normal-DoE9t7d7.js} +52 -53
- package/dist/Paging-5qsCTRWy.js +92 -0
- package/dist/{PagingHeader-irWrEKGQ.js → PagingHeader-BFtE6jSy.js} +35 -36
- package/dist/{PagingRow-Bft1brFD.js → PagingRow-CSB-kwMz.js} +19 -20
- package/dist/{Racebar-D3VFwM1V.js → Racebar-Bc-dDRss.js} +25 -31
- package/dist/{Radio-C-IwNXnz.js → Radio-CMGOtMnx.js} +1 -1
- package/dist/{Register-XTfqbbgr.js → Register-8wi0uixs.js} +60 -61
- package/dist/RichText-BR4Kvx0J.js +41 -0
- package/dist/{SearchFooter-hC7sQBez.js → SearchFooter-DOC21dmS.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
- package/dist/{SearchForm-BTux7Adt.js → SearchForm-BMTSPce_.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +31 -32
- package/dist/{Select-ClAK8aNJ.js → Select-DAxdpZlO.js} +15 -16
- package/dist/{Select-K1dU20i2.js → Select-DnFyey0n.js} +30 -31
- package/dist/{Select-DlM_C-60.js → Select-MBD4Simw.js} +1 -1
- package/dist/{Single-DYDwq041.js → Single-D6x6VV_B.js} +74 -75
- package/dist/{Statistic-CidgrAcU.js → Statistic-BS_DA72m.js} +29 -30
- package/dist/{Stock-BFszdaCn.js → Stock-CbucObTu.js} +1 -1
- package/dist/{Stock-BiuhsKPB.js → Stock-CtmevqBK.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +17 -18
- package/dist/{Switch-TI8J8-E2.js → Switch-BlXAy9qH.js} +1 -1
- package/dist/{Table-DJOSPNrn.js → Table-CqsfAMh7.js} +73 -74
- package/dist/{Table-DYELgaTY.js → Table-Da9gan1Y.js} +61 -62
- package/dist/Text-C72NLZMt.js +48 -0
- package/dist/Text-CHvsKR9H.js +4 -0
- package/dist/{Text-DEv-wMFU.js → Text-CbZlEVTJ.js} +11 -12
- package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
- package/dist/{TextLink-CKPExcuj.js → TextLink-SAnZ7BfX.js} +10 -11
- package/dist/{Textarea-CEv7HYqY.js → Textarea-DphCUpXp.js} +1 -1
- package/dist/{Time-BeTq6Tq3.js → Time-DjE8yYdK.js} +10 -11
- package/dist/{Timeline-BI2o8Kug.js → Timeline-D11vjkpZ.js} +13 -19
- package/dist/{Tree-DlIrY3e2.js → Tree-DK73Ou_F.js} +35 -41
- package/dist/{Tree-BPeNz1X4.js → Tree-kich05vY.js} +79 -80
- package/dist/{TreeNode-CzM6Npi5.js → TreeNode-Dx6cZ31Z.js} +10 -11
- package/dist/{Update-Bv6Lp8LZ.js → Update-D2Plm_AG.js} +14 -15
- package/dist/{UpdateChild-mrF1t5G8.js → UpdateChild-BXV7QqaP.js} +20 -21
- package/dist/{Upload-BCdzJlzR.js → Upload-B87EDynn.js} +46 -47
- package/dist/Upload-CHPjMGFZ.js +65 -0
- package/dist/{Year-DLITl-_8.js → Year-BPFmIiPX.js} +1 -1
- package/dist/{Year-2hJSZcj_.js → Year-C93IJgc8.js} +8 -9
- package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
- package/dist/main-nvsTmKXH.js +16321 -0
- package/dist/main.js +43 -45
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/Autocomplete-C7CYy8w6.js +0 -50
- package/dist/Callback-CLA9Ab9q.js +0 -21
- package/dist/Cascader-DY2zOwsa.js +0 -47
- package/dist/Code-B4Z7WuUc.js +0 -42
- package/dist/Code-BOTf1uZ5.js +0 -60
- package/dist/Code-Da4PjT9q.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js +0 -63
- package/dist/Column-9A6-8_Y7.js +0 -75
- package/dist/Dictionary-CAAvUqf-.js +0 -61
- package/dist/Index-CF44rsZW.js +0 -4
- package/dist/Index-CnFjsuQV.js +0 -4
- package/dist/Index-D223MCYD.js +0 -174
- package/dist/Index-DCIDLocj.js +0 -4
- package/dist/Index-qIfIbiFH.js +0 -4
- package/dist/Maintaince-CjUfJUr7.js +0 -20
- package/dist/Month-m0FiTmBK.js +0 -38
- package/dist/Paging-J9vCBFzM.js +0 -93
- package/dist/RichText-D3aLlQph.js +0 -47
- package/dist/Text-DAliAA9U.js +0 -4
- package/dist/Text-Dy6uYSm3.js +0 -49
- package/dist/Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js +0 -59
- package/dist/Upload-B0dBN1oH.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-SNlEeN01.js +0 -10337
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as f, toRefs as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const E = /* @__PURE__ */ f({
|
1
|
+
import { defineComponent as f, toRefs as V, computed as _, resolveComponent as b, openBlock as h, createBlock as x, unref as e, withKeys as y, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
|
2
|
+
import { h as K } from "./main-nvsTmKXH.js";
|
3
|
+
const D = /* @__PURE__ */ f({
|
5
4
|
__name: "Email",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -12,12 +11,12 @@ const E = /* @__PURE__ */ f({
|
|
12
11
|
modelValue: {}
|
13
12
|
},
|
14
13
|
emits: ["submit", "change", "update:modelValue"],
|
15
|
-
setup(i, { emit:
|
16
|
-
let o =
|
14
|
+
setup(i, { emit: s }) {
|
15
|
+
let o = s, u = i, { table: d, field: t, set: B, modelValue: p } = V(u), r = () => {
|
17
16
|
o("submit");
|
18
|
-
}, l =
|
17
|
+
}, l = _({
|
19
18
|
get() {
|
20
|
-
return
|
19
|
+
return p.value;
|
21
20
|
},
|
22
21
|
set(a) {
|
23
22
|
o("update:modelValue", a), o("change", a);
|
@@ -25,11 +24,11 @@ const E = /* @__PURE__ */ f({
|
|
25
24
|
});
|
26
25
|
return (a, n) => {
|
27
26
|
const c = b("el-input");
|
28
|
-
return h(),
|
27
|
+
return h(), x(c, {
|
29
28
|
type: "email",
|
30
29
|
disabled: e(t).control.readonly,
|
31
|
-
placeholder: e(K)(e(
|
32
|
-
onKeyup:
|
30
|
+
placeholder: e(K)(e(d).name, e(t).name),
|
31
|
+
onKeyup: y(e(r), ["enter", "native"]),
|
33
32
|
modelValue: e(l),
|
34
33
|
"onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
|
35
34
|
}, k({ _: 2 }, [
|
@@ -45,5 +44,5 @@ const E = /* @__PURE__ */ f({
|
|
45
44
|
}
|
46
45
|
});
|
47
46
|
export {
|
48
|
-
|
47
|
+
D as default
|
49
48
|
};
|
@@ -1,17 +1,16 @@
|
|
1
|
-
import { defineComponent as P, toRefs as T, ref as
|
2
|
-
import { useRoute as
|
3
|
-
import {
|
4
|
-
import "./assets/moment-h96o7c8I.js";
|
1
|
+
import { defineComponent as P, toRefs as T, ref as Z, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as s, normalizeClass as x, Fragment as L, renderList as q, createBlock as y, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
|
2
|
+
import { useRoute as A, useRouter as G } from "vue-router";
|
3
|
+
import { v as H, S as I, Z as m, f as J, _ as K, g as M } from "./main-nvsTmKXH.js";
|
5
4
|
import "element-plus";
|
6
5
|
import "./assets/intro.js-Cg1adLK7.js";
|
7
|
-
import { _ as
|
8
|
-
const
|
6
|
+
import { _ as O } from "./SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js";
|
7
|
+
const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
|
9
8
|
key: 0,
|
10
9
|
class: "files-image"
|
11
|
-
},
|
10
|
+
}, X = { class: "file-image" }, Y = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
|
12
11
|
key: 2,
|
13
12
|
class: "not-support"
|
14
|
-
},
|
13
|
+
}, pe = /* @__PURE__ */ P({
|
15
14
|
__name: "File",
|
16
15
|
props: {
|
17
16
|
searchData: {},
|
@@ -22,58 +21,58 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
22
21
|
next: {},
|
23
22
|
set: {}
|
24
23
|
},
|
25
|
-
setup(
|
26
|
-
let
|
24
|
+
setup(z) {
|
25
|
+
let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: se } = T(F), f = A(), v = G(), k = Z(), C = (o) => {
|
27
26
|
let t = { type: "fileLayout", value: o };
|
28
|
-
|
27
|
+
K.post("/config/save", t).then((h) => {
|
29
28
|
m.fileLayout = o;
|
30
29
|
});
|
31
30
|
}, V = (o) => {
|
32
31
|
let t = { ...f.query };
|
33
|
-
t.page = o, v.push({ path:
|
32
|
+
t.page = o, v.push({ path: d.value.paging.route, query: t });
|
34
33
|
}, B = () => {
|
35
34
|
let o = { ...f.query };
|
36
|
-
o.page = "1", o.condition =
|
37
|
-
let t = { path:
|
35
|
+
o.page = "1", o.condition = M.encode(k.value);
|
36
|
+
let t = { path: d.value.paging.route, query: o };
|
38
37
|
v.push(t);
|
39
38
|
};
|
40
39
|
return (o, t) => {
|
41
40
|
const h = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
|
42
|
-
return l(), u("div",
|
43
|
-
g(e(
|
44
|
-
title: e(
|
41
|
+
return l(), u("div", Q, [
|
42
|
+
g(e(H), {
|
43
|
+
title: e(I)(o.module.type, o.module.name)
|
45
44
|
}, {
|
46
45
|
operation: r(() => [
|
47
|
-
|
48
|
-
|
46
|
+
s("div", U, [
|
47
|
+
s("a", {
|
49
48
|
class: x({ active: e(m).fileLayout == "list" }),
|
50
49
|
onClick: t[0] || (t[0] = (a) => e(C)("list"))
|
51
50
|
}, t[2] || (t[2] = [
|
52
|
-
|
51
|
+
s("i", { class: "fa fa-list" }, null, -1)
|
53
52
|
]), 2),
|
54
|
-
|
53
|
+
s("a", {
|
55
54
|
class: x({ active: e(m).fileLayout == "image" }),
|
56
55
|
onClick: t[1] || (t[1] = (a) => e(C)("image"))
|
57
56
|
}, t[3] || (t[3] = [
|
58
|
-
|
57
|
+
s("i", { class: "fa fa-image" }, null, -1)
|
59
58
|
]), 2)
|
60
59
|
])
|
61
60
|
]),
|
62
61
|
append: r(() => [
|
63
|
-
e(m).fileLayout == "image" ? (l(), u("div",
|
64
|
-
(l(!0), u(L, null, q(e(b)[e(
|
62
|
+
e(m).fileLayout == "image" ? (l(), u("div", W, [
|
63
|
+
(l(!0), u(L, null, q(e(b)[e(n).name], (a, $) => (l(), y(h, {
|
65
64
|
class: "file",
|
66
|
-
to: { path: e(
|
65
|
+
to: { path: e(d).detail.route, query: { id: a[e(n).key.name], m: e(f).query.m } },
|
67
66
|
key: $
|
68
67
|
}, {
|
69
68
|
default: r(() => [
|
70
|
-
|
71
|
-
|
69
|
+
s("div", X, [
|
70
|
+
s("img", {
|
72
71
|
src: a[e(i).url],
|
73
72
|
alt: ""
|
74
|
-
}, null, 8,
|
73
|
+
}, null, 8, Y)
|
75
74
|
]),
|
76
|
-
|
75
|
+
s("div", ee, _(a[e(i).name]), 1)
|
77
76
|
]),
|
78
77
|
_: 2
|
79
78
|
}, 1032, ["to"]))), 128))
|
@@ -81,46 +80,46 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
81
80
|
key: 1,
|
82
81
|
class: "files-list",
|
83
82
|
border: "",
|
84
|
-
data: e(b)[e(
|
83
|
+
data: e(b)[e(n).name]
|
85
84
|
}, {
|
86
85
|
empty: r(() => [
|
87
|
-
w(
|
86
|
+
w(_(e(J)("common.no_data")), 1)
|
88
87
|
]),
|
89
88
|
default: r(() => [
|
90
|
-
(l(!0), u(L, null, q(e(
|
89
|
+
(l(!0), u(L, null, q(e(n).show, (a, $) => (l(), y(D, {
|
91
90
|
"show-overflow-tooltip": "",
|
92
|
-
sortable: e(
|
91
|
+
sortable: e(n) ? "custom" : !1,
|
93
92
|
"min-width": "180",
|
94
93
|
"sort-orders": ["descending", "ascending"],
|
95
94
|
prop: a.name,
|
96
95
|
label: `${a.label}${a.prefix || a.suffix ? "(" + (a.prefix || a.suffix) + ")" : ""}`,
|
97
|
-
key: `${e(
|
96
|
+
key: `${e(n).name}.${a.name}`
|
98
97
|
}, {
|
99
98
|
default: r((c) => [
|
100
|
-
|
99
|
+
s("div", te, [
|
101
100
|
c.column.property == e(i).name ? (l(), u("img", {
|
102
101
|
key: 0,
|
103
102
|
class: "file-image",
|
104
103
|
src: c.row[e(i).url],
|
105
104
|
alt: c.row[e(i).name]
|
106
|
-
}, null, 8, ae)) :
|
107
|
-
|
105
|
+
}, null, 8, ae)) : S("", !0),
|
106
|
+
s("div", oe, _(c.row[c.column.property]), 1)
|
108
107
|
])
|
109
108
|
]),
|
110
109
|
_: 2
|
111
110
|
}, 1032, ["sortable", "prop", "label"]))), 128))
|
112
111
|
]),
|
113
112
|
_: 1
|
114
|
-
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" +
|
113
|
+
}, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + _(e(m).fileLayout), 1))
|
115
114
|
]),
|
116
115
|
default: r(() => [
|
117
|
-
e(
|
116
|
+
e(n).search.length > 0 ? (l(), y(O, {
|
118
117
|
key: 0,
|
119
118
|
schema: e(N),
|
120
|
-
table: e(
|
119
|
+
table: e(n),
|
121
120
|
search: e(k),
|
122
121
|
onSubmit: e(B)
|
123
|
-
}, null, 8, ["schema", "table", "search", "onSubmit"])) :
|
122
|
+
}, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
|
124
123
|
]),
|
125
124
|
_: 1
|
126
125
|
}, 8, ["title"]),
|
@@ -130,10 +129,10 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
130
129
|
}, {
|
131
130
|
default: r(() => [
|
132
131
|
g(h, {
|
133
|
-
to: { path: e(
|
132
|
+
to: { path: e(d).insert.route, query: { m: e(f).query.m } }
|
134
133
|
}, {
|
135
134
|
default: r(() => [
|
136
|
-
w("添加新" +
|
135
|
+
w("添加新" + _(e(n).title), 1)
|
137
136
|
]),
|
138
137
|
_: 1
|
139
138
|
}, 8, ["to"])
|
@@ -153,5 +152,5 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
|
|
153
152
|
}
|
154
153
|
});
|
155
154
|
export {
|
156
|
-
|
155
|
+
pe as default
|
157
156
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
const E = /* @__PURE__ */ C({
|
1
|
+
import { defineComponent as C, defineAsyncComponent as D, toRefs as N, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
|
2
|
+
import { d as B, f as x } from "./main-nvsTmKXH.js";
|
3
|
+
const A = /* @__PURE__ */ C({
|
5
4
|
__name: "Index",
|
6
5
|
props: {
|
7
6
|
schema: {},
|
@@ -12,11 +11,11 @@ const E = /* @__PURE__ */ C({
|
|
12
11
|
config: {}
|
13
12
|
},
|
14
13
|
emits: ["submit", "change"],
|
15
|
-
setup(g, { emit:
|
16
|
-
let V =
|
14
|
+
setup(g, { emit: R }) {
|
15
|
+
let V = D(() => import("./TextLink-SAnZ7BfX.js")), k = g, { schema: u, table: s, field: l, set: d, row: a, config: m } = N(k), i = p(() => {
|
17
16
|
let o = l.value.control.type;
|
18
17
|
return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
|
19
|
-
}), _ = p(() => `text-${
|
18
|
+
}), _ = p(() => `text-${B.string.getDashName(i.value)}`), t = p({
|
20
19
|
get() {
|
21
20
|
return a.value[l.value.name];
|
22
21
|
},
|
@@ -24,12 +23,12 @@ const E = /* @__PURE__ */ C({
|
|
24
23
|
a.value[l.value.name] = o;
|
25
24
|
}
|
26
25
|
});
|
27
|
-
return (o,
|
26
|
+
return (o, n) => e(l).link ? (c(), f(e(V), {
|
28
27
|
key: 0,
|
29
28
|
schema: e(u),
|
30
29
|
table: e(s),
|
31
30
|
field: e(l),
|
32
|
-
set: e(
|
31
|
+
set: e(d),
|
33
32
|
row: e(a)
|
34
33
|
}, {
|
35
34
|
default: v(() => [
|
@@ -37,13 +36,13 @@ const E = /* @__PURE__ */ C({
|
|
37
36
|
schema: e(u),
|
38
37
|
table: e(s),
|
39
38
|
field: e(l),
|
40
|
-
set: e(
|
39
|
+
set: e(d),
|
41
40
|
row: e(a),
|
42
41
|
modelValue: e(t),
|
43
|
-
"onUpdate:modelValue":
|
42
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => b(t) ? t.value = r : t = r)
|
44
43
|
}, {
|
45
44
|
default: v(() => [
|
46
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
45
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
|
47
46
|
]),
|
48
47
|
_: 1
|
49
48
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
|
@@ -54,18 +53,18 @@ const E = /* @__PURE__ */ C({
|
|
54
53
|
schema: e(u),
|
55
54
|
table: e(s),
|
56
55
|
field: e(l),
|
57
|
-
set: e(
|
56
|
+
set: e(d),
|
58
57
|
row: e(a),
|
59
58
|
modelValue: e(t),
|
60
|
-
"onUpdate:modelValue":
|
59
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => b(t) ? t.value = r : t = r)
|
61
60
|
}, {
|
62
61
|
default: v(() => [
|
63
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
62
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
|
64
63
|
]),
|
65
64
|
_: 1
|
66
65
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
|
67
66
|
}
|
68
67
|
});
|
69
68
|
export {
|
70
|
-
|
69
|
+
A as default
|
71
70
|
};
|
@@ -0,0 +1,173 @@
|
|
1
|
+
import { defineComponent as S, ref as u, onMounted as j, computed as D, watch as J, resolveComponent as p, openBlock as d, createElementBlock as R, createVNode as g, unref as t, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as U, isRef as L, withKeys as T, normalizeClass as P, withModifiers as Z, createTextVNode as $, Fragment as G, renderList as W, nextTick as M } from "vue";
|
2
|
+
import { useRoute as X } from "vue-router";
|
3
|
+
import { M as Y, Q as w, J as ee, f as i, d as A, I as K, r as z, z as le } from "./main-nvsTmKXH.js";
|
4
|
+
const te = { class: "login-container" }, oe = { class: "title-container" }, re = { class: "title" }, se = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], pe = /* @__PURE__ */ S({
|
5
|
+
__name: "Index",
|
6
|
+
setup(ie) {
|
7
|
+
let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), y = u(!1), V = u(), h = u(), b = u(), x = X(), F = {
|
8
|
+
id: [{
|
9
|
+
required: !0,
|
10
|
+
trigger: "blur",
|
11
|
+
validator: (l, e, r) => {
|
12
|
+
e ? e.indexOf("@") > -1 ? A.string.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
13
|
+
}
|
14
|
+
}]
|
15
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
16
|
+
}, I = (l) => {
|
17
|
+
l.key && l.key.length == 1 && (l.shiftKey && l.key >= "a" && l.key <= "z" || !l.shiftKey && l.key >= "A" && l.key <= "Z" ? s.value = !0 : s.value = !1), l.key == "CapsLock" && s.value == !0 && (s.value = !1);
|
18
|
+
}, B = () => {
|
19
|
+
f.value == "password" ? f.value = "" : f.value = "password", M(() => {
|
20
|
+
b.value.focus();
|
21
|
+
});
|
22
|
+
}, E = async (l) => {
|
23
|
+
y.value = !0, V.value.validate(async (e) => {
|
24
|
+
if (!e)
|
25
|
+
return y.value = !1, !1;
|
26
|
+
(await K.sso.createAsync(l)).login(a.value).then(({ data: c }) => {
|
27
|
+
A.url.getBackUrl() ? z.toBackUrl() : z.to("/");
|
28
|
+
}).finally(() => {
|
29
|
+
M(() => {
|
30
|
+
y.value = !1;
|
31
|
+
});
|
32
|
+
});
|
33
|
+
});
|
34
|
+
}, N = async (l) => {
|
35
|
+
let e = await K.sso.createAsync(l), r = x.query.return_url, c = `${window.location.origin}/sso/callback?type=${l.toLowerCase()}&return_url=${r}`;
|
36
|
+
return e.loginUrl(le.api.url + `/user/login?type=${l.toLowerCase()}&callback_url=` + encodeURIComponent(c));
|
37
|
+
}, O = (l) => Object.keys(l).reduce((e, r) => (e[r] = l[r], e), {});
|
38
|
+
j(async () => {
|
39
|
+
Y.setI18nTitle("common.login");
|
40
|
+
for (let l = 0; l < w.ssos.length; l++) {
|
41
|
+
let e = w.ssos[l];
|
42
|
+
e.loginUrl = await N(e.type);
|
43
|
+
}
|
44
|
+
_.value != null && (a.value.id == "" ? h.value.focus() : a.value.secret == "" && b.value.focus());
|
45
|
+
});
|
46
|
+
let _ = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
47
|
+
return J(() => x, (l) => {
|
48
|
+
debugger;
|
49
|
+
const e = l.query;
|
50
|
+
e && O(e);
|
51
|
+
}), (l, e) => {
|
52
|
+
const r = p("el-input"), c = p("el-form-item"), C = p("el-tooltip"), q = p("el-button"), Q = p("router-link"), H = p("el-form");
|
53
|
+
return d(), R("div", te, [
|
54
|
+
g(H, {
|
55
|
+
ref_key: "loginFormRef",
|
56
|
+
ref: V,
|
57
|
+
autocomplete: "on",
|
58
|
+
"label-position": "left",
|
59
|
+
model: t(a),
|
60
|
+
rules: t(F)
|
61
|
+
}, {
|
62
|
+
default: m(() => [
|
63
|
+
n("div", oe, [
|
64
|
+
n("h3", re, k(t(ee)("title")), 1)
|
65
|
+
]),
|
66
|
+
t(_) ? (d(), v(c, {
|
67
|
+
key: 0,
|
68
|
+
prop: "id"
|
69
|
+
}, {
|
70
|
+
default: m(() => [
|
71
|
+
e[7] || (e[7] = n("span", { class: "svg-container" }, [
|
72
|
+
n("i", { class: "fa fa-user" })
|
73
|
+
], -1)),
|
74
|
+
g(r, {
|
75
|
+
ref_key: "idRef",
|
76
|
+
ref: h,
|
77
|
+
placeholder: t(i)("common.username_or_email"),
|
78
|
+
name: "id",
|
79
|
+
type: "text",
|
80
|
+
tabindex: "1",
|
81
|
+
autocomplete: "on",
|
82
|
+
modelValue: t(a).id,
|
83
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => t(a).id = o)
|
84
|
+
}, null, 8, ["placeholder", "modelValue"])
|
85
|
+
]),
|
86
|
+
_: 1
|
87
|
+
})) : U("", !0),
|
88
|
+
t(_) ? (d(), v(C, {
|
89
|
+
key: 1,
|
90
|
+
content: "Caps lock is On",
|
91
|
+
placement: "right",
|
92
|
+
manual: "",
|
93
|
+
modelValue: t(s),
|
94
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => L(s) ? s.value = o : s = o)
|
95
|
+
}, {
|
96
|
+
default: m(() => [
|
97
|
+
g(c, { prop: "secret" }, {
|
98
|
+
default: m(() => [
|
99
|
+
e[8] || (e[8] = n("span", { class: "svg-container" }, [
|
100
|
+
n("i", { class: "fa fa-key" })
|
101
|
+
], -1)),
|
102
|
+
(d(), v(r, {
|
103
|
+
ref_key: "secretRef",
|
104
|
+
ref: b,
|
105
|
+
key: t(f),
|
106
|
+
type: t(f),
|
107
|
+
placeholder: t(i)("common.password"),
|
108
|
+
name: "secret",
|
109
|
+
tabindex: "2",
|
110
|
+
autocomplete: "on",
|
111
|
+
onKeyup: [
|
112
|
+
T(t(I), ["native"]),
|
113
|
+
e[2] || (e[2] = T((o) => t(E)("Bearer"), ["enter", "native"]))
|
114
|
+
],
|
115
|
+
onBlur: e[1] || (e[1] = (o) => L(s) ? s.value = !1 : s = !1),
|
116
|
+
modelValue: t(a).secret,
|
117
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => t(a).secret = o)
|
118
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
119
|
+
n("span", {
|
120
|
+
class: "btn-pwd",
|
121
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
122
|
+
(...o) => t(B) && t(B)(...o))
|
123
|
+
}, [
|
124
|
+
n("i", {
|
125
|
+
class: P(t(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
126
|
+
}, null, 2)
|
127
|
+
])
|
128
|
+
]),
|
129
|
+
_: 1
|
130
|
+
})
|
131
|
+
]),
|
132
|
+
_: 1
|
133
|
+
}, 8, ["modelValue"])) : U("", !0),
|
134
|
+
t(_) ? (d(), v(q, {
|
135
|
+
key: 2,
|
136
|
+
type: "primary",
|
137
|
+
class: "btn-login",
|
138
|
+
loading: t(y),
|
139
|
+
onClick: e[6] || (e[6] = Z((o) => t(E)("Bearer"), ["prevent"]))
|
140
|
+
}, {
|
141
|
+
default: m(() => [
|
142
|
+
$(k(t(i)("common.login")), 1)
|
143
|
+
]),
|
144
|
+
_: 1
|
145
|
+
}, 8, ["loading"])) : U("", !0),
|
146
|
+
n("div", se, [
|
147
|
+
(d(!0), R(G, null, W(t(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), R("a", {
|
148
|
+
href: o.loginUrl
|
149
|
+
}, k(t(i)(o.text)), 9, ne))), 256)),
|
150
|
+
g(Q, {
|
151
|
+
class: "btn-register",
|
152
|
+
to: "/register"
|
153
|
+
}, {
|
154
|
+
default: m(() => [
|
155
|
+
$(k(t(i)("common.register")), 1)
|
156
|
+
]),
|
157
|
+
_: 1
|
158
|
+
})
|
159
|
+
])
|
160
|
+
]),
|
161
|
+
_: 1
|
162
|
+
}, 8, ["model", "rules"]),
|
163
|
+
n("div", {
|
164
|
+
class: "powered-by",
|
165
|
+
innerHTML: t(i)("sys.powered_by")
|
166
|
+
}, null, 8, ae)
|
167
|
+
]);
|
168
|
+
};
|
169
|
+
}
|
170
|
+
});
|
171
|
+
export {
|
172
|
+
pe as default
|
173
|
+
};
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
-
import {
|
3
|
-
import "./assets/moment-h96o7c8I.js";
|
2
|
+
import { n as F, f as I } from "./main-nvsTmKXH.js";
|
4
3
|
import "element-plus";
|
5
4
|
import "vue-router";
|
6
5
|
import "./assets/intro.js-Cg1adLK7.js";
|
7
|
-
const M = { class: "not-support" },
|
6
|
+
const M = { class: "not-support" }, J = /* @__PURE__ */ x({
|
8
7
|
__name: "Index",
|
9
8
|
props: {
|
10
9
|
route: {},
|
@@ -18,7 +17,7 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
18
17
|
},
|
19
18
|
emits: ["layout-change", "row-edit", "change", "submit"],
|
20
19
|
setup(s, { expose: i, emit: m }) {
|
21
|
-
let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set:
|
20
|
+
let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set: f } = E(d), l = R(), h = (t) => {
|
22
21
|
o("layout-change", t);
|
23
22
|
}, g = (t, n, w) => {
|
24
23
|
o("row-edit", t, n, w);
|
@@ -37,7 +36,7 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
37
36
|
L(e(F), {
|
38
37
|
layout: e(a),
|
39
38
|
table: e(r),
|
40
|
-
onLayoutChange: e(
|
39
|
+
onLayoutChange: e(h)
|
41
40
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
42
41
|
(u(), S(D(`update-${e(a).type.toLowerCase()}`), {
|
43
42
|
ref_key: "layoutRef",
|
@@ -47,7 +46,7 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
47
46
|
table: e(r),
|
48
47
|
layout: e(a),
|
49
48
|
next: e(y),
|
50
|
-
set: e(
|
49
|
+
set: e(f),
|
51
50
|
route: t.route,
|
52
51
|
"validate-errors": t.validateErrors,
|
53
52
|
onRowEdit: e(g),
|
@@ -63,5 +62,5 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
|
|
63
62
|
}
|
64
63
|
});
|
65
64
|
export {
|
66
|
-
|
65
|
+
J as _
|
67
66
|
};
|
@@ -1,15 +1,9 @@
|
|
1
|
-
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as
|
2
|
-
import {
|
3
|
-
import "./assets/liquidjs-C2HVw1Ra.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";
|
1
|
+
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as B, Fragment as H, createVNode as L, unref as e, createBlock as R, resolveDynamicComponent as w, withCtx as A, createElementVNode as E, toDisplayString as P } from "vue";
|
2
|
+
import { n as V, A as $ } from "./main-nvsTmKXH.js";
|
9
3
|
import "element-plus";
|
10
4
|
import "vue-router";
|
11
5
|
import "./assets/intro.js-Cg1adLK7.js";
|
12
|
-
const
|
6
|
+
const F = { class: "not-support" }, O = /* @__PURE__ */ k({
|
13
7
|
__name: "Index",
|
14
8
|
props: {
|
15
9
|
searchData: {},
|
@@ -22,7 +16,7 @@ const I = { class: "not-support" }, Y = /* @__PURE__ */ k({
|
|
22
16
|
},
|
23
17
|
emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
|
24
18
|
setup(c, { expose: i, emit: u }) {
|
25
|
-
let o = u, g = c, { module:
|
19
|
+
let o = u, g = c, { module: h, schema: m, table: r, layout: l, next: p, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
|
26
20
|
o("navigate", a, t);
|
27
21
|
}, C = (a, t) => {
|
28
22
|
o("sort", a, t);
|
@@ -44,21 +38,21 @@ const I = { class: "not-support" }, Y = /* @__PURE__ */ k({
|
|
44
38
|
return !1;
|
45
39
|
n.value.resize(a);
|
46
40
|
}, keyboardHandler: (a, t) => {
|
47
|
-
|
48
|
-
} }), (a, t) => (s(),
|
49
|
-
|
41
|
+
$.triggerKeyboardHandler(n.value, a, t);
|
42
|
+
} }), (a, t) => (s(), B(H, null, [
|
43
|
+
L(e(V), {
|
50
44
|
layout: e(l),
|
51
45
|
table: e(r),
|
52
46
|
onLayoutChange: e(S)
|
53
47
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
54
|
-
(s(),
|
48
|
+
(s(), R(w(`paging-${e(l).type.toLowerCase()}`), {
|
55
49
|
ref_key: "pagingRef",
|
56
50
|
ref: n,
|
57
|
-
module: e(
|
58
|
-
schema: e(
|
51
|
+
module: e(h),
|
52
|
+
schema: e(m),
|
59
53
|
table: e(r),
|
60
54
|
layout: e(l),
|
61
|
-
next: e(
|
55
|
+
next: e(p),
|
62
56
|
set: e(d),
|
63
57
|
"search-data": e(y),
|
64
58
|
onNavigate: e(f),
|
@@ -69,8 +63,8 @@ const I = { class: "not-support" }, Y = /* @__PURE__ */ k({
|
|
69
63
|
onSucceed: e(x),
|
70
64
|
onClose: e(z)
|
71
65
|
}, {
|
72
|
-
default:
|
73
|
-
|
66
|
+
default: A(() => [
|
67
|
+
E("div", F, "未支持的分页布局方式:" + P(e(l).type), 1)
|
74
68
|
]),
|
75
69
|
_: 1
|
76
70
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
|
@@ -78,5 +72,5 @@ const I = { class: "not-support" }, Y = /* @__PURE__ */ k({
|
|
78
72
|
}
|
79
73
|
});
|
80
74
|
export {
|
81
|
-
|
75
|
+
O as _
|
82
76
|
};
|