halo-pc 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-C_3LULzy.js +200 -0
- package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
- package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
- package/dist/Autocomplete-BLrbt1wN.js +53 -0
- package/dist/Autocomplete-C27XN8Sp.js +54 -0
- package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
- package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
- package/dist/Callback-BHYDtogL.js +26 -0
- package/dist/Cascader-D3y3WjFF.js +87 -0
- package/dist/Cascader-D9Y8L7X2.js +47 -0
- package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
- package/dist/Checkbox-dDfYBhhc.js +76 -0
- package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
- package/dist/Code-Bi9Y45vV.js +42 -0
- package/dist/Code-CWsSgkJq.js +60 -0
- package/dist/Code-QYs-sjcG.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
- package/dist/Column-wzxM_-Vp.js +74 -0
- package/dist/Comment-BF8L1umD.js +104 -0
- package/dist/Compare-CjSQcnd3.js +43 -0
- package/dist/Compare-Cj_CPjIV.js +63 -0
- package/dist/Copy-BNt-Dwoo.js +49 -0
- package/dist/Custom-CYPkAqpf.js +57 -0
- package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
- package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
- package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
- package/dist/Date-U1py5NaK.js +43 -0
- package/dist/DateRange-DxAx2gxI.js +63 -0
- package/dist/DateTime-B3609Ct6.js +44 -0
- package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
- package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
- package/dist/Daterange-C48t6usd.js +63 -0
- package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
- package/dist/Delete-FhIvONUV.js +62 -0
- package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
- package/dist/Dictionary-CaXytFmK.js +59 -0
- package/dist/Email-H2DHJhMe.js +54 -0
- package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
- package/dist/Image-BSuCHshD.js +9 -0
- package/dist/Index-9KImKLrj.js +4 -0
- package/dist/Index-BIbR8SAU.js +178 -0
- package/dist/Index-BaoxkF9F.js +4 -0
- package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
- package/dist/Index-CXR5RC6-.js +4 -0
- package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
- package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
- package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
- package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
- package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
- package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
- package/dist/Int-CXl1QpEL.js +44 -0
- package/dist/Int-DAxz3ETu.js +46 -0
- package/dist/List-CV9bkdrq.js +79 -0
- package/dist/Maintaince-DZNq9aHX.js +20 -0
- package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
- package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
- package/dist/Month-DXQBHoJU.js +43 -0
- package/dist/Month-bgEd_K7_.js +44 -0
- package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
- package/dist/Paging-JXDzxoM0.js +99 -0
- package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
- package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
- package/dist/QueryApi-B5jI3sBl.js +20 -0
- package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
- package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
- package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
- package/dist/RichText-CxBE_cVg.js +47 -0
- package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
- package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
- package/dist/Select-BPa5rx_H.js +86 -0
- package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
- package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
- package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
- package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
- package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
- package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
- package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
- package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
- package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
- package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
- package/dist/Text-D-VS-lCk.js +59 -0
- package/dist/Text-NRww74M3.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
- package/dist/TextLink-B_Qg6CnF.js +65 -0
- package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
- package/dist/Time-DYOIZ2Rv.js +43 -0
- package/dist/Timeline-B4AYezYA.js +59 -0
- package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
- package/dist/Tree-CTmXjN1O.js +122 -0
- package/dist/TreeNode-HFcGpAOb.js +42 -0
- package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
- package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
- package/dist/Upload-CkQ-5tVg.js +72 -0
- package/dist/Upload-um4BYzwO.js +150 -0
- package/dist/UploadApi-BmdGJGjh.js +20 -0
- package/dist/Year-DKBG5ihv.js +47 -0
- package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.js} +1 -1
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-BZn0cTAu.js +134 -0
- package/dist/assets/file-saver-CwlpTZSc.js +74 -0
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -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/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main-C1iALE1f.js +8947 -0
- package/dist/main.js +130 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Article-D3N6eVpH.js +0 -195
- package/dist/Autocomplete-C1Q-qo5y.js +0 -49
- package/dist/Autocomplete-C_t_3Onz.js +0 -48
- package/dist/Callback-BcjLHYz6.js +0 -20
- package/dist/Cascader-BMs1Kw-s.js +0 -81
- package/dist/Cascader-BoZLMQjq.js +0 -41
- package/dist/Checkbox-DeuCkQ_E.js +0 -70
- package/dist/Code-CmB3ZGnM.js +0 -54
- package/dist/Code-Q9ETcIfA.js +0 -36
- package/dist/Code-hiW76EUm.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
- package/dist/Column-K0p0pVuf.js +0 -69
- package/dist/Comment-B_jDWUXE.js +0 -98
- package/dist/Compare-CziDSVLD.js +0 -37
- package/dist/Compare-DFDzyQIR.js +0 -57
- package/dist/Copy-gHXEFE58.js +0 -43
- package/dist/Custom-DS1OrDHT.js +0 -51
- package/dist/Date-BOrgXdKV.js +0 -37
- package/dist/DateRange-Clg_We_d.js +0 -57
- package/dist/DateTime-Ba-L9NIq.js +0 -38
- package/dist/Daterange-Gaj6hNOK.js +0 -57
- package/dist/Delete-HzVURBlh.js +0 -57
- package/dist/Dictionary-DKnp-UJn.js +0 -55
- package/dist/Email-CpOxaSSw.js +0 -48
- package/dist/Image-DRIunv3_.js +0 -9
- package/dist/Index-DSKuNKCT.js +0 -4
- package/dist/Index-QIBRYf1L.js +0 -4
- package/dist/Index-ZOfKMgat.js +0 -4
- package/dist/Index-bxLda8lZ.js +0 -174
- package/dist/Int-DmNjhEfK.js +0 -38
- package/dist/Int-nUzbSSOv.js +0 -41
- package/dist/List-gNI3y_wH.js +0 -74
- package/dist/Maintaince-pTASKuMA.js +0 -14
- package/dist/Month-CHfaIo8p.js +0 -38
- package/dist/Month-DgztqRaq.js +0 -37
- package/dist/Paging-CBgVct8q.js +0 -95
- package/dist/QueryApi-Wf86Sm6m.js +0 -13
- package/dist/RichText-Cc_jptgY.js +0 -41
- package/dist/Select-wxKjwxJj.js +0 -80
- package/dist/Text-DgZjeg-u.js +0 -4
- package/dist/Text-GuLK7BYX.js +0 -53
- package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
- package/dist/TextLink-B_Ur1pg0.js +0 -59
- package/dist/Time-CmyrAm3i.js +0 -37
- package/dist/Timeline-B85T2wBn.js +0 -53
- package/dist/Tree-OqvNLgYj.js +0 -118
- package/dist/TreeNode-Ba2f55wK.js +0 -37
- package/dist/Upload-D9HeSZCg.js +0 -68
- package/dist/Upload-DXADyB6r.js +0 -147
- package/dist/UploadApi-DAT-xdsM.js +0 -13
- package/dist/Year-Dx_qNPrz.js +0 -41
- package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
- package/dist/main-COiaaxGk.js +0 -3542
@@ -0,0 +1,178 @@
|
|
1
|
+
import { defineComponent as I, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as R, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as U, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Z, renderList as G, nextTick as S } from "vue";
|
2
|
+
import { useRoute as J } from "vue-router";
|
3
|
+
import "./assets/underscore-B0BCaBxV.js";
|
4
|
+
import { i as X, z as w, W as Y, t as i, S as ee, R as F, U as te, r as K, x as oe } from "./main-C1iALE1f.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/clone-BZn0cTAu.js";
|
7
|
+
import "./assets/moment-h96o7c8I.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
+
const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
10
|
+
/* @__PURE__ */ n("i", { class: "fa fa-user" })
|
11
|
+
], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
|
12
|
+
/* @__PURE__ */ n("i", { class: "fa fa-key" })
|
13
|
+
], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], we = /* @__PURE__ */ I({
|
14
|
+
__name: "Index",
|
15
|
+
setup(pe) {
|
16
|
+
let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), C = u(), V = u(), h = u(), x = J(), H = {
|
17
|
+
id: [{
|
18
|
+
required: !0,
|
19
|
+
trigger: "blur",
|
20
|
+
validator: (t, e, r) => {
|
21
|
+
e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
|
22
|
+
}
|
23
|
+
}]
|
24
|
+
// secret: [{required: true, trigger: 'blur', validator: validateSecret}]
|
25
|
+
}, M = (t) => {
|
26
|
+
t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
|
27
|
+
}, B = () => {
|
28
|
+
p.value == "password" ? p.value = "" : p.value = "password", S(() => {
|
29
|
+
h.value.focus();
|
30
|
+
});
|
31
|
+
}, E = async (t) => {
|
32
|
+
_.value = !0, C.value.validate(async (e) => {
|
33
|
+
if (!e)
|
34
|
+
return _.value = !1, !1;
|
35
|
+
(await F.sso.create(t)).login(a.value).then(({ data: f }) => {
|
36
|
+
te.getBackUrl() ? K.toBackUrl() : K.to("/");
|
37
|
+
}).finally(() => {
|
38
|
+
S(() => {
|
39
|
+
_.value = !1;
|
40
|
+
});
|
41
|
+
});
|
42
|
+
});
|
43
|
+
}, N = async (t) => {
|
44
|
+
let e = await F.sso.create(t), r = x.query.return_url, f = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
|
45
|
+
return e.loginUrl(oe.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(f));
|
46
|
+
}, O = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
|
47
|
+
j(async () => {
|
48
|
+
X.setI18nTitle("common.login");
|
49
|
+
for (let t = 0; t < w.ssos.length; t++) {
|
50
|
+
let e = w.ssos[t];
|
51
|
+
e.loginUrl = await N(e.type);
|
52
|
+
}
|
53
|
+
y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
|
54
|
+
});
|
55
|
+
let y = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
|
56
|
+
return P(() => x, (t) => {
|
57
|
+
debugger;
|
58
|
+
const e = t.query;
|
59
|
+
e && O(e);
|
60
|
+
}), (t, e) => {
|
61
|
+
const r = c("el-input"), f = c("el-form-item"), b = c("el-tooltip"), q = c("el-button"), z = c("router-link"), A = c("el-form");
|
62
|
+
return d(), R("div", le, [
|
63
|
+
g(A, {
|
64
|
+
ref_key: "loginFormRef",
|
65
|
+
ref: C,
|
66
|
+
autocomplete: "on",
|
67
|
+
"label-position": "left",
|
68
|
+
model: o(a),
|
69
|
+
rules: o(H)
|
70
|
+
}, {
|
71
|
+
default: m(() => [
|
72
|
+
n("div", re, [
|
73
|
+
n("h3", se, k(o(Y)("title")), 1)
|
74
|
+
]),
|
75
|
+
o(y) ? (d(), v(f, {
|
76
|
+
key: 0,
|
77
|
+
prop: "id"
|
78
|
+
}, {
|
79
|
+
default: m(() => [
|
80
|
+
ne,
|
81
|
+
g(r, {
|
82
|
+
ref_key: "idRef",
|
83
|
+
ref: V,
|
84
|
+
placeholder: o(i)("common.username_or_email"),
|
85
|
+
name: "id",
|
86
|
+
type: "text",
|
87
|
+
tabindex: "1",
|
88
|
+
autocomplete: "on",
|
89
|
+
modelValue: o(a).id,
|
90
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o(a).id = l)
|
91
|
+
}, null, 8, ["placeholder", "modelValue"])
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
})) : U("", !0),
|
95
|
+
o(y) ? (d(), v(b, {
|
96
|
+
key: 1,
|
97
|
+
content: "Caps lock is On",
|
98
|
+
placement: "right",
|
99
|
+
manual: "",
|
100
|
+
modelValue: o(s),
|
101
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => L(s) ? s.value = l : s = l)
|
102
|
+
}, {
|
103
|
+
default: m(() => [
|
104
|
+
g(f, { prop: "secret" }, {
|
105
|
+
default: m(() => [
|
106
|
+
ae,
|
107
|
+
(d(), v(r, {
|
108
|
+
ref_key: "secretRef",
|
109
|
+
ref: h,
|
110
|
+
key: o(p),
|
111
|
+
type: o(p),
|
112
|
+
placeholder: o(i)("common.password"),
|
113
|
+
name: "secret",
|
114
|
+
tabindex: "2",
|
115
|
+
autocomplete: "on",
|
116
|
+
onKeyup: [
|
117
|
+
T(o(M), ["native"]),
|
118
|
+
e[2] || (e[2] = T((l) => o(E)("Bearer"), ["enter", "native"]))
|
119
|
+
],
|
120
|
+
onBlur: e[1] || (e[1] = (l) => L(s) ? s.value = !1 : s = !1),
|
121
|
+
modelValue: o(a).secret,
|
122
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => o(a).secret = l)
|
123
|
+
}, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
|
124
|
+
n("span", {
|
125
|
+
class: "btn-pwd",
|
126
|
+
onClick: e[4] || (e[4] = //@ts-ignore
|
127
|
+
(...l) => o(B) && o(B)(...l))
|
128
|
+
}, [
|
129
|
+
n("i", {
|
130
|
+
class: Q(o(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
|
131
|
+
}, null, 2)
|
132
|
+
])
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
})
|
136
|
+
]),
|
137
|
+
_: 1
|
138
|
+
}, 8, ["modelValue"])) : U("", !0),
|
139
|
+
o(y) ? (d(), v(q, {
|
140
|
+
key: 2,
|
141
|
+
type: "primary",
|
142
|
+
class: "btn-login",
|
143
|
+
loading: o(_),
|
144
|
+
onClick: e[6] || (e[6] = W((l) => o(E)("Bearer"), ["prevent"]))
|
145
|
+
}, {
|
146
|
+
default: m(() => [
|
147
|
+
$(k(o(i)("common.login")), 1)
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["loading"])) : U("", !0),
|
151
|
+
n("div", ie, [
|
152
|
+
(d(!0), R(Z, null, G(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), R("a", {
|
153
|
+
href: l.loginUrl
|
154
|
+
}, k(o(i)(l.text)), 9, ue))), 256)),
|
155
|
+
g(z, {
|
156
|
+
class: "btn-register",
|
157
|
+
to: "/register"
|
158
|
+
}, {
|
159
|
+
default: m(() => [
|
160
|
+
$(k(o(i)("common.register")), 1)
|
161
|
+
]),
|
162
|
+
_: 1
|
163
|
+
})
|
164
|
+
])
|
165
|
+
]),
|
166
|
+
_: 1
|
167
|
+
}, 8, ["model", "rules"]),
|
168
|
+
n("div", {
|
169
|
+
class: "powered-by",
|
170
|
+
innerHTML: o(i)("sys.powered_by")
|
171
|
+
}, null, 8, de)
|
172
|
+
]);
|
173
|
+
};
|
174
|
+
}
|
175
|
+
});
|
176
|
+
export {
|
177
|
+
we as default
|
178
|
+
};
|
@@ -1,6 +1,11 @@
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as D, toRefs as N, computed as
|
2
|
-
import
|
3
|
-
|
1
|
+
import { defineComponent as C, defineAsyncComponent as D, toRefs as N, computed as d, 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 "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { S, t as x } from "./main-C1iALE1f.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const L = /* @__PURE__ */ C({
|
4
9
|
__name: "Index",
|
5
10
|
props: {
|
6
11
|
schema: {},
|
@@ -11,38 +16,38 @@ const U = /* @__PURE__ */ C({
|
|
11
16
|
config: {}
|
12
17
|
},
|
13
18
|
emits: ["submit", "change"],
|
14
|
-
setup(
|
15
|
-
let
|
19
|
+
setup(g, { emit: B }) {
|
20
|
+
let V = D(() => import("./TextLink-B_Qg6CnF.js")), k = g, { schema: u, table: s, field: l, set: i, row: r, config: m } = N(k), p = d(() => {
|
16
21
|
let o = l.value.control.type;
|
17
22
|
return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
|
18
|
-
}), _ =
|
23
|
+
}), _ = d(() => `text-${S.getDashName(p.value)}`), t = d({
|
19
24
|
get() {
|
20
|
-
return
|
25
|
+
return r.value[l.value.name];
|
21
26
|
},
|
22
27
|
set(o) {
|
23
|
-
|
28
|
+
r.value[l.value.name] = o;
|
24
29
|
}
|
25
30
|
});
|
26
|
-
return (o,
|
31
|
+
return (o, a) => e(l).link ? (c(), f(e(V), {
|
27
32
|
key: 0,
|
28
33
|
schema: e(u),
|
29
34
|
table: e(s),
|
30
35
|
field: e(l),
|
31
|
-
set: e(
|
32
|
-
row: e(
|
36
|
+
set: e(i),
|
37
|
+
row: e(r)
|
33
38
|
}, {
|
34
39
|
default: v(() => [
|
35
40
|
(c(), f(y(e(_)), {
|
36
41
|
schema: e(u),
|
37
42
|
table: e(s),
|
38
43
|
field: e(l),
|
39
|
-
set: e(
|
40
|
-
row: e(
|
44
|
+
set: e(i),
|
45
|
+
row: e(r),
|
41
46
|
modelValue: e(t),
|
42
|
-
"onUpdate:modelValue":
|
47
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => b(t) ? t.value = n : t = n)
|
43
48
|
}, {
|
44
49
|
default: v(() => [
|
45
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
50
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(p))), 1)
|
46
51
|
]),
|
47
52
|
_: 1
|
48
53
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
|
@@ -53,18 +58,18 @@ const U = /* @__PURE__ */ C({
|
|
53
58
|
schema: e(u),
|
54
59
|
table: e(s),
|
55
60
|
field: e(l),
|
56
|
-
set: e(
|
57
|
-
row: e(
|
61
|
+
set: e(i),
|
62
|
+
row: e(r),
|
58
63
|
modelValue: e(t),
|
59
|
-
"onUpdate:modelValue":
|
64
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => b(t) ? t.value = n : t = n)
|
60
65
|
}, {
|
61
66
|
default: v(() => [
|
62
|
-
w("div", null, h(e(x)("common.unsupported_text_control", e(
|
67
|
+
w("div", null, h(e(x)("common.unsupported_text_control", e(p))), 1)
|
63
68
|
]),
|
64
69
|
_: 1
|
65
70
|
}, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
|
66
71
|
}
|
67
72
|
});
|
68
73
|
export {
|
69
|
-
|
74
|
+
L as default
|
70
75
|
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { defineComponent as k, toRefs as D, ref as N, openBlock as
|
2
|
-
import "./assets/
|
3
|
-
import
|
1
|
+
import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as B, Fragment as L, createVNode as R, unref as e, createBlock as w, resolveDynamicComponent as E, withCtx as P, createElementVNode as V, toDisplayString as $ } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { q } from "./main-C1iALE1f.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const
|
11
|
+
const F = { class: "not-support" }, W = /* @__PURE__ */ k({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
searchData: {},
|
@@ -15,8 +20,8 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
15
20
|
set: {}
|
16
21
|
},
|
17
22
|
emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
|
18
|
-
setup(c, { expose:
|
19
|
-
let o =
|
23
|
+
setup(c, { expose: i, emit: u }) {
|
24
|
+
let o = u, g = c, { module: m, schema: h, table: r, layout: l, next: p, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
|
20
25
|
o("navigate", a, t);
|
21
26
|
}, C = (a, t) => {
|
22
27
|
o("sort", a, t);
|
@@ -33,7 +38,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
33
38
|
}, S = (a) => {
|
34
39
|
o("layout-change", a);
|
35
40
|
};
|
36
|
-
return
|
41
|
+
return i({ resize: (a) => {
|
37
42
|
if (!n.value || !n.value.resize)
|
38
43
|
return !1;
|
39
44
|
n.value.resize(a);
|
@@ -41,18 +46,18 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
41
46
|
if (!n.value || !n.value.keyboard)
|
42
47
|
return !1;
|
43
48
|
n.value.keyboard(a, t);
|
44
|
-
} }), (a, t) => (
|
45
|
-
R(e(
|
49
|
+
} }), (a, t) => (s(), B(L, null, [
|
50
|
+
R(e(q), {
|
46
51
|
layout: e(l),
|
47
|
-
table: e(
|
52
|
+
table: e(r),
|
48
53
|
onLayoutChange: e(S)
|
49
54
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
50
|
-
(
|
55
|
+
(s(), w(E(`paging-${e(l).type.toLowerCase()}`), {
|
51
56
|
ref_key: "pagingRef",
|
52
57
|
ref: n,
|
53
|
-
module: e(
|
54
|
-
schema: e(
|
55
|
-
table: e(
|
58
|
+
module: e(m),
|
59
|
+
schema: e(h),
|
60
|
+
table: e(r),
|
56
61
|
layout: e(l),
|
57
62
|
next: e(p),
|
58
63
|
set: e(d),
|
@@ -66,7 +71,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
66
71
|
onClose: e(z)
|
67
72
|
}, {
|
68
73
|
default: P(() => [
|
69
|
-
V("div",
|
74
|
+
V("div", F, "未支持的分页布局方式:" + $(e(l).type), 1)
|
70
75
|
]),
|
71
76
|
_: 1
|
72
77
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
|
@@ -74,5 +79,5 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
|
|
74
79
|
}
|
75
80
|
});
|
76
81
|
export {
|
77
|
-
|
82
|
+
W as _
|
78
83
|
};
|
@@ -1,9 +1,14 @@
|
|
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
|
2
|
-
import
|
3
|
-
import
|
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 "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import "./assets/underscore.string-DVXD2SZo.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import { q, t as F } from "./main-C1iALE1f.js";
|
8
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
4
9
|
import "vue-router";
|
5
10
|
import "./assets/intro.js-DxWjEdp_.js";
|
6
|
-
const I = { class: "not-support" },
|
11
|
+
const I = { class: "not-support" }, T = /* @__PURE__ */ x({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
route: {},
|
@@ -16,8 +21,8 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
16
21
|
set: {}
|
17
22
|
},
|
18
23
|
emits: ["layout-change", "row-edit", "change", "submit"],
|
19
|
-
setup(
|
20
|
-
let o = m,
|
24
|
+
setup(i, { expose: s, emit: m }) {
|
25
|
+
let o = m, p = i, { module: d, schema: c, table: l, layout: a, next: y, set: h } = E(p), r = R(), f = (t) => {
|
21
26
|
o("layout-change", t);
|
22
27
|
}, g = (t, n, w) => {
|
23
28
|
o("row-edit", t, n, w);
|
@@ -27,23 +32,23 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
27
32
|
o("submit", t);
|
28
33
|
}, v = (t) => {
|
29
34
|
}, C = (t) => {
|
30
|
-
if (!
|
35
|
+
if (!r.value || !r.value.resize)
|
31
36
|
return !1;
|
32
|
-
|
37
|
+
r.value.resize(t);
|
33
38
|
};
|
34
39
|
return k(() => {
|
35
|
-
}),
|
36
|
-
L(e(
|
40
|
+
}), s({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
|
41
|
+
L(e(q), {
|
37
42
|
layout: e(a),
|
38
|
-
table: e(
|
43
|
+
table: e(l),
|
39
44
|
onLayoutChange: e(f)
|
40
45
|
}, null, 8, ["layout", "table", "onLayoutChange"]),
|
41
46
|
(u(), S(D(`update-${e(a).type.toLowerCase()}`), {
|
42
47
|
ref_key: "layoutRef",
|
43
|
-
ref:
|
44
|
-
module: e(
|
48
|
+
ref: r,
|
49
|
+
module: e(d),
|
45
50
|
schema: e(c),
|
46
|
-
table: e(
|
51
|
+
table: e(l),
|
47
52
|
layout: e(a),
|
48
53
|
next: e(y),
|
49
54
|
set: e(h),
|
@@ -54,7 +59,7 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
54
59
|
onSubmit: e(b)
|
55
60
|
}, {
|
56
61
|
default: N(() => [
|
57
|
-
|
62
|
+
V("div", I, $(e(F)("single.not_supported_layout", e(a).type)), 1)
|
58
63
|
]),
|
59
64
|
_: 1
|
60
65
|
}, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
|
@@ -62,5 +67,5 @@ const I = { class: "not-support" }, H = /* @__PURE__ */ x({
|
|
62
67
|
}
|
63
68
|
});
|
64
69
|
export {
|
65
|
-
|
70
|
+
T as _
|
66
71
|
};
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { defineComponent as E, defineAsyncComponent as I, toRefs as
|
2
|
-
import
|
3
|
-
|
1
|
+
import { defineComponent as E, defineAsyncComponent as I, toRefs as z, ref as A, computed as k, resolveComponent as w, openBlock as n, createElementBlock as _, Fragment as g, unref as e, createBlock as h, withCtx as d, createElementVNode as x, createVNode as v, resolveDynamicComponent as F, toDisplayString as C, createTextVNode as H, createCommentVNode as U } from "vue";
|
2
|
+
import "./assets/underscore-B0BCaBxV.js";
|
3
|
+
import { S as $, t as j } from "./main-C1iALE1f.js";
|
4
|
+
import "./assets/clone-BZn0cTAu.js";
|
5
|
+
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
+
import "./assets/moment-h96o7c8I.js";
|
7
|
+
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
+
const q = { class: "text-popover" }, G = {
|
4
9
|
key: 2,
|
5
10
|
class: "control-operation"
|
6
|
-
},
|
11
|
+
}, W = /* @__PURE__ */ E({
|
7
12
|
__name: "Index",
|
8
13
|
props: {
|
9
14
|
schema: {},
|
@@ -15,12 +20,12 @@ const j = { class: "text-popover" }, q = {
|
|
15
20
|
},
|
16
21
|
emits: ["submit", "change"],
|
17
22
|
setup(V, { emit: B }) {
|
18
|
-
let y = I(() => import("./Index-
|
19
|
-
},
|
23
|
+
let y = I(() => import("./Index-icEhc88J.js")), N = B, R = V, { schema: a, table: i, field: t, set: c, row: o, config: l } = z(R), m = A(), S = () => {
|
24
|
+
}, D = (r) => {
|
20
25
|
N("submit", r);
|
21
26
|
}, b = k(() => {
|
22
|
-
var
|
23
|
-
if ((
|
27
|
+
var p, f;
|
28
|
+
if ((f = (p = l == null ? void 0 : l.value) == null ? void 0 : p.control) != null && f.type)
|
24
29
|
return l.value.control.type;
|
25
30
|
let r = t.value.control;
|
26
31
|
if (r.typeBy != null) {
|
@@ -29,26 +34,26 @@ const j = { class: "text-popover" }, q = {
|
|
29
34
|
return u;
|
30
35
|
}
|
31
36
|
return r.type;
|
32
|
-
}), T = k(() => `control-${
|
33
|
-
return (r,
|
34
|
-
const
|
37
|
+
}), T = k(() => `control-${$.getDashName(b.value)}`);
|
38
|
+
return (r, s) => {
|
39
|
+
const p = w("el-popover"), f = w("el-link");
|
35
40
|
return n(), _(g, null, [
|
36
41
|
e(t).control.textualize ? (n(), _(g, { key: 0 }, [
|
37
|
-
e(t).control.popover ? (n(), h(
|
42
|
+
e(t).control.popover ? (n(), h(p, {
|
38
43
|
key: 0,
|
39
44
|
trigger: "hover",
|
40
45
|
placement: "top",
|
41
46
|
width: e(t).control.popover.width
|
42
47
|
}, {
|
43
48
|
reference: d(() => [
|
44
|
-
x("div",
|
49
|
+
x("div", q, [
|
45
50
|
v(e(y), {
|
46
51
|
ref_key: "controlRef",
|
47
|
-
ref:
|
52
|
+
ref: m,
|
48
53
|
schema: e(a),
|
49
|
-
table: e(
|
54
|
+
table: e(i),
|
50
55
|
field: e(t),
|
51
|
-
set: e(
|
56
|
+
set: e(c),
|
52
57
|
row: e(o),
|
53
58
|
config: e(l)
|
54
59
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"])
|
@@ -57,11 +62,11 @@ const j = { class: "text-popover" }, q = {
|
|
57
62
|
default: d(() => [
|
58
63
|
v(e(y), {
|
59
64
|
ref_key: "controlRef",
|
60
|
-
ref:
|
65
|
+
ref: m,
|
61
66
|
schema: e(a),
|
62
|
-
table: e(
|
67
|
+
table: e(i),
|
63
68
|
field: e(t),
|
64
|
-
set: e(
|
69
|
+
set: e(c),
|
65
70
|
row: e(o),
|
66
71
|
config: e(l)
|
67
72
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"])
|
@@ -70,48 +75,48 @@ const j = { class: "text-popover" }, q = {
|
|
70
75
|
}, 8, ["width"])) : (n(), h(e(y), {
|
71
76
|
key: 1,
|
72
77
|
ref_key: "controlRef",
|
73
|
-
ref:
|
78
|
+
ref: m,
|
74
79
|
schema: e(a),
|
75
|
-
table: e(
|
80
|
+
table: e(i),
|
76
81
|
field: e(t),
|
77
|
-
set: e(
|
82
|
+
set: e(c),
|
78
83
|
row: e(o),
|
79
84
|
config: e(l)
|
80
85
|
}, null, 8, ["schema", "table", "field", "set", "row", "config"]))
|
81
|
-
], 64)) : (n(), h(
|
86
|
+
], 64)) : (n(), h(F(e(T)), {
|
82
87
|
key: 1,
|
83
88
|
ref_key: "controlRef",
|
84
|
-
ref:
|
89
|
+
ref: m,
|
85
90
|
schema: e(a),
|
86
|
-
table: e(
|
91
|
+
table: e(i),
|
87
92
|
field: e(t),
|
88
|
-
set: e(
|
93
|
+
set: e(c),
|
89
94
|
row: e(o),
|
90
|
-
onSubmit: e(
|
91
|
-
onClear: e(
|
95
|
+
onSubmit: e(D),
|
96
|
+
onClear: e(S),
|
92
97
|
modelValue: e(o)[e(t).name],
|
93
|
-
"onUpdate:modelValue":
|
98
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => e(o)[e(t).name] = u)
|
94
99
|
}, {
|
95
100
|
default: d(() => [
|
96
|
-
x("div", null, C(e(
|
101
|
+
x("div", null, C(e(j)("common.unsupported_control", e(b))), 1)
|
97
102
|
]),
|
98
103
|
_: 1
|
99
104
|
}, 40, ["schema", "table", "field", "set", "row", "onSubmit", "onClear", "modelValue"])),
|
100
|
-
e(t).operation ? (n(), _("div",
|
101
|
-
v(
|
105
|
+
e(t).operation ? (n(), _("div", G, [
|
106
|
+
v(f, {
|
102
107
|
type: "primary",
|
103
108
|
underline: !1
|
104
109
|
}, {
|
105
110
|
default: d(() => [
|
106
|
-
|
111
|
+
H(C(e(t).operation.name), 1)
|
107
112
|
]),
|
108
113
|
_: 1
|
109
114
|
})
|
110
|
-
])) :
|
115
|
+
])) : U("", !0)
|
111
116
|
], 64);
|
112
117
|
};
|
113
118
|
}
|
114
119
|
});
|
115
120
|
export {
|
116
|
-
|
121
|
+
W as _
|
117
122
|
};
|