halo-pc 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/dist/Article-CjlnxF__.js +196 -0
  2. package/dist/ArticleFooter-BAf1rKUX.js +78 -0
  3. package/dist/Autocomplete-BnQpnnyK.js +27 -0
  4. package/dist/Autocomplete-C2FkoM3g.js +52 -0
  5. package/dist/Autocomplete-Da3h7NqJ.js +53 -0
  6. package/dist/CSharp-Dxc7debp.js +27 -0
  7. package/dist/Calender-CZajLEjs.js +10 -0
  8. package/dist/Callback-txUuqwa4.js +24 -0
  9. package/dist/Cascader-Bm6ZjZBu.js +84 -0
  10. package/dist/Cascader-CWljbVzB.js +45 -0
  11. package/dist/Checkbox-CYpA0Abh.js +69 -0
  12. package/dist/Checkbox-DvjA_jtM.js +27 -0
  13. package/dist/Code--QwKtfhx.js +4 -0
  14. package/dist/Code-BO3eZKLy.js +58 -0
  15. package/dist/Code-Dh_cfHCX.js +40 -0
  16. package/dist/Code-Dn68YB2V.js +28 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-DcAjaZOQ.js +63 -0
  18. package/dist/Color-CfXtJFUo.js +22 -0
  19. package/dist/Color-Da69pnQg.js +34 -0
  20. package/dist/Column-DGnsLHim.js +69 -0
  21. package/dist/Comment--Tr_kWBl.js +102 -0
  22. package/dist/Compare-C3rlbp4P.js +60 -0
  23. package/dist/Compare-DaSyOFIe.js +30 -0
  24. package/dist/Copy-C5yEC9dX.js +43 -0
  25. package/dist/Custom-K9vfVRxn.js +53 -0
  26. package/dist/DataExport-GCZvxEp5.js +4 -0
  27. package/dist/DataExport.vue_vue_type_script_setup_true_lang-CqT0RHF6.js +112 -0
  28. package/dist/DataImport-BofV1eCR.js +4 -0
  29. package/dist/DataImport.vue_vue_type_script_setup_true_lang-WCH5ToC7.js +174 -0
  30. package/dist/Date-BeHsQ2Ow.js +36 -0
  31. package/dist/Date-DgpsRJon.js +27 -0
  32. package/dist/DateRange-DrYK_l0Y.js +19 -0
  33. package/dist/DateRange-UHosLXP9.js +61 -0
  34. package/dist/DateTime-BfNjKDfI.js +37 -0
  35. package/dist/DateTime-CHn5T-FB.js +27 -0
  36. package/dist/DateTimeRange-6TctUiMd.js +65 -0
  37. package/dist/Daterange-DISQqOFM.js +61 -0
  38. package/dist/Decimal-BB2w4V2o.js +27 -0
  39. package/dist/Decimal-C38-N54B.js +36 -0
  40. package/dist/Delete-C7gIYWP8.js +59 -0
  41. package/dist/Detail-D-6vJTGF.js +70 -0
  42. package/dist/Dictionary-DfEacdox.js +59 -0
  43. package/dist/Email-BKW9GRcH.js +19 -0
  44. package/dist/Email-ME_MU94C.js +47 -0
  45. package/dist/File-CMCYSg30.js +158 -0
  46. package/dist/Image-BL458jPH.js +9 -0
  47. package/dist/Index-8lbvVECt.js +4 -0
  48. package/dist/Index-B1ZfzgLV.js +4 -0
  49. package/dist/Index-C_HCipwv.js +4 -0
  50. package/dist/Index-Ch59SxF3.js +74 -0
  51. package/dist/Index-CopnEHli.js +4 -0
  52. package/dist/Index-Cp7EDm0u.js +173 -0
  53. package/dist/Index-DZkeSKKp.js +4 -0
  54. package/dist/Index-tbCW5R6_.js +4 -0
  55. package/dist/Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js +36 -0
  56. package/dist/Index.vue_vue_type_script_setup_true_lang-DOibFo1_.js +70 -0
  57. package/dist/Index.vue_vue_type_script_setup_true_lang-Dwm5MQ9l.js +82 -0
  58. package/dist/Index.vue_vue_type_style_index_0_lang-D9Jt6Of_.js +113 -0
  59. package/dist/Install-CJbpeRw0.js +130 -0
  60. package/dist/Int-B-t8edhd.js +19 -0
  61. package/dist/Int-C-0RMDmy.js +37 -0
  62. package/dist/Int-CkzuFSk2.js +45 -0
  63. package/dist/List-V1uPlNfP.js +77 -0
  64. package/dist/Maintaince-BM4tthS_.js +19 -0
  65. package/dist/Markdown-BzMP3m7o.js +37 -0
  66. package/dist/Markdown-Dq7L9EMQ.js +27 -0
  67. package/dist/Month-B_SzKf02.js +36 -0
  68. package/dist/Month-CUX-EnU_.js +27 -0
  69. package/dist/Month-DfemgHac.js +37 -0
  70. package/dist/Normal-B2w0Isvm.js +255 -0
  71. package/dist/Paging-Bnpq9uSh.js +95 -0
  72. package/dist/PagingHeader-CBXHiUXR.js +140 -0
  73. package/dist/PagingRow-tny-wHwu.js +66 -0
  74. package/dist/Password-DuyYEgzR.js +55 -0
  75. package/dist/Password-yHtlY-Qa.js +24 -0
  76. package/dist/Progress-C3D821AQ.js +34 -0
  77. package/dist/Progress-CKVzMO-W.js +25 -0
  78. package/dist/QueryApi-BLc_au6L.js +18 -0
  79. package/dist/Racebar-DqWtIQm-.js +166 -0
  80. package/dist/Radio-DkcBKBvX.js +47 -0
  81. package/dist/Radio-xLd4l78I.js +27 -0
  82. package/dist/Rate-B7jKTFKT.js +34 -0
  83. package/dist/Rate-BmC4gw_0.js +34 -0
  84. package/dist/Register-Bio0HxyZ.js +203 -0
  85. package/dist/RichText-BYNi_iMx.js +105 -0
  86. package/dist/RichText-Bk0Msyhl.js +22 -0
  87. package/dist/SearchFooter-BAPlMiuj.js +4 -0
  88. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-Bp7M7_IY.js +55 -0
  89. package/dist/SearchForm-BaPwWOch.js +4 -0
  90. package/dist/SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js +150 -0
  91. package/dist/Select-DMDcHdlD.js +116 -0
  92. package/dist/Select-Dlx4Tg2X.js +27 -0
  93. package/dist/Select-Doyr8ioF.js +84 -0
  94. package/dist/Single-B4EEi5Bm.js +323 -0
  95. package/dist/Statistic-AY1NP5tM.js +161 -0
  96. package/dist/Statistic-CTxHNeof.js +76 -0
  97. package/dist/Stock-CcBqUgOB.js +28 -0
  98. package/dist/Stock-Sh2UHojP.js +4 -0
  99. package/dist/Stock.vue_vue_type_style_index_0_lang-CcHVxdzc.js +302 -0
  100. package/dist/Switch-BOsRzAW-.js +27 -0
  101. package/dist/Switch-DhFaku5L.js +50 -0
  102. package/dist/Table-C9IrdZEj.js +241 -0
  103. package/dist/Table-CrMo5L6q.js +318 -0
  104. package/dist/Text-BRRmmXYV.js +52 -0
  105. package/dist/Text-DKpPIUcY.js +51 -0
  106. package/dist/Text-vz76Xb4X.js +4 -0
  107. package/dist/Text.vue_vue_type_style_index_0_lang-BMxOYNEI.js +56 -0
  108. package/dist/TextLink-DKm6XbeF.js +66 -0
  109. package/dist/Textarea-D9TgF9ig.js +37 -0
  110. package/dist/Textarea-WPLyT7XC.js +28 -0
  111. package/dist/Time-BcQzBDX-.js +36 -0
  112. package/dist/Timeline-Dolubd-b.js +57 -0
  113. package/dist/Tree-Bv5eVC8s.js +122 -0
  114. package/dist/Tree-KwP6ais4.js +295 -0
  115. package/dist/TreeNode-rHeuE2ot.js +38 -0
  116. package/dist/Tree_Old-h__WmqFA.js +11 -0
  117. package/dist/Update-C5bPCalk.js +65 -0
  118. package/dist/UpdateChild-B2A3hP6m.js +85 -0
  119. package/dist/Upload-BSbIQu56.js +147 -0
  120. package/dist/Upload-heb0FQTh.js +72 -0
  121. package/dist/UploadApi-vYU0Jda6.js +18 -0
  122. package/dist/Year-1ug2_a1g.js +40 -0
  123. package/dist/Year-Dlp5PKhI.js +27 -0
  124. package/dist/main-Bs5Q5ZLl.js +6535 -0
  125. package/dist/main.js +110 -0
  126. package/dist/style.css +1 -0
  127. package/dist/vendor-@intlify-BISCQg1h.js +2189 -0
  128. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  129. package/dist/vendor-@vue-aVYGocXp.js +93 -0
  130. package/dist/vendor-clipboard-BqjesuiY.js +521 -0
  131. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  132. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  133. package/dist/vendor-element-plus-Z7vJFrsh.js +456 -0
  134. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  135. package/dist/vendor-intro.js-CZkClzQO.js +1695 -0
  136. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  137. package/dist/vendor-pinia-C-_fm-ER.js +1167 -0
  138. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  139. package/dist/vendor-state-local-CEworIRt.js +131 -0
  140. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  141. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  142. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  143. package/dist/vendor-vue-demi-DdR-Jw7p.js +31 -0
  144. package/dist/vendor-vue-i18n-C3KH15Qn.js +1670 -0
  145. package/package.json +1 -1
