halo-pc 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/Article-BZph3Slr.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BW_G0Irk.js} +17 -24
  3. package/dist/Autocomplete-CuAwiHhE.js +49 -0
  4. package/dist/Autocomplete-Dw1r9LjJ.js +48 -0
  5. package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-qmcT2ECx.js} +1 -1
  6. package/dist/{CSharp-BGzxI5QJ.js → CSharp-BWYY3ixE.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.js → Calender-CGxlpOR0.js} +3 -3
  8. package/dist/Callback-phrGGQ_Q.js +20 -0
  9. package/dist/Cascader-CT7ASkSy.js +41 -0
  10. package/dist/Cascader-CsJ1jVBY.js +81 -0
  11. package/dist/{Checkbox-CuRjXSPc.js → Checkbox-BOC7ECAx.js} +1 -1
  12. package/dist/Checkbox-BePH3x-V.js +70 -0
  13. package/dist/Code-CE-Fe7WB.js +36 -0
  14. package/dist/{Code-BlwPnx9J.js → Code-CWxVzJHq.js} +1 -1
  15. package/dist/Code-CqLG9fEE.js +54 -0
  16. package/dist/Code-TBB9w4CV.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-oiyt3bsp.js +59 -0
  18. package/dist/Column-Ctyq9hqP.js +68 -0
  19. package/dist/Comment-RyVJJjTd.js +98 -0
  20. package/dist/Compare-DEccApnU.js +56 -0
  21. package/dist/Compare-ZBeSkf8f.js +26 -0
  22. package/dist/Copy-CNJ1TZJl.js +43 -0
  23. package/dist/Custom-DHvr_EJi.js +51 -0
  24. package/dist/{DataExport-C0jItlVY.js → DataExport-39v2Wzii.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-Bmm7IDoz.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-C1O_zTRs.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CGKObmMj.js} +54 -59
  28. package/dist/{Date-B8b9JXpP.js → Date-BAk-TE4a.js} +1 -1
  29. package/dist/Date-CsIPLFzI.js +37 -0
  30. package/dist/DateRange-BXSMqDJ0.js +57 -0
  31. package/dist/DateTime-2RoBkqWb.js +38 -0
  32. package/dist/{DateTime-DjhuyxFC.js → DateTime-DSiPx95t.js} +1 -1
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-l6kVSbZe.js} +13 -20
  34. package/dist/Daterange-DRq9WIRI.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-DGia5Sy8.js} +1 -1
  36. package/dist/Delete-B7X35s7r.js +56 -0
  37. package/dist/{Detail-C-OFWPso.js → Detail-wJXhceca.js} +16 -23
  38. package/dist/Dictionary-CUFHT-1d.js +55 -0
  39. package/dist/Email-BqiiArN8.js +48 -0
  40. package/dist/{File-C2fLmTcj.js → File-DngRHLmK.js} +40 -47
  41. package/dist/Image-D3FNAo-5.js +9 -0
  42. package/dist/Index-B3hh_9-f.js +4 -0
  43. package/dist/{Index-D7DerkIw.js → Index-B4bG41Qh.js} +1 -1
  44. package/dist/Index-BJ4rN3ua.js +4 -0
  45. package/dist/Index-C3EFws1o.js +4 -0
  46. package/dist/Index-ChQl4mWS.js +70 -0
  47. package/dist/{Index-B90giDWQ.js → Index-D6WfgZso.js} +1 -1
  48. package/dist/Index-Dec7ANPo.js +173 -0
  49. package/dist/{Index-CQURvmzd.js → Index-yxohMYWu.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-BzE42p5R.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-CCvdKImo.js} +14 -21
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-AFTrgrBJ.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-DvLkDt-G.js} +20 -27
  54. package/dist/{Int-Bj3Gagp5.js → Int-CTZDyiRf.js} +9 -16
  55. package/dist/Int-DUxDmxeN.js +41 -0
  56. package/dist/List-DhQAnj6h.js +73 -0
  57. package/dist/Maintaince-DlOgC995.js +14 -0
  58. package/dist/{Markdown-COY9enBf.js → Markdown-BBZs8Oeu.js} +1 -1
  59. package/dist/Month-BOpeFNyJ.js +37 -0
  60. package/dist/Month-CGeJVL3p.js +38 -0
  61. package/dist/{Month-B7jIGlKI.js → Month-UvBNgDPi.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-AYl3k_ON.js} +43 -49
  63. package/dist/Paging-B45u8Pwz.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-BKtQX0FN.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-C1sBqbWn.js} +21 -28
  66. package/dist/QueryApi-DwKYCq-u.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-DEHtOLFI.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-i6CjikAh.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-SHm6xbyk.js} +74 -80
  70. package/dist/RichText-Bxc-XIY-.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-Co8AjPaU.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CL0CnYJg.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CMiBnK26.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js} +34 -40
  75. package/dist/{Select-BiFIpc5-.js → Select-B-gNnoDq.js} +1 -1
  76. package/dist/Select-DuecGTXX.js +111 -0
  77. package/dist/{Select-Z8b2t5QQ.js → Select-t1xYHXcV.js} +19 -26
  78. package/dist/{Single-DdcVVH9V.js → Single-Da4zGSt4.js} +116 -122
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-MUCQAxl_.js} +25 -31
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C0gpktjX.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-CFVyfAIN.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-B-uQM5GU.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-CT0S6MHJ.js} +1 -1
  84. package/dist/{Table-C2dYPoGi.js → Table-CU6q8l3a.js} +54 -61
  85. package/dist/{Table-a5uj25Nj.js → Table-NC8CrrxW.js} +63 -68
  86. package/dist/Text-Bx4cfjya.js +52 -0
  87. package/dist/{Text-CMEzogZ8.js → Text-ChJQSLGE.js} +1 -1
  88. package/dist/Text-ChdZDU0g.js +53 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-BZNDg39p.js +53 -0
  90. package/dist/TextLink-DIHx9sjo.js +59 -0
  91. package/dist/{Textarea-DAICkidp.js → Textarea-CRi6hLdT.js} +1 -1
  92. package/dist/Time-Cn6eQVUQ.js +37 -0
  93. package/dist/Timeline-DpEcUmkJ.js +53 -0
  94. package/dist/{Tree-BwQkDP2T.js → Tree-B0Rqvp37.js} +73 -79
  95. package/dist/Tree-nr0ZIvCA.js +117 -0
  96. package/dist/TreeNode-e51TMrSj.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-QF8Zkcdq.js} +13 -20
  98. package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-DouQaV7E.js} +19 -26
  99. package/dist/Upload-0ba29Dyr.js +67 -0
  100. package/dist/Upload-BXj28BSA.js +146 -0
  101. package/dist/UploadApi-Boq1A5E-.js +13 -0
  102. package/dist/Year-DuBH5ghc.js +41 -0
  103. package/dist/{Year-2tcz8PDF.js → Year-x4NXoaB_.js} +1 -1
  104. package/dist/main-RFuk2-Bk.js +19837 -0
  105. package/dist/main.js +54 -56
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CqKE2xDo.js +0 -59
  151. package/dist/Text-DfqLW_KH.js +0 -60
  152. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  153. package/dist/TextLink-XJurKE8Q.js +0 -66
  154. package/dist/Time-BmdIHgOY.js +0 -44
  155. package/dist/Timeline-BOPAiaK-.js +0 -60
  156. package/dist/Tree-BR8gmBBa.js +0 -123
  157. package/dist/TreeNode-CdBVgaRW.js +0 -43
  158. package/dist/Upload-BtErvzEO.js +0 -151
  159. package/dist/Upload-vPTA8ndw.js +0 -73
  160. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  161. package/dist/Year-CVqwpSLR.js +0 -48
  162. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  163. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  164. package/dist/assets/@vue-aVYGocXp.js +0 -93
  165. package/dist/assets/clone-BZn0cTAu.js +0 -134
  166. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  167. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  168. package/dist/assets/moment-h96o7c8I.js +0 -2578
  169. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  170. package/dist/assets/state-local-CEworIRt.js +0 -131
  171. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  172. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  173. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  174. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  175. package/dist/main-BS_9gx1M.js +0 -8937
@@ -0,0 +1,194 @@
1
+ import { defineComponent as ae, toRefs as oe, ref as c, onMounted as ne, computed as re, resolveComponent as k, openBlock as u, createElementBlock as f, unref as e, createBlock as b, createCommentVNode as _, createVNode as w, normalizeStyle as se, withCtx as C, createElementVNode as i, Fragment as ie, renderList as ue, withModifiers as H, toDisplayString as d, resolveDynamicComponent as ce, createTextVNode as U } from "vue";
2
+ import { c as de, Q as N, W as pe, U as me, _ as ve, L as ge, v as fe, N as D } from "./main-RFuk2-Bk.js";
3
+ import { _ as he } from "./SearchForm.vue_vue_type_style_index_0_lang-OBkIrjUP.js";
4
+ const _e = { class: "article-layout" }, ye = ["href", "onClick"], ke = ["src"], be = { class: "article-title" }, we = {
5
+ key: 0,
6
+ class: "article-content"
7
+ }, Ce = { class: "article-time" }, Re = {
8
+ key: 1,
9
+ class: "article-view-count"
10
+ }, xe = ["href"], $e = /* @__PURE__ */ i("i", { class: "fa fa-plus" }, null, -1), Be = { class: "el-drawer__title" }, Se = ["href"], Ue = /* @__PURE__ */ ae({
11
+ __name: "Article",
12
+ props: {
13
+ searchData: {},
14
+ module: {},
15
+ schema: {},
16
+ table: {},
17
+ layout: {},
18
+ next: {},
19
+ set: {}
20
+ },
21
+ emits: ["page-change", "navigate", "search", "succeed", "close"],
22
+ setup(E, { expose: M, emit: F }) {
23
+ let p = F, K = E, { module: L, schema: P, table: n, layout: r, next: m, set: R, searchData: Q } = oe(K), x = c(), y = c(), $ = c(), B = c(), h = c();
24
+ c({ layout: "prev, pager, next", count: 5 });
25
+ let a = c({ page: null, url: null, row: null, visible: !1, appendToBody: !1 }), S = (t) => {
26
+ g("insert", null, t);
27
+ }, j = (t, l) => {
28
+ g("detail", t, l);
29
+ }, A = (t, l) => {
30
+ g("update", t, l);
31
+ }, W = (t, l) => {
32
+ g("copy", t, l);
33
+ }, q = (t, l) => {
34
+ g("delete", t, l);
35
+ }, G = (t) => {
36
+ let l = t.map((s) => s[n.value.key.name]);
37
+ ge.post(m.value.delete.route, l).then((s) => {
38
+ fe.success(s.message), T();
39
+ });
40
+ }, g = (t, l, s) => {
41
+ let v = z(t, l);
42
+ s.ctrlKey ? (a.value.row = null, p("navigate", v)) : (a.value.appendToBody = s.altKey, a.value.page = t, a.value.url = v, a.value.row = l, a.value.visible = !0);
43
+ }, z = (t, l = null) => {
44
+ let s = `${m.value[t].route}`;
45
+ if (l != null) {
46
+ let v = l[n.value.key.name];
47
+ s += `?id=${v}`;
48
+ }
49
+ return s;
50
+ }, I = () => {
51
+ a.value.visible = !1, p("close");
52
+ }, T = (t = null) => {
53
+ a.value.visible = !1, p("succeed", t);
54
+ }, J = (t) => {
55
+ p("page-change", t);
56
+ }, O = (t) => {
57
+ p("navigate", t);
58
+ }, X = () => {
59
+ p("search");
60
+ }, Y = () => {
61
+ V();
62
+ }, Z = (t, l) => {
63
+ if (!h.value || !h.value.keyboard)
64
+ return !1;
65
+ h.value.keyboard(t, l);
66
+ }, ee = (t) => {
67
+ V();
68
+ }, V = () => {
69
+ if (y.value == null)
70
+ return;
71
+ let t = D.getHeight(x.value), l = D.getHeight([y.value.$el, $.value]);
72
+ B.value = t - l;
73
+ };
74
+ ne(() => {
75
+ });
76
+ let te = re(() => {
77
+ let t = `/${n.value.name}/article-footer`;
78
+ return de.getComponent(t, "partial", "article-footer");
79
+ });
80
+ return M({ keyboard: Z, resize: ee }), (t, l) => {
81
+ const s = k("el-scrollbar"), v = k("el-pagination"), le = k("el-drawer");
82
+ return u(), f("div", {
83
+ ref_key: "pagingRef",
84
+ ref: x,
85
+ class: "paging-article"
86
+ }, [
87
+ e(n).search.length > 0 ? (u(), b(he, {
88
+ key: 0,
89
+ ref_key: "searchRef",
90
+ ref: y,
91
+ schema: e(P),
92
+ table: e(n),
93
+ layout: e(r),
94
+ "search-data": e(Q),
95
+ onSubmit: e(X),
96
+ onMounted: e(Y)
97
+ }, null, 8, ["schema", "table", "layout", "search-data", "onSubmit", "onMounted"])) : _("", !0),
98
+ w(s, {
99
+ class: "article-scroller",
100
+ style: se({ height: e(B) + "px" })
101
+ }, {
102
+ default: C(() => [
103
+ i("div", _e, [
104
+ (u(!0), f(ie, null, ue(e(R)[e(n).name], (o) => (u(), f("a", {
105
+ class: "article",
106
+ href: `${e(m).detail.route}?id=${o[e(n).key.name]}`,
107
+ onClick: H((ze) => e(O)(`${e(m).detail.route}?id=${o[e(n).key.name]}`), ["prevent"]),
108
+ key: o[e(n).key.name]
109
+ }, [
110
+ i("img", {
111
+ class: "article-image",
112
+ src: o[e(r).image]
113
+ }, null, 8, ke),
114
+ i("div", be, d(o[e(r).title]), 1),
115
+ e(N).getText(o[e(r).content]) ? (u(), f("div", we, d(e(N).getText(o[e(r).content])), 1)) : _("", !0),
116
+ i("div", Ce, d(o[e(r).time]), 1),
117
+ o[e(r).viewCount] ? (u(), f("div", Re, d(o[e(r).viewCount]), 1)) : _("", !0),
118
+ (u(), b(ce(e(te)), {
119
+ table: e(n),
120
+ next: e(m),
121
+ set: e(R),
122
+ row: o,
123
+ onPreview: e(j),
124
+ onEdit: e(A),
125
+ onCopy: e(W),
126
+ onBeforeRemove: e(q),
127
+ onRemove: e(G)
128
+ }, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove"]))
129
+ ], 8, ye))), 128)),
130
+ i("a", {
131
+ href: e(z)("insert"),
132
+ class: "article-add",
133
+ onClick: l[0] || (l[0] = H(
134
+ //@ts-ignore
135
+ (...o) => e(S) && e(S)(...o),
136
+ ["prevent"]
137
+ ))
138
+ }, [
139
+ $e,
140
+ U(" 添加新" + d(e(n).title), 1)
141
+ ], 8, xe)
142
+ ])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["style"]),
146
+ i("div", {
147
+ ref_key: "footerRef",
148
+ ref: $,
149
+ class: "article-bottom"
150
+ }, [
151
+ w(v, {
152
+ background: "",
153
+ layout: "total, prev, pager, next, jumper",
154
+ "current-page": e(r).page,
155
+ "page-size": e(r).pageSize,
156
+ total: e(r).count,
157
+ onCurrentChange: e(J)
158
+ }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
159
+ ], 512),
160
+ e(a).page ? (u(), b(le, {
161
+ key: 1,
162
+ "destroy-on-close": "",
163
+ "append-to-body": e(a).appendToBody,
164
+ size: `${e(L).width ?? "60%"}`,
165
+ modelValue: e(a).visible,
166
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).visible = o)
167
+ }, {
168
+ header: C(() => [
169
+ i("div", Be, [
170
+ U(d(e(m)[e(a).page].title) + " ", 1),
171
+ i("a", {
172
+ class: "drawer-copy",
173
+ href: e(pe).getToUrl(e(a).url)
174
+ }, d(e(me)("common.link")), 9, Se)
175
+ ])
176
+ ]),
177
+ default: C(() => [
178
+ w(e(ve), {
179
+ ref_key: "pageRef",
180
+ ref: h,
181
+ url: e(a).url,
182
+ onSucceed: e(T),
183
+ onClose: e(I)
184
+ }, null, 8, ["url", "onSucceed", "onClose"])
185
+ ]),
186
+ _: 1
187
+ }, 8, ["append-to-body", "size", "modelValue"])) : _("", !0)
188
+ ], 512);
189
+ };
190
+ }
191
+ });
192
+ export {
193
+ Ue as default
194
+ };
@@ -1,13 +1,6 @@
1
- import { defineComponent as w, toRefs as _, resolveComponent as B, openBlock as r, createElementBlock as p, unref as e, withModifiers as c, createCommentVNode as s, createBlock as E, withCtx as N, createElementVNode as R } 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/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import { t as a } from "./main-BS_9gx1M.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- const V = { class: "article-footer" }, J = /* @__PURE__ */ w({
1
+ import { defineComponent as w, toRefs as _, resolveComponent as B, openBlock as r, createElementBlock as m, unref as e, withModifiers as p, createCommentVNode as s, createBlock as E, withCtx as N, createElementVNode as R } from "vue";
2
+ import { U as a } from "./main-RFuk2-Bk.js";
3
+ const U = { class: "article-footer" }, g = /* @__PURE__ */ w({
11
4
  __name: "ArticleFooter",
12
5
  props: {
13
6
  table: {},
@@ -17,41 +10,41 @@ const V = { class: "article-footer" }, J = /* @__PURE__ */ w({
17
10
  },
18
11
  emits: ["preview", "edit", "copy", "before-remove", "remove"],
19
12
  setup(b, { emit: k }) {
20
- let i = k, C = b, { table: A, next: l, set: F, row: m } = _(C), f = (o) => {
21
- i("preview", m.value, o);
13
+ let i = k, C = b, { table: V, next: l, set: A, row: c } = _(C), f = (o) => {
14
+ i("preview", c.value, o);
22
15
  }, u = (o) => {
23
- i("edit", m.value, o);
16
+ i("edit", c.value, o);
24
17
  }, v = (o) => {
25
- i("copy", m.value, o);
18
+ i("copy", c.value, o);
26
19
  }, d = (o) => {
27
20
  }, x = () => {
28
- i("remove", [m.value]);
21
+ i("remove", [c.value]);
29
22
  };
30
23
  return (o, t) => {
31
24
  const y = B("el-popconfirm");
32
- return r(), p("div", V, [
33
- e(l).detail ? (r(), p("i", {
25
+ return r(), m("div", U, [
26
+ e(l).detail ? (r(), m("i", {
34
27
  key: 0,
35
28
  class: "fa fa-search-plus btn-icon",
36
- onClick: t[0] || (t[0] = c(
29
+ onClick: t[0] || (t[0] = p(
37
30
  //@ts-ignore
38
31
  (...n) => e(f) && e(f)(...n),
39
32
  ["prevent", "stop"]
40
33
  ))
41
34
  })) : s("", !0),
42
- e(l).update ? (r(), p("i", {
35
+ e(l).update ? (r(), m("i", {
43
36
  key: 1,
44
37
  class: "fa fa-pencil btn-icon",
45
- onClick: t[1] || (t[1] = c(
38
+ onClick: t[1] || (t[1] = p(
46
39
  //@ts-ignore
47
40
  (...n) => e(u) && e(u)(...n),
48
41
  ["prevent", "stop"]
49
42
  ))
50
43
  })) : s("", !0),
51
- e(l).copy ? (r(), p("i", {
44
+ e(l).copy ? (r(), m("i", {
52
45
  key: 2,
53
46
  class: "fa fa-copy btn-icon",
54
- onClick: t[2] || (t[2] = c(
47
+ onClick: t[2] || (t[2] = p(
55
48
  //@ts-ignore
56
49
  (...n) => e(v) && e(v)(...n),
57
50
  ["prevent", "stop"]
@@ -68,7 +61,7 @@ const V = { class: "article-footer" }, J = /* @__PURE__ */ w({
68
61
  reference: N(() => [
69
62
  R("i", {
70
63
  class: "fa fa-trash-alt btn-icon",
71
- onClick: t[3] || (t[3] = c(
64
+ onClick: t[3] || (t[3] = p(
72
65
  //@ts-ignore
73
66
  (...n) => e(d) && e(d)(...n),
74
67
  ["prevent", "stop"]
@@ -82,5 +75,5 @@ const V = { class: "article-footer" }, J = /* @__PURE__ */ w({
82
75
  }
83
76
  });
84
77
  export {
85
- J as default
78
+ g as default
86
79
  };
@@ -0,0 +1,49 @@
1
+ import { defineComponent as v, toRefs as V, ref as _, computed as x, resolveComponent as C, openBlock as b, createBlock as k, unref as o, isRef as z } from "vue";
2
+ import { z as B, X as R, L as w } from "./main-RFuk2-Bk.js";
3
+ const S = /* @__PURE__ */ v({
4
+ __name: "Autocomplete",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["submit", "change", "update:modelValue"],
14
+ setup(p, { emit: d }) {
15
+ let m = d, c = p, { table: i, field: r, set: A, modelValue: f } = V(c), a = _([]), g = null, h = (l, e) => {
16
+ if (a.value.length) {
17
+ let t = a.value.filter((s) => R.containsIgnoreCase(l, s.value));
18
+ e(t);
19
+ return;
20
+ }
21
+ let n = { text: g, conditions: [] };
22
+ w.post(r.value.control.data.route, n).then(({ data: t }) => {
23
+ a.value = t.map((s) => ({ value: s.text })), e(a.value);
24
+ }).catch(() => {
25
+ e([]);
26
+ });
27
+ }, u = x({
28
+ get() {
29
+ return f.value;
30
+ },
31
+ set(l) {
32
+ m("update:modelValue", l), m("change", l);
33
+ }
34
+ });
35
+ return (l, e) => {
36
+ const n = C("el-autocomplete");
37
+ return b(), k(n, {
38
+ clearable: "",
39
+ placeholder: o(B)(o(i).name, o(r).name),
40
+ "fetch-suggestions": o(h),
41
+ modelValue: o(u),
42
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => z(u) ? u.value = t : u = t)
43
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
44
+ };
45
+ }
46
+ });
47
+ export {
48
+ S as default
49
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as v, toRefs as V, ref as _, computed as x, resolveComponent as C, openBlock as b, createBlock as k, unref as a, isRef as z } from "vue";
2
+ import { z as B, X as D, L as R } from "./main-RFuk2-Bk.js";
3
+ const S = /* @__PURE__ */ v({
4
+ __name: "Autocomplete",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ searchData: {},
10
+ modelValue: {}
11
+ },
12
+ emits: ["submit", "change", "update:modelValue"],
13
+ setup(p, { emit: c }) {
14
+ let m = c, d = p, { table: i, field: r, searchData: A, modelValue: f } = V(d), o = _([]), g = null, h = (l, e) => {
15
+ if (o.value.length) {
16
+ let t = o.value.filter((s) => D.containsIgnoreCase(l, s.value));
17
+ e(t);
18
+ return;
19
+ }
20
+ let n = { text: g, conditions: [] };
21
+ R.post(r.value.control.data.route, n).then(({ data: t }) => {
22
+ o.value = t.map((s) => ({ value: s.text })), e(o.value);
23
+ }).catch(() => {
24
+ e([]);
25
+ });
26
+ }, u = x({
27
+ get() {
28
+ return f.value;
29
+ },
30
+ set(l) {
31
+ m("update:modelValue", l), m("change", l);
32
+ }
33
+ });
34
+ return (l, e) => {
35
+ const n = C("el-autocomplete");
36
+ return b(), k(n, {
37
+ clearable: "",
38
+ placeholder: a(B)(a(i).name, a(r).name),
39
+ "fetch-suggestions": a(h),
40
+ modelValue: a(u),
41
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => z(u) ? u.value = t : u = t)
42
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ S as default
48
+ };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ f({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let m = i(() => import("./Text-CMEzogZ8.js")), s = a, { table: r, field: n, set: d, row: p, modelValue: l } = c(s);
13
+ let m = i(() => import("./Text-ChJQSLGE.js")), s = a, { table: r, field: n, set: d, row: p, modelValue: l } = c(s);
14
14
  return (u, o) => (V(), b(e(m), {
15
15
  schema: u.schema,
16
16
  table: e(r),
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Code--y8oCkjX.js")), s = a, { schema: m, table: n, field: d, set: p, row: f, modelValue: l } = c(s);
13
+ let r = i(() => import("./Code-CE-Fe7WB.js")), s = a, { schema: m, table: n, field: d, set: p, row: f, modelValue: l } = c(s);
14
14
  return (w, o) => (V(), b(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),
@@ -1,10 +1,10 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { n } from "./main-BS_9gx1M.js";
3
- const c = {};
2
+ import { e as c } from "./main-RFuk2-Bk.js";
3
+ const n = {};
4
4
  function o(t, _) {
5
5
  return e(), r("div", null, "日历");
6
6
  }
7
- const l = /* @__PURE__ */ n(c, [["render", o]]);
7
+ const l = /* @__PURE__ */ c(n, [["render", o]]);
8
8
  export {
9
9
  l as default
10
10
  };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as o } from "vue";
2
+ import { useRouter as i, useRoute as n } from "vue-router";
3
+ import { v as s, $ as u } from "./main-RFuk2-Bk.js";
4
+ const y = /* @__PURE__ */ o({
5
+ __name: "Callback",
6
+ setup(a) {
7
+ let r = i(), t = n().query;
8
+ return (async () => {
9
+ if (!t.type) {
10
+ s.error("缺失type参数");
11
+ return;
12
+ }
13
+ let e = await u.sso.create(t.type.toString());
14
+ t.identity = JSON.parse(t.identity.toString()), e.login(t), r.push(t.return_url.toString());
15
+ })(), (e, l) => " 登录完毕,处理回调中... ";
16
+ }
17
+ });
18
+ export {
19
+ y as default
20
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as y, toRefs as k, computed as p, openBlock as e, createElementBlock as t, Fragment as d, renderList as m, unref as f, normalizeStyle as x, toDisplayString as h, createCommentVNode as b } from "vue";
2
+ import { R as B } from "./main-RFuk2-Bk.js";
3
+ const C = { class: "text-cascader" }, R = {
4
+ key: 0,
5
+ class: "cascader-seperator"
6
+ }, F = /* @__PURE__ */ y({
7
+ __name: "Cascader",
8
+ props: {
9
+ schema: {},
10
+ table: {},
11
+ field: {},
12
+ set: {},
13
+ row: {},
14
+ modelValue: {}
15
+ },
16
+ emits: ["submit", "change"],
17
+ setup(_, { emit: S }) {
18
+ let v = _, { table: V, field: s, set: w, row: E, modelValue: a } = k(v), u = p(() => s.value.control.multiple ? a.value ? a.value.toString().split(",") : [] : a.value), c = p(() => {
19
+ if (u.value.length > 0) {
20
+ let i = s.value.control.data.data, n = [];
21
+ return u.value.forEach((r) => {
22
+ let l = B.getParentsById(r, "value", i, "children", !0);
23
+ l.length > 0 && n.push(l);
24
+ }), n;
25
+ }
26
+ return [];
27
+ });
28
+ return (i, n) => (e(), t("div", C, [
29
+ (e(!0), t(d, null, m(f(c), (r, l) => (e(), t("span", null, [
30
+ (e(!0), t(d, null, m(r, (o, g) => (e(), t("span", {
31
+ style: x({ color: o.color }),
32
+ key: o.value
33
+ }, h(o.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
34
+ l != f(c).length - 1 ? (e(), t("span", R, ",")) : b("", !0)
35
+ ]))), 256))
36
+ ]));
37
+ }
38
+ });
39
+ export {
40
+ F as default
41
+ };
@@ -0,0 +1,81 @@
1
+ import { defineComponent as E, toRefs as R, ref as w, computed as N, resolveComponent as S, openBlock as c, createBlock as D, unref as a, isRef as I, withCtx as P, createElementVNode as j, createTextVNode as q, toDisplayString as i, createElementBlock as m, createCommentVNode as f } from "vue";
2
+ import { V as L, R as h, L as T } from "./main-RFuk2-Bk.js";
3
+ const U = {
4
+ key: 0,
5
+ class: "cascader-suffix"
6
+ }, z = {
7
+ key: 0,
8
+ class: "cascader-length"
9
+ }, J = /* @__PURE__ */ E({
10
+ __name: "Cascader",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(v, { emit: g }) {
21
+ let d = g, V = v, { table: b, field: t, set: A, row: F, modelValue: _ } = R(V), n = w(), p = null, x = () => {
22
+ n.value || (n.value = t.value.control.data.data);
23
+ let e = _.value, l = [];
24
+ return t.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((s) => {
25
+ let o = h.getParentsById(s, "value", n.value, "children", !0);
26
+ o.length > 0 && l.push(o.map((B) => B.value));
27
+ }) : h.getParentsById(e, "value", n.value, "children", !0).forEach((s) => {
28
+ l.push(s.value);
29
+ }), l;
30
+ }, C = (e) => {
31
+ let l;
32
+ t.value.control.multiple ? l = e.map((r) => r[r.length - 1]).join(",") : l = e[e.length - 1], d("update:modelValue", l), d("change", l);
33
+ }, y = (e) => {
34
+ e && (p = null, k());
35
+ }, k = () => {
36
+ let e = { text: p, conditions: [] };
37
+ t.value.control.data.conditions.forEach((l) => {
38
+ e.conditions.push({ name: l.name, value: null });
39
+ }), T.post(t.value.control.data.route, e).then(({ data: l }) => {
40
+ n.value = l;
41
+ });
42
+ }, u = N({
43
+ get() {
44
+ return x();
45
+ },
46
+ set(e) {
47
+ C(e);
48
+ }
49
+ });
50
+ return (e, l) => {
51
+ const r = S("el-cascader");
52
+ return c(), D(r, {
53
+ ref: "cascaderRef",
54
+ placeholder: a(L)(a(b).name, a(t).name),
55
+ filterable: "",
56
+ "collapse-tags": "",
57
+ "collapse-tags-tooltip": "",
58
+ "max-collapse-tags": 6,
59
+ options: a(n),
60
+ disabled: a(t).readonly,
61
+ props: { label: "text", checkStrictly: !0, multiple: a(t).control.multiple },
62
+ clearable: !a(t).control.required,
63
+ onVisibleChange: a(y),
64
+ modelValue: a(u),
65
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => I(u) ? u.value = s : u = s)
66
+ }, {
67
+ default: P(({ node: s, data: o }) => [
68
+ j("span", null, [
69
+ q(i(o.text), 1),
70
+ o.suffix ? (c(), m("span", U, "(" + i(o.suffix) + ")", 1)) : f("", !0)
71
+ ]),
72
+ o.children ? (c(), m("span", z, i(o.children.length), 1)) : f("", !0)
73
+ ]),
74
+ _: 1
75
+ }, 8, ["placeholder", "options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
76
+ };
77
+ }
78
+ });
79
+ export {
80
+ J as default
81
+ };
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ p({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = u(() => import("./Dictionary-Cfhmc2OQ.js")), s = a, { schema: m, table: n, field: d, set: f, row: i, modelValue: l } = c(s);
13
+ let r = u(() => import("./Dictionary-CUFHT-1d.js")), s = a, { schema: m, table: n, field: d, set: f, row: i, modelValue: l } = c(s);
14
14
  return (w, o) => (b(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),
@@ -0,0 +1,70 @@
1
+ import { defineComponent as B, toRefs as N, ref as p, computed as w, resolveComponent as g, openBlock as s, createElementBlock as f, createVNode as v, unref as t, isRef as _, withCtx as m, Fragment as A, renderList as E, createBlock as R, createTextVNode as V, toDisplayString as k, createElementVNode as S } from "vue";
2
+ import { U as D } from "./main-RFuk2-Bk.js";
3
+ const F = { class: "control-checkbox" }, L = { class: "check-all" }, G = /* @__PURE__ */ B({
4
+ __name: "Checkbox",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["change", "update:modelValue"],
14
+ setup(x, { emit: b }) {
15
+ let i = b, C = x, { field: r, table: T, set: j, modelValue: h } = N(C), u = p(!1), c = p(!1), y = (n) => {
16
+ o.value = n ? r.value.control.data.data.map((e) => e.value) : [], c.value = !1;
17
+ }, U = (n) => {
18
+ let e = r.value.control.data.data.map((d) => d.value), a = n.filter((d) => e.includes(d));
19
+ u.value = a.length == e.length, c.value = a.length > 0 && a.length < e.length, o.value = a;
20
+ }, o = w({
21
+ get() {
22
+ return h.value ? h.value.split(",") : [];
23
+ },
24
+ set(n) {
25
+ let e = n.toString();
26
+ i("update:modelValue", e), i("change", e);
27
+ }
28
+ });
29
+ return (n, e) => {
30
+ const a = g("el-checkbox"), d = g("el-checkbox-group");
31
+ return s(), f("div", F, [
32
+ v(d, {
33
+ onChange: t(U),
34
+ modelValue: t(o),
35
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => _(o) ? o.value = l : o = l)
36
+ }, {
37
+ default: m(() => [
38
+ (s(!0), f(A, null, E(t(r).control.data.data, (l) => (s(), R(a, {
39
+ disabled: t(r).control.readonly,
40
+ value: l.value,
41
+ key: l.value
42
+ }, {
43
+ default: m(() => [
44
+ V(k(l.text), 1)
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["disabled", "value"]))), 128))
48
+ ]),
49
+ _: 1
50
+ }, 8, ["onChange", "modelValue"]),
51
+ S("div", L, [
52
+ v(a, {
53
+ indeterminate: t(c),
54
+ onChange: t(y),
55
+ modelValue: t(u),
56
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => _(u) ? u.value = l : u = l)
57
+ }, {
58
+ default: m(() => [
59
+ V(k(t(D)("common.select_all")), 1)
60
+ ]),
61
+ _: 1
62
+ }, 8, ["indeterminate", "onChange", "modelValue"])
63
+ ])
64
+ ]);
65
+ };
66
+ }
67
+ });
68
+ export {
69
+ G as default
70
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
2
+ import { d as _ } from "./main-RFuk2-Bk.js";
3
+ const C = /* @__PURE__ */ v({
4
+ __name: "Code",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ setup(f) {
14
+ let g = f, { table: s, field: t, set: b, row: d, modelValue: a } = h(g), o = i(), r = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", c = (e) => e ? s.value.fields.find((u) => u.name == e) : null, p = (e) => {
15
+ let l = c(e);
16
+ return l ? d.value[l.name] : null;
17
+ };
18
+ return (() => {
19
+ if (o.value = m(), t.value.control.languageField == null)
20
+ r.value.language = t.value.control.language;
21
+ else {
22
+ let e = p(t.value.control.languageField);
23
+ e && (r.value.language = e);
24
+ }
25
+ })(), (e, l) => (V(), y(n(_), {
26
+ class: "text-code",
27
+ config: n(r),
28
+ style: x(n(o)),
29
+ modelValue: n(a),
30
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
+ }, null, 8, ["config", "style", "modelValue"]));
32
+ }
33
+ });
34
+ export {
35
+ C as default
36
+ };