halo-pc 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
  2. package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-CyXE-g54.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-YujFxcgS.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-Dszcah6J.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-BQ0rieu8.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-C5WCVXDU.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
  41. package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-DJz-eVVd.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BmVFh23J.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
  52. package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-CdP4Uf3M.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
  74. package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
  75. package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
  76. package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
  78. package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
  79. package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
  82. package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
  84. package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
  85. package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
  87. package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-QGa_EKSl.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
  97. package/dist/{UpdateChild-DejVqKrE.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CrN8Fl5U.js → Year-q0tWWwkv.js} +1 -1
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +36 -35
  113. package/dist/style.css +1 -1
  114. package/package.json +2 -2
  115. package/dist/Autocomplete-Bud53PPx.js +0 -48
  116. package/dist/Autocomplete-CfE5ZKi2.js +0 -49
  117. package/dist/Callback-BaFg5U2u.js +0 -20
  118. package/dist/Cascader-C1kyNib7.js +0 -41
  119. package/dist/Cascader-D5PO9zK9.js +0 -81
  120. package/dist/Checkbox-CUtyT8l7.js +0 -70
  121. package/dist/Code-C160-nQS.js +0 -54
  122. package/dist/Code-pe9JMCAj.js +0 -36
  123. package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
  124. package/dist/Column-C3j98RGT.js +0 -69
  125. package/dist/Comment-DIrY0RiI.js +0 -98
  126. package/dist/Compare-5j7MYou6.js +0 -38
  127. package/dist/Copy-Go_1uhB5.js +0 -43
  128. package/dist/Custom-C00oYEFm.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
  130. package/dist/Date-uHiOL-PD.js +0 -37
  131. package/dist/DateRange-B-HjKQpJ.js +0 -57
  132. package/dist/DateTime-D4Ck5hBj.js +0 -38
  133. package/dist/Daterange-DiZUFL_F.js +0 -57
  134. package/dist/Delete-C46eSfMC.js +0 -56
  135. package/dist/Dictionary-Dga6kbof.js +0 -55
  136. package/dist/Email-PVk9gqfn.js +0 -48
  137. package/dist/Index-CfDvQD94.js +0 -4
  138. package/dist/Index-Cq20wsZC.js +0 -173
  139. package/dist/Index-DGiRkT-p.js +0 -4
  140. package/dist/Index-DyK_nYp9.js +0 -4
  141. package/dist/Index-z5MnS_Wq.js +0 -4
  142. package/dist/Int-BG6MD24t.js +0 -38
  143. package/dist/Int-Dc7h_7Ga.js +0 -41
  144. package/dist/List-EDwPH8aL.js +0 -73
  145. package/dist/Maintaince-BqvMHxH0.js +0 -14
  146. package/dist/Month-8mDUGsOp.js +0 -37
  147. package/dist/Month-ClGd6IhI.js +0 -38
  148. package/dist/Paging-D_ticCtb.js +0 -94
  149. package/dist/QueryApi-S0e3c6l0.js +0 -13
  150. package/dist/RichText-BJVvArGS.js +0 -41
  151. package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
  152. package/dist/TextLink-C-NU-oVe.js +0 -59
  153. package/dist/Time-BgWPjGd1.js +0 -37
  154. package/dist/Timeline-CBWcOVdY.js +0 -53
  155. package/dist/Tree--dJKRJvG.js +0 -117
  156. package/dist/TreeNode-CxTzNQo9.js +0 -37
  157. package/dist/Upload-9z5VIixQ.js +0 -146
  158. package/dist/Upload-tlSQp2Qu.js +0 -67
  159. package/dist/UploadApi-B2dxOS0T.js +0 -13
  160. package/dist/Year-DNDyqe5X.js +0 -41
  161. package/dist/main-D3_7YhaK.js +0 -15700
@@ -1,173 +0,0 @@
1
- import { defineComponent as z, ref as u, onMounted as H, computed as j, watch as J, resolveComponent as c, openBlock as d, createElementBlock as C, createVNode as g, unref as t, withCtx as p, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as R, isRef as L, withKeys as T, normalizeClass as P, withModifiers as Q, createTextVNode as $, Fragment as W, renderList as X, nextTick as K } from "vue";
2
- import { useRoute as Z } from "vue-router";
3
- import { J as G, q as w, X as Y, e as i, W as ee, S as q, K as le, r as F, D as te } from "./main-D3_7YhaK.js";
4
- const oe = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
5
- /* @__PURE__ */ n("i", { class: "fa fa-user" })
6
- ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
7
- /* @__PURE__ */ n("i", { class: "fa fa-key" })
8
- ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], _e = /* @__PURE__ */ z({
9
- __name: "Index",
10
- setup(fe) {
11
- let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), _ = u(!1), U = u(), V = u(), h = u(), x = Z(), M = {
12
- id: [{
13
- required: !0,
14
- trigger: "blur",
15
- validator: (l, e, r) => {
16
- 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")));
17
- }
18
- }]
19
- // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
20
- }, N = (l) => {
21
- 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);
22
- }, B = () => {
23
- f.value == "password" ? f.value = "" : f.value = "password", K(() => {
24
- h.value.focus();
25
- });
26
- }, E = async (l) => {
27
- _.value = !0, U.value.validate(async (e) => {
28
- if (!e)
29
- return _.value = !1, !1;
30
- (await q.sso.create(l)).login(a.value).then(({ data: m }) => {
31
- le.getBackUrl() ? F.toBackUrl() : F.to("/");
32
- }).finally(() => {
33
- K(() => {
34
- _.value = !1;
35
- });
36
- });
37
- });
38
- }, O = async (l) => {
39
- let e = await q.sso.create(l), r = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${l.toLowerCase()}&return_url=${r}`;
40
- return e.loginUrl(te.api.url + `/user/login?type=${l.toLowerCase()}&callback_url=` + encodeURIComponent(m));
41
- }, A = (l) => Object.keys(l).reduce((e, r) => (e[r] = l[r], e), {});
42
- H(async () => {
43
- G.setI18nTitle("common.login");
44
- for (let l = 0; l < w.ssos.length; l++) {
45
- let e = w.ssos[l];
46
- e.loginUrl = await O(e.type);
47
- }
48
- y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
49
- });
50
- let y = j(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
51
- return J(() => x, (l) => {
52
- debugger;
53
- const e = l.query;
54
- e && A(e);
55
- }), (l, e) => {
56
- const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), D = c("el-button"), I = c("router-link"), S = c("el-form");
57
- return d(), C("div", oe, [
58
- g(S, {
59
- ref_key: "loginFormRef",
60
- ref: U,
61
- autocomplete: "on",
62
- "label-position": "left",
63
- model: t(a),
64
- rules: t(M)
65
- }, {
66
- default: p(() => [
67
- n("div", re, [
68
- n("h3", se, k(t(Y)("title")), 1)
69
- ]),
70
- t(y) ? (d(), v(m, {
71
- key: 0,
72
- prop: "id"
73
- }, {
74
- default: p(() => [
75
- ne,
76
- g(r, {
77
- ref_key: "idRef",
78
- ref: V,
79
- placeholder: t(i)("common.username_or_email"),
80
- name: "id",
81
- type: "text",
82
- tabindex: "1",
83
- autocomplete: "on",
84
- modelValue: t(a).id,
85
- "onUpdate:modelValue": e[0] || (e[0] = (o) => t(a).id = o)
86
- }, null, 8, ["placeholder", "modelValue"])
87
- ]),
88
- _: 1
89
- })) : R("", !0),
90
- t(y) ? (d(), v(b, {
91
- key: 1,
92
- content: "Caps lock is On",
93
- placement: "right",
94
- manual: "",
95
- modelValue: t(s),
96
- "onUpdate:modelValue": e[5] || (e[5] = (o) => L(s) ? s.value = o : s = o)
97
- }, {
98
- default: p(() => [
99
- g(m, { prop: "secret" }, {
100
- default: p(() => [
101
- ae,
102
- (d(), v(r, {
103
- ref_key: "secretRef",
104
- ref: h,
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(N), ["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"])) : R("", !0),
134
- t(y) ? (d(), v(D, {
135
- key: 2,
136
- type: "primary",
137
- class: "btn-login",
138
- loading: t(_),
139
- onClick: e[6] || (e[6] = Q((o) => t(E)("Bearer"), ["prevent"]))
140
- }, {
141
- default: p(() => [
142
- $(k(t(i)("common.login")), 1)
143
- ]),
144
- _: 1
145
- }, 8, ["loading"])) : R("", !0),
146
- n("div", ie, [
147
- (d(!0), C(W, null, X(t(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), C("a", {
148
- href: o.loginUrl
149
- }, k(t(i)(o.text)), 9, ue))), 256)),
150
- g(I, {
151
- class: "btn-register",
152
- to: "/register"
153
- }, {
154
- default: p(() => [
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, de)
167
- ]);
168
- };
169
- }
170
- });
171
- export {
172
- _e as default
173
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./main-D3_7YhaK.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a0 as f } from "./main-D3_7YhaK.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./main-D3_7YhaK.js";
2
- export {
3
- f as default
4
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as y, isRef as K } from "vue";
2
- import { e as k, d as x } from "./main-D3_7YhaK.js";
3
- const N = /* @__PURE__ */ f({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["change", "submit", "update:modelValue"],
13
- setup(m, { emit: u }) {
14
- let o = u, r = m, { table: p, field: s, searchData: B, modelValue: i } = _(r), d = () => {
15
- o("submit");
16
- }, l = h({
17
- get() {
18
- return i.value;
19
- },
20
- set(t) {
21
- isNaN(t) && (t = null), o("update:modelValue", t), o("change", t);
22
- }
23
- });
24
- return (t, n) => {
25
- const c = b("el-input-number");
26
- return V(), g(c, {
27
- placeholder: e(k)("common.please_input") + e(x)(e(p).name, e(s).name),
28
- "controls-position": "right",
29
- onKeyup: y(e(d), ["enter", "native"]),
30
- modelValue: e(l),
31
- "onUpdate:modelValue": n[0] || (n[0] = (a) => K(l) ? l.value = a : l = a)
32
- }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- N as default
38
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
- import { W as K, i as k } from "./main-D3_7YhaK.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(i, { emit: r }) {
15
- let l = r, s = i, { table: d, field: n, set: w, modelValue: a } = f(s), p = () => {
16
- l("submit");
17
- }, t = _({
18
- get() {
19
- if (K.isNumber(a.value))
20
- return a.value;
21
- },
22
- set(o) {
23
- l("update:modelValue", o), l("change", o);
24
- }
25
- });
26
- return (o, u) => {
27
- const b = V("el-input-number");
28
- return g(), h(b, {
29
- "aria-label": e(k)(e(d).name, e(n).name),
30
- "controls-position": "right",
31
- disabled: e(n).control.readonly,
32
- onKeyup: v(e(p), ["enter", "native"]),
33
- modelValue: e(t),
34
- "onUpdate:modelValue": u[0] || (u[0] = (m) => y(t) ? t.value = m : t = m)
35
- }, null, 8, ["aria-label", "disabled", "onKeyup", "modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- C as default
41
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as B, toRefs as E, ref as u, watch as F, openBlock as J, createBlock as K, resolveDynamicComponent as T, unref as t, withCtx as U, createElementVNode as V, toDisplayString as Y } from "vue";
2
- import { K as n, o as $, J as j, s as d, a as A } from "./main-D3_7YhaK.js";
3
- const G = { class: "not-support" }, O = /* @__PURE__ */ B({
4
- __name: "List",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {},
9
- win: {}
10
- },
11
- emits: ["load", "navigate"],
12
- setup(b, { expose: S, emit: P }) {
13
- let h = P, k = b, { url: m, base: p, route: r } = E(k), f = u(), i = u(), s = u(), y = u(), g = u(), o = u(), c = u(), q = (e) => {
14
- let l = n.getPath(e), a = n.getPath(m.value);
15
- return l != a;
16
- }, C = (e) => {
17
- let l = n.getPath(m.value), a = n.getPath(e);
18
- return l != a;
19
- }, x = (e) => {
20
- var a;
21
- let l = $(e.module.type, e.module.name);
22
- j.setTitle(l, e.module.env), f.value = e.module, i.value = d.expandSchema(e.schema, e.set), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = d.expandSet(e.schema, e.set), c.value = d.getConditionForm(i.value, r.value.query.condition);
23
- }, v = (e = null, l = null) => {
24
- let a = e ?? r.value.query, N = n.getUrl(r.value.path, a);
25
- h("load", N, !1, l);
26
- }, R = (e) => {
27
- v(null, e);
28
- }, w = (e) => {
29
- h("navigate", e);
30
- }, D = async (e) => {
31
- let l = r.value.query;
32
- l.condition = A.encode(c.value), v(l, e);
33
- }, _ = () => {
34
- v();
35
- }, z = (e, l) => {
36
- if (!o.value || !o.value.keyboard)
37
- return !1;
38
- o.value.keyboard(e, l);
39
- }, L = (e) => {
40
- if (!o.value || !o.value.resize)
41
- return !1;
42
- o.value.resize(e);
43
- };
44
- return (() => {
45
- x(p.value.data);
46
- })(), F(() => p.value, (e) => {
47
- x(e.data);
48
- }), S({ shouldLoad: q, shouldSpin: C, refresh: _, keyboard: z, resize: L }), (e, l) => (J(), K(T(`list-${t(s).layouts[0].type.toLowerCase()}`), {
49
- ref_key: "listRef",
50
- ref: o,
51
- route: t(r),
52
- module: t(f),
53
- schema: t(i),
54
- table: t(s),
55
- layout: t(s).layouts[0],
56
- next: t(y),
57
- set: t(g),
58
- "search-data": t(c),
59
- onSucceed: t(R),
60
- onSearch: t(D),
61
- onNavigate: t(w),
62
- onRefresh: t(_)
63
- }, {
64
- default: U(() => [
65
- V("div", G, "未支持的列表布局方式:" + Y(t(s).layouts[0].type), 1)
66
- ]),
67
- _: 1
68
- }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
69
- }
70
- });
71
- export {
72
- O as default
73
- };
@@ -1,14 +0,0 @@
1
- import { defineComponent as t, openBlock as n, createElementBlock as o, createElementVNode as e, toDisplayString as s, unref as c } from "vue";
2
- import { q as i } from "./main-D3_7YhaK.js";
3
- const a = { class: "maintenance" }, r = /* @__PURE__ */ e("div", { class: "title" }, "系统维护中", -1), _ = { class: "description" }, u = /* @__PURE__ */ t({
4
- __name: "Maintaince",
5
- setup(d) {
6
- return (l, m) => (n(), o("div", a, [
7
- r,
8
- e("div", _, s(c(i)), 1)
9
- ]));
10
- }
11
- });
12
- export {
13
- u as default
14
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as h, resolveComponent as _, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
2
- import { n as Y } from "./main-D3_7YhaK.js";
3
- const x = /* @__PURE__ */ i({
4
- __name: "Month",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(d, { emit: r }) {
14
- let a = r, p = d, { table: u, field: o, searchData: g, modelValue: s } = f(p), l = h({
15
- get() {
16
- return s.value;
17
- },
18
- set(t) {
19
- a("update:modelValue", t), a("change", t);
20
- }
21
- });
22
- return (t, m) => {
23
- const c = _("el-date-picker");
24
- return V(), b(c, {
25
- type: "month",
26
- placeholder: e(Y)(e(u).name, e(o).name),
27
- "value-format": "YYYY-MM",
28
- disabled: e(o).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (n) => k(l) ? l.value = n : l = n)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- x as default
37
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as k } from "vue";
2
- import { n as Y } from "./main-D3_7YhaK.js";
3
- const x = /* @__PURE__ */ i({
4
- __name: "Month",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: r }) {
15
- let o = r, p = d, { table: u, field: a, set: g, modelValue: s } = f(p), l = _({
16
- get() {
17
- return s.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, m) => {
24
- const c = V("el-date-picker");
25
- return h(), b(c, {
26
- type: "month",
27
- placeholder: e(Y)(e(u).name, e(a).name),
28
- "value-format": "YYYY-MM",
29
- disabled: e(a).control.readonly,
30
- modelValue: e(l),
31
- "onUpdate:modelValue": m[0] || (m[0] = (n) => k(l) ? l.value = n : l = n)
32
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- x as default
38
- };
@@ -1,94 +0,0 @@
1
- import { defineComponent as V, toRefs as $, ref as r, onMounted as j, watch as A, unref as a, openBlock as E, createBlock as G, createCommentVNode as H } from "vue";
2
- import { K as s, o as I, J as Q, s as d, Y as W, a as U } from "./main-D3_7YhaK.js";
3
- import { _ as X } from "./Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js";
4
- const te = /* @__PURE__ */ V({
5
- __name: "Paging",
6
- props: {
7
- base: {},
8
- route: {},
9
- url: {},
10
- win: {}
11
- },
12
- emits: ["navigate", "load"],
13
- setup(b, { expose: k, emit: z }) {
14
- let m = z, P = b, { url: p, base: y, route: u } = $(P), f = r(), v = r(), c = r(), h = r(), x = r(), C = r(), g = r(), o = r(), N = (e) => !0, L = (e) => {
15
- let l = s.getPath(p.value), t = s.getPath(e);
16
- return l != t;
17
- }, R = (e = null) => {
18
- _(e);
19
- }, w = () => {
20
- }, S = (e) => {
21
- var t;
22
- let l = I(e.module.type, e.module.name);
23
- Q.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, C.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema, e.set), c.value = (t = v.value) == null ? void 0 : t[0], h.value = c.value.layouts[0], g.value = d.getConditionForm(v.value, u.value.query.condition);
24
- }, q = (e = null, l = null) => {
25
- let t = e ?? u.value.query, n = s.getUrl(u.value.path, t);
26
- m("load", n, !1, (T) => {
27
- l && l(T);
28
- });
29
- }, i = (e, l) => {
30
- m("navigate", e, l);
31
- }, B = async (e) => {
32
- let l = u.value.query;
33
- l.page = 1;
34
- let t = W.pure(g.value);
35
- l.condition = U.encode(t);
36
- let n = s.getUrl(u.value.path, l);
37
- n == p.value ? q(l, e) : i(n, e);
38
- }, D = (e, l) => {
39
- let t = u.value.query;
40
- t.order_by = U.encode(JSON.stringify(e));
41
- let n = s.getUrl(u.value.path, t);
42
- i(n, l);
43
- }, J = (e, l = null) => {
44
- let t = u.value.query;
45
- t.page = e;
46
- let n = s.getUrl(u.value.path, t);
47
- i(n, l);
48
- }, Y = (e, l = null) => {
49
- let t = u.value.query;
50
- t.size = e;
51
- let n = s.getUrl(u.value.path, t);
52
- i(n, l);
53
- }, F = (e) => {
54
- h.value = c.value.layouts.find((l) => l.type == e);
55
- }, K = () => {
56
- S(y.value.data);
57
- }, _ = (e = null) => q(null, e), M = (e) => {
58
- if (!o.value || !o.value.resize)
59
- return !1;
60
- o.value.resize(e);
61
- }, O = (e, l) => {
62
- if (!o.value || !o.value.keyboard)
63
- return !1;
64
- o.value.keyboard(e, l);
65
- };
66
- return j(async () => {
67
- K();
68
- }), A(() => y.value, (e) => {
69
- S(e.data);
70
- }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: O, resize: M }), (e, l) => a(h) ? (E(), G(X, {
71
- key: 0,
72
- ref_key: "pagingRef",
73
- ref: o,
74
- module: a(f),
75
- next: a(x),
76
- set: a(C),
77
- schema: a(v),
78
- table: a(c),
79
- layout: a(h),
80
- "search-data": a(g),
81
- onNavigate: a(i),
82
- onSort: a(D),
83
- onSearch: a(B),
84
- onPageChange: a(J),
85
- onSizeChange: a(Y),
86
- onLayoutChange: a(F),
87
- onSucceed: a(R),
88
- onClose: a(w)
89
- }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : H("", !0);
90
- }
91
- });
92
- export {
93
- te as default
94
- };
@@ -1,13 +0,0 @@
1
- import { T as t } from "./main-D3_7YhaK.js";
2
- class e {
3
- /**
4
- * 查询代码语言和文本语言映射关系
5
- */
6
- static async loadCodeLanguage() {
7
- return t.post("/dictionary/code_language").then((a) => a.data);
8
- }
9
- }
10
- const n = e;
11
- export {
12
- n as Q
13
- };
@@ -1,41 +0,0 @@
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 f, openBlock as R, createBlock as b, unref as r, normalizeStyle as k, isRef as B } from "vue";
2
- import { j as C } from "./main-D3_7YhaK.js";
3
- const F = /* @__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 v = n, { field: e, table: h, set: _, row: s } = S(v), 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 f(() => d.value, (l, o) => {
27
- t.value.scrollTop = l;
28
- }), f(() => e.value.control.readonly, (l, o) => {
29
- t.value.readonly = l;
30
- }), (l, o) => (R(), b(r(C), {
31
- style: k(r(i)),
32
- options: r(t),
33
- onScroll: r(y),
34
- modelValue: r(u),
35
- "onUpdate:modelValue": o[0] || (o[0] = (c) => B(u) ? u.value = c : u = c)
36
- }, null, 8, ["style", "options", "onScroll", "modelValue"]));
37
- }
38
- });
39
- export {
40
- F as default
41
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as x, toRefs as v, ref as d, computed as V, resolveComponent as y, openBlock as s, createElementBlock as u, Fragment as g, unref as l, createBlock as B, isRef as p, createCommentVNode as C, nextTick as R, createElementVNode as T } from "vue";
2
- import { Q as H } from "./main-D3_7YhaK.js";
3
- const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, null, -1), E = [
4
- w
5
- ], S = /* @__PURE__ */ x({
6
- __name: "Text",
7
- props: {
8
- schema: {},
9
- table: {},
10
- field: {},
11
- set: {},
12
- row: {},
13
- modelValue: {}
14
- },
15
- setup(c) {
16
- let _ = c, { table: L, field: a, set: M, row: N, modelValue: k } = v(_), t = d(!1), i = d(), m = () => {
17
- t.value = !0, R(() => {
18
- i.value.focus();
19
- });
20
- }, o = V(() => {
21
- var r;
22
- let f = H.getHtml((r = k.value) == null ? void 0 : r.toString());
23
- return (a.value.control.prefix || "") + (f || "") + (a.value.control.suffix || "");
24
- });
25
- return (f, e) => {
26
- const r = y("el-input");
27
- return s(), u(g, null, [
28
- l(t) ? (s(), B(r, {
29
- key: 1,
30
- ref_key: "editRef",
31
- ref: i,
32
- type: "text",
33
- onBlur: e[0] || (e[0] = (n) => p(t) ? t.value = !1 : t = !1),
34
- modelValue: l(o),
35
- "onUpdate:modelValue": e[1] || (e[1] = (n) => p(o) ? o.value = n : o = n)
36
- }, null, 8, ["modelValue"])) : (s(), u("span", {
37
- key: 0,
38
- class: "text-text",
39
- innerHTML: l(o)
40
- }, null, 8, b)),
41
- l(t) ? C("", !0) : (s(), u("span", {
42
- key: 2,
43
- class: "edit-inline",
44
- onClick: e[2] || (e[2] = //@ts-ignore
45
- (...n) => l(m) && l(m)(...n))
46
- }, E))
47
- ], 64);
48
- };
49
- }
50
- });
51
- export {
52
- S as _
53
- };