@@ -0,0 +1,196 @@
1
+ import { defineComponent as ae, toRefs as re, ref as c, onMounted as ne, computed as se, resolveComponent as y, openBlock as u, createElementBlock as f, unref as e, createBlock as k, createCommentVNode as _, createVNode as b, normalizeStyle as ie, withCtx as C, createElementVNode as i, Fragment as ue, renderList as ce, withModifiers as V, toDisplayString as d, resolveDynamicComponent as de, createTextVNode as D } from "vue";
2
+ import { l as pe, S as M, g as me, o as ge, h as ve, M as fe, D as U } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ import { _ as he } from "./SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js";
8
+ const _e = { class: "article-layout" }, ye = ["href", "onClick"], ke = ["src"], be = { class: "article-title" }, Ce = {
9
+ key: 0,
10
+ class: "article-content"
11
+ }, we = { class: "article-time" }, Re = {
12
+ key: 1,
13
+ class: "article-view-count"
14
+ }, xe = ["href"], Se = /* @__PURE__ */ i("i", { class: "fa fa-plus" }, null, -1), $e = { class: "el-drawer__title" }, He = ["href"], Fe = /* @__PURE__ */ ae({
15
+ __name: "Article",
16
+ props: {
17
+ searchData: {},
18
+ module: {},
19
+ schema: {},
20
+ table: {},
21
+ layout: {},
22
+ next: {},
23
+ set: {}
24
+ },
25
+ emits: ["page-change", "navigate", "search", "succeed", "close"],
26
+ setup(E, { expose: F, emit: N }) {
27
+ let p = N, K = E, { module: P, schema: j, table: r, layout: n, next: m, set: w, searchData: A } = re(K), R = c(), x = c(), S = c(), $ = c(), h = c(), L = pe();
28
+ c({ layout: "prev, pager, next", count: 5 });
29
+ let o = c({ page: null, url: null, row: null, visible: !1, appendToBody: !1 }), H = (t) => {
30
+ v("insert", null, t);
31
+ }, q = (t, l) => {
32
+ v("detail", t, l);
33
+ }, G = (t, l) => {
34
+ v("update", t, l);
35
+ }, I = (t, l) => {
36
+ v("copy", t, l);
37
+ }, J = (t, l) => {
38
+ v("delete", t, l);
39
+ }, O = (t) => {
40
+ let l = t.map((s) => s[r.value.key.name]);
41
+ ve.post(m.value.delete.route, l).then((s) => {
42
+ fe.success(s.message), z();
43
+ });
44
+ }, v = (t, l, s) => {
45
+ let g = B(t, l);
46
+ s.ctrlKey ? (o.value.row = null, p("navigate", g)) : (o.value.appendToBody = s.altKey, o.value.page = t, o.value.url = g, o.value.row = l, o.value.visible = !0);
47
+ }, B = (t, l = null) => {
48
+ let s = `${m.value[t].route}`;
49
+ if (l != null) {
50
+ let g = l[r.value.key.name];
51
+ s += `?id=${g}`;
52
+ }
53
+ return s;
54
+ }, Q = () => {
55
+ o.value.visible = !1, p("close");
56
+ }, z = (t = null) => {
57
+ o.value.visible = !1, p("succeed", t);
58
+ }, W = (t) => {
59
+ p("page-change", t);
60
+ }, X = (t) => {
61
+ p("navigate", t);
62
+ }, Y = () => {
63
+ p("search");
64
+ }, Z = () => {
65
+ T();
66
+ }, ee = (t, l) => {
67
+ if (!h.value || !h.value.keyboard)
68
+ return !1;
69
+ h.value.keyboard(t, l);
70
+ }, te = (t) => {
71
+ T();
72
+ }, T = () => {
73
+ let t = U.getHeight(R.value), l = U.getHeight([x.value.$el, S.value]);
74
+ $.value = t - l;
75
+ };
76
+ ne(() => {
77
+ });
78
+ let le = se(() => {
79
+ let t = `/${r.value.name}/article-footer`;
80
+ return L.getComponent(t, "partial", "article-footer");
81
+ });
82
+ return F({ keyboard: ee, resize: te }), (t, l) => {
83
+ const s = y("el-scrollbar"), g = y("el-pagination"), oe = y("el-drawer");
84
+ return u(), f("div", {
85
+ ref_key: "pagingRef",
86
+ ref: R,
87
+ class: "paging-article"
88
+ }, [
89
+ e(r).search.length > 0 ? (u(), k(he, {
90
+ key: 0,
91
+ ref_key: "searchRef",
92
+ ref: x,
93
+ schema: e(j),
94
+ table: e(r),
95
+ layout: e(n),
96
+ "search-data": e(A),
97
+ onSubmit: e(Y),
98
+ onMounted: e(Z)
99
+ }, null, 8, ["schema", "table", "layout", "search-data", "onSubmit", "onMounted"])) : _("", !0),
100
+ b(s, {
101
+ class: "article-scroller",
102
+ style: ie({ height: e($) + "px" })
103
+ }, {
104
+ default: C(() => [
105
+ i("div", _e, [
106
+ (u(!0), f(ue, null, ce(e(w)[e(r).name], (a) => (u(), f("a", {
107
+ class: "article",
108
+ href: `${e(m).detail.route}?id=${a[e(r).key.name]}`,
109
+ onClick: V((Be) => e(X)(`${e(m).detail.route}?id=${a[e(r).key.name]}`), ["prevent"]),
110
+ key: a[e(r).key.name]
111
+ }, [
112
+ i("img", {
113
+ class: "article-image",
114
+ src: a[e(n).image]
115
+ }, null, 8, ke),
116
+ i("div", be, d(a[e(n).title]), 1),
117
+ e(M).getTextFromHtml(a[e(n).content]) ? (u(), f("div", Ce, d(e(M).getTextFromHtml(a[e(n).content])), 1)) : _("", !0),
118
+ i("div", we, d(a[e(n).time]), 1),
119
+ a[e(n).viewCount] ? (u(), f("div", Re, d(a[e(n).viewCount]), 1)) : _("", !0),
120
+ (u(), k(de(e(le)), {
121
+ table: e(r),
122
+ next: e(m),
123
+ set: e(w),
124
+ row: a,
125
+ onPreview: e(q),
126
+ onEdit: e(G),
127
+ onCopy: e(I),
128
+ onBeforeRemove: e(J),
129
+ onRemove: e(O)
130
+ }, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove"]))
131
+ ], 8, ye))), 128)),
132
+ i("a", {
133
+ href: e(B)("insert"),
134
+ class: "article-add",
135
+ onClick: l[0] || (l[0] = V(
136
+ //@ts-ignore
137
+ (...a) => e(H) && e(H)(...a),
138
+ ["prevent"]
139
+ ))
140
+ }, [
141
+ Se,
142
+ D(" 添加新" + d(e(r).title), 1)
143
+ ], 8, xe)
144
+ ])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["style"]),
148
+ i("div", {
149
+ ref_key: "footerRef",
150
+ ref: S,
151
+ class: "article-bottom"
152
+ }, [
153
+ b(g, {
154
+ background: "",
155
+ layout: "total, prev, pager, next, jumper",
156
+ "current-page": e(n).page,
157
+ "page-size": e(n).pageSize,
158
+ total: e(n).count,
159
+ onCurrentChange: e(W)
160
+ }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
161
+ ], 512),
162
+ e(o).page ? (u(), k(oe, {
163
+ key: 1,
164
+ "destroy-on-close": "",
165
+ "append-to-body": e(o).appendToBody,
166
+ size: `${e(P).width ?? "60%"}`,
167
+ modelValue: e(o).visible,
168
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => e(o).visible = a)
169
+ }, {
170
+ header: C(() => [
171
+ i("div", $e, [
172
+ D(d(e(m)[e(o).page].title) + " ", 1),
173
+ i("a", {
174
+ class: "drawer-copy",
175
+ href: e(me).getToUrl(e(o).url)
176
+ }, d(t.t("common.link")), 9, He)
177
+ ])
178
+ ]),
179
+ default: C(() => [
180
+ b(e(ge), {
181
+ ref_key: "pageRef",
182
+ ref: h,
183
+ url: e(o).url,
184
+ onSucceed: e(z),
185
+ onClose: e(Q)
186
+ }, null, 8, ["url", "onSucceed", "onClose"])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["append-to-body", "size", "modelValue"])) : _("", !0)
190
+ ], 512);
191
+ };
192
+ }
193
+ });
194
+ export {
195
+ Fe as default
196
+ };
@@ -0,0 +1,78 @@
1
+ import { defineComponent as w, toRefs as x, resolveComponent as B, openBlock as r, createElementBlock as p, unref as e, withModifiers as m, createCommentVNode as s, createBlock as E, withCtx as N, createElementVNode as R } from "vue";
2
+ const V = { class: "article-footer" }, M = /* @__PURE__ */ w({
3
+ __name: "ArticleFooter",
4
+ props: {
5
+ table: {},
6
+ next: {},
7
+ set: {},
8
+ row: {}
9
+ },
10
+ emits: ["preview", "edit", "copy", "before-remove", "remove"],
11
+ setup(d, { emit: b }) {
12
+ let i = b, k = d, { table: _, next: l, set: A, row: c } = x(k), a = (t) => {
13
+ i("preview", c.value, t);
14
+ }, f = (t) => {
15
+ i("edit", c.value, t);
16
+ }, u = (t) => {
17
+ i("copy", c.value, t);
18
+ }, v = (t) => {
19
+ }, C = () => {
20
+ i("remove", [c.value]);
21
+ };
22
+ return (t, o) => {
23
+ const y = B("el-popconfirm");
24
+ return r(), p("div", V, [
25
+ e(l).detail ? (r(), p("i", {
26
+ key: 0,
27
+ class: "fa fa-search-plus btn-icon",
28
+ onClick: o[0] || (o[0] = m(
29
+ //@ts-ignore
30
+ (...n) => e(a) && e(a)(...n),
31
+ ["prevent", "stop"]
32
+ ))
33
+ })) : s("", !0),
34
+ e(l).update ? (r(), p("i", {
35
+ key: 1,
36
+ class: "fa fa-pencil btn-icon",
37
+ onClick: o[1] || (o[1] = m(
38
+ //@ts-ignore
39
+ (...n) => e(f) && e(f)(...n),
40
+ ["prevent", "stop"]
41
+ ))
42
+ })) : s("", !0),
43
+ e(l).copy ? (r(), p("i", {
44
+ key: 2,
45
+ class: "fa fa-copy btn-icon",
46
+ onClick: o[2] || (o[2] = m(
47
+ //@ts-ignore
48
+ (...n) => e(u) && e(u)(...n),
49
+ ["prevent", "stop"]
50
+ ))
51
+ })) : s("", !0),
52
+ e(l).delete ? (r(), E(y, {
53
+ key: 3,
54
+ width: 180,
55
+ title: t.t("common.confirm_delete"),
56
+ "confirm-button-text": t.t("common.confirm"),
57
+ "cancel-button-text": t.t("common.cancel"),
58
+ onConfirm: e(C)
59
+ }, {
60
+ reference: N(() => [
61
+ R("i", {
62
+ class: "fa fa-trash-alt btn-icon",
63
+ onClick: o[3] || (o[3] = m(
64
+ //@ts-ignore
65
+ (...n) => e(v) && e(v)(...n),
66
+ ["prevent", "stop"]
67
+ ))
68
+ })
69
+ ]),
70
+ _: 1
71
+ }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : s("", !0)
72
+ ]);
73
+ };
74
+ }
75
+ });
76
+ export {
77
+ M as default
78
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as f, defineAsyncComponent as i, toRefs as c, openBlock as V, createBlock as b, unref as e, isRef as w } from "vue";
2
+ const x = /* @__PURE__ */ f({
3
+ __name: "Autocomplete",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ setup(a) {
13
+ let m = i(() => import("./Text-vz76Xb4X.js")), s = a, { table: r, field: n, set: d, row: p, modelValue: l } = c(s);
14
+ return (u, o) => (V(), b(e(m), {
15
+ schema: u.schema,
16
+ table: e(r),
17
+ field: e(n),
18
+ row: e(p),
19
+ set: e(d),
20
+ modelValue: e(l),
21
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => w(l) ? l.value = t : l = t)
22
+ }, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
23
+ }
24
+ });
25
+ export {
26
+ x as default
27
+ };
@@ -0,0 +1,52 @@
1
+ import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as C, openBlock as S, createBlock as b, unref as n, isRef as k } from "vue";
2
+ import { S as B, h as D } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const w = /* @__PURE__ */ v({
8
+ __name: "Autocomplete",
9
+ props: {
10
+ schema: {},
11
+ table: {},
12
+ field: {},
13
+ searchData: {},
14
+ modelValue: {}
15
+ },
16
+ emits: ["submit", "change", "update:modelValue"],
17
+ setup(p, { emit: i }) {
18
+ let m = i, d = p, { table: c, field: s, searchData: R, modelValue: f } = _(d), o = V([]), h = null, g = (e, t) => {
19
+ if (o.value.length) {
20
+ let l = o.value.filter((u) => B.containsIgnoreCase(e, u.value));
21
+ t(l);
22
+ return;
23
+ }
24
+ let r = { text: h, conditions: [] };
25
+ D.post(s.value.control.data.route, r).then(({ data: l }) => {
26
+ o.value = l.map((u) => ({ value: u.text })), t(o.value);
27
+ }).catch(() => {
28
+ t([]);
29
+ });
30
+ }, a = x({
31
+ get() {
32
+ return f.value;
33
+ },
34
+ set(e) {
35
+ m("update:modelValue", e), m("change", e);
36
+ }
37
+ });
38
+ return (e, t) => {
39
+ const r = C("el-autocomplete");
40
+ return S(), b(r, {
41
+ clearable: "",
42
+ placeholder: e.t_field_placeholder(n(c).name, n(s).name),
43
+ "fetch-suggestions": n(g),
44
+ modelValue: n(a),
45
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => k(a) ? a.value = l : a = l)
46
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
47
+ };
48
+ }
49
+ });
50
+ export {
51
+ w as default
52
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as C, openBlock as S, createBlock as b, unref as n, isRef as k } from "vue";
2
+ import { S as B, h as R } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const y = /* @__PURE__ */ v({
8
+ __name: "Autocomplete",
9
+ props: {
10
+ schema: {},
11
+ table: {},
12
+ field: {},
13
+ set: {},
14
+ row: {},
15
+ modelValue: {}
16
+ },
17
+ emits: ["submit", "change", "update:modelValue"],
18
+ setup(p, { emit: i }) {
19
+ let m = i, d = p, { table: c, field: s, set: w, modelValue: f } = _(d), o = V([]), g = null, h = (e, t) => {
20
+ if (o.value.length) {
21
+ let l = o.value.filter((r) => B.containsIgnoreCase(e, r.value));
22
+ t(l);
23
+ return;
24
+ }
25
+ let u = { text: g, conditions: [] };
26
+ R.post(s.value.control.data.route, u).then(({ data: l }) => {
27
+ o.value = l.map((r) => ({ value: r.text })), t(o.value);
28
+ }).catch(() => {
29
+ t([]);
30
+ });
31
+ }, a = x({
32
+ get() {
33
+ return f.value;
34
+ },
35
+ set(e) {
36
+ m("update:modelValue", e), m("change", e);
37
+ }
38
+ });
39
+ return (e, t) => {
40
+ const u = C("el-autocomplete");
41
+ return S(), b(u, {
42
+ clearable: "",
43
+ placeholder: e.t_field_placeholder(n(c).name, n(s).name),
44
+ "fetch-suggestions": n(h),
45
+ modelValue: n(a),
46
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => k(a) ? a.value = l : a = l)
47
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ y as default
53
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as u, defineAsyncComponent as i, toRefs as c, openBlock as V, createBlock as b, unref as e, isRef as h } from "vue";
2
+ const _ = /* @__PURE__ */ u({
3
+ __name: "CSharp",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ setup(a) {
13
+ let r = i(() => import("./Code-Dh_cfHCX.js")), s = a, { schema: m, table: n, field: d, set: p, row: f, modelValue: l } = c(s);
14
+ return (w, o) => (V(), b(e(r), {
15
+ schema: e(m),
16
+ table: e(n),
17
+ field: e(d),
18
+ row: e(f),
19
+ set: e(p),
20
+ modelValue: e(l),
21
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => h(l) ? l.value = t : l = t)
22
+ }, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
23
+ }
24
+ });
25
+ export {
26
+ _ as default
27
+ };
@@ -0,0 +1,10 @@
1
+ import { openBlock as e, createElementBlock as r } from "vue";
2
+ import { b as c } from "./main-Bs5Q5ZLl.js";
3
+ const n = {};
4
+ function o(t, _) {
5
+ return e(), r("div", null, "日历");
6
+ }
7
+ const l = /* @__PURE__ */ c(n, [["render", o]]);
8
+ export {
9
+ l as default
10
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as o } from "vue";
2
+ import { useRouter as i, useRoute as n } from "vue-router";
3
+ import { M as p, q as s } from "./main-Bs5Q5ZLl.js";
4
+ import "xlsx-js-style";
5
+ import "./vendor-crypto-js-ftX_aBC-.js";
6
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
7
+ import "./vendor-moment-h96o7c8I.js";
8
+ const d = /* @__PURE__ */ o({
9
+ __name: "Callback",
10
+ setup(u) {
11
+ let e = i(), t = n().query;
12
+ return (() => {
13
+ if (!t.type) {
14
+ p.error("缺失type参数");
15
+ return;
16
+ }
17
+ let r = s.getSso(t.type.toString());
18
+ t.identity = JSON.parse(t.identity.toString()), r.login(t), e.push(t.return_url.toString());
19
+ })(), (r, a) => " 登录完毕,处理回调中... ";
20
+ }
21
+ });
22
+ export {
23
+ d as default
24
+ };
@@ -0,0 +1,84 @@
1
+ import { defineComponent as B, toRefs as E, ref as w, computed as N, resolveComponent as R, openBlock as i, createBlock as S, unref as n, isRef as T, withCtx as D, createElementVNode as I, createTextVNode as P, toDisplayString as c, createElementBlock as m, createCommentVNode as f } from "vue";
2
+ import { T as h, h as j } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const q = {
8
+ key: 0,
9
+ class: "cascader-suffix"
10
+ }, H = {
11
+ key: 0,
12
+ class: "cascader-length"
13
+ }, O = /* @__PURE__ */ B({
14
+ __name: "Cascader",
15
+ props: {
16
+ schema: {},
17
+ table: {},
18
+ field: {},
19
+ set: {},
20
+ row: {},
21
+ modelValue: {}
22
+ },
23
+ emits: ["submit", "change", "update:modelValue"],
24
+ setup(v, { emit: g }) {
25
+ let p = g, V = v, { table: U, field: l, set: z, row: A, modelValue: b } = E(V), r = w(), d = null, _ = () => {
26
+ r.value || (r.value = l.value.control.data.data);
27
+ let e = b.value, t = [];
28
+ return l.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((o) => {
29
+ let a = h.getParentsById(o, "value", r.value, "children", !0);
30
+ a.length > 0 && t.push(a.map((k) => k.value));
31
+ }) : h.getParentsById(e, "value", r.value, "children", !0).forEach((o) => {
32
+ t.push(o.value);
33
+ }), t;
34
+ }, x = (e) => {
35
+ let t;
36
+ l.value.control.multiple ? t = e.map((s) => s[s.length - 1]).join(",") : t = e[e.length - 1], p("update:modelValue", t), p("change", t);
37
+ }, C = (e) => {
38
+ e && (d = null, y());
39
+ }, y = () => {
40
+ let e = { text: d, conditions: [] };
41
+ l.value.control.data.conditions.forEach((t) => {
42
+ e.conditions.push({ name: t.name, value: null });
43
+ }), j.post(l.value.control.data.route, e).then(({ data: t }) => {
44
+ r.value = t;
45
+ });
46
+ }, u = N({
47
+ get() {
48
+ return _();
49
+ },
50
+ set(e) {
51
+ x(e);
52
+ }
53
+ });
54
+ return (e, t) => {
55
+ const s = R("el-cascader");
56
+ return i(), S(s, {
57
+ ref: "cascaderRef",
58
+ filterable: "",
59
+ "collapse-tags": "",
60
+ "collapse-tags-tooltip": "",
61
+ "max-collapse-tags": 6,
62
+ options: n(r),
63
+ disabled: n(l).readonly,
64
+ props: { label: "text", checkStrictly: !0, multiple: n(l).control.multiple },
65
+ clearable: !n(l).control.required,
66
+ onVisibleChange: n(C),
67
+ modelValue: n(u),
68
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => T(u) ? u.value = o : u = o)
69
+ }, {
70
+ default: D(({ node: o, data: a }) => [
71
+ I("span", null, [
72
+ P(c(a.text), 1),
73
+ a.suffix ? (i(), m("span", q, "(" + c(a.suffix) + ")", 1)) : f("", !0)
74
+ ]),
75
+ a.children ? (i(), m("span", H, c(a.children.length), 1)) : f("", !0)
76
+ ]),
77
+ _: 1
78
+ }, 8, ["options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
79
+ };
80
+ }
81
+ });
82
+ export {
83
+ O as default
84
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent as y, toRefs as k, computed as p, openBlock as e, createElementBlock as t, Fragment as m, renderList as d, unref as f, normalizeStyle as x, toDisplayString as h, createCommentVNode as b } from "vue";
2
+ import { T as B } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const C = { class: "text-cascader" }, S = {
8
+ key: 0,
9
+ class: "cascader-seperator"
10
+ }, N = /* @__PURE__ */ y({
11
+ __name: "Cascader",
12
+ props: {
13
+ schema: {},
14
+ table: {},
15
+ field: {},
16
+ set: {},
17
+ row: {},
18
+ modelValue: {}
19
+ },
20
+ emits: ["submit", "change"],
21
+ setup(_, { emit: V }) {
22
+ let v = _, { table: w, field: s, set: E, row: T, modelValue: a } = k(v), u = p(() => s.value.control.multiple ? a.value ? a.value.toString().split(",") : [] : a.value), c = p(() => {
23
+ if (u.value.length > 0) {
24
+ let i = s.value.control.data.data, o = [];
25
+ return u.value.forEach((r) => {
26
+ let l = B.getParentsById(r, "value", i, "children", !0);
27
+ l.length > 0 && o.push(l);
28
+ }), o;
29
+ }
30
+ return [];
31
+ });
32
+ return (i, o) => (e(), t("div", C, [
33
+ (e(!0), t(m, null, d(f(c), (r, l) => (e(), t("span", null, [
34
+ (e(!0), t(m, null, d(r, (n, g) => (e(), t("span", {
35
+ style: x({ color: n.color }),
36
+ key: n.value
37
+ }, h(n.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
38
+ l != f(c).length - 1 ? (e(), t("span", S, ",")) : b("", !0)
39
+ ]))), 256))
40
+ ]));
41
+ }
42
+ });
43
+ export {
44
+ N as default
45
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent as N, toRefs as w, ref as p, computed as A, resolveComponent as g, openBlock as s, createElementBlock as f, createVNode as v, unref as o, isRef as _, withCtx as i, Fragment as E, renderList as R, createBlock as S, createTextVNode as V, toDisplayString as k, createElementVNode as U } from "vue";
2
+ const D = { class: "control-checkbox" }, F = { class: "check-all" }, q = /* @__PURE__ */ N({
3
+ __name: "Checkbox",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ emits: ["change", "update:modelValue"],
13
+ setup(b, { emit: x }) {
14
+ let m = x, C = b, { field: r, table: L, set: T, modelValue: h } = w(C), u = p(!1), c = p(!1), y = (t) => {
15
+ n.value = t ? r.value.control.data.data.map((e) => e.value) : [], c.value = !1;
16
+ }, B = (t) => {
17
+ let e = r.value.control.data.data.map((d) => d.value), a = t.filter((d) => e.includes(d));
18
+ u.value = a.length == e.length, c.value = a.length > 0 && a.length < e.length, n.value = a;
19
+ }, n = A({
20
+ get() {
21
+ return h.value ? h.value.split(",") : [];
22
+ },
23
+ set(t) {
24
+ let e = t.toString();
25
+ m("update:modelValue", e), m("change", e);
26
+ }
27
+ });
28
+ return (t, e) => {
29
+ const a = g("el-checkbox"), d = g("el-checkbox-group");
30
+ return s(), f("div", D, [
31
+ v(d, {
32
+ onChange: o(B),
33
+ modelValue: o(n),
34
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => _(n) ? n.value = l : n = l)
35
+ }, {
36
+ default: i(() => [
37
+ (s(!0), f(E, null, R(o(r).control.data.data, (l) => (s(), S(a, {
38
+ disabled: o(r).control.readonly,
39
+ value: l.value,
40
+ key: l.value
41
+ }, {
42
+ default: i(() => [
43
+ V(k(l.text), 1)
44
+ ]),
45
+ _: 2
46
+ }, 1032, ["disabled", "value"]))), 128))
47
+ ]),
48
+ _: 1
49
+ }, 8, ["onChange", "modelValue"]),
50
+ U("div", F, [
51
+ v(a, {
52
+ indeterminate: o(c),
53
+ onChange: o(y),
54
+ modelValue: o(u),
55
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => _(u) ? u.value = l : u = l)
56
+ }, {
57
+ default: i(() => [
58
+ V(k(t.t("common.select_all")), 1)
59
+ ]),
60
+ _: 1
61
+ }, 8, ["indeterminate", "onChange", "modelValue"])
62
+ ])
63
+ ]);
64
+ };
65
+ }
66
+ });
67
+ export {
68
+ q as default
69
+ };