halo-pc 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/Code-QYs-sjcG.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/Compare-Cj_CPjIV.js +63 -0
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
  77. package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
  80. package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
  86. package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-C1iALE1f.js +8947 -0
  116. package/dist/main.js +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -0,0 +1,200 @@
1
+ import { defineComponent as oe, toRefs as ae, ref as c, onMounted as re, computed as ne, 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 V, toDisplayString as d, resolveDynamicComponent as ce, createTextVNode as D } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { d as de, G as U, U as pe, t as me, a as ve, h as ge, m as fe, D as E } from "./main-C1iALE1f.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ import { _ as he } from "./SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js";
10
+ const _e = { class: "article-layout" }, ye = ["href", "onClick"], ke = ["src"], be = { class: "article-title" }, we = {
11
+ key: 0,
12
+ class: "article-content"
13
+ }, Ce = { class: "article-time" }, Re = {
14
+ key: 1,
15
+ class: "article-view-count"
16
+ }, xe = ["href"], $e = /* @__PURE__ */ i("i", { class: "fa fa-plus" }, null, -1), He = { class: "el-drawer__title" }, Be = ["href"], Ke = /* @__PURE__ */ oe({
17
+ __name: "Article",
18
+ props: {
19
+ searchData: {},
20
+ module: {},
21
+ schema: {},
22
+ table: {},
23
+ layout: {},
24
+ next: {},
25
+ set: {}
26
+ },
27
+ emits: ["page-change", "navigate", "search", "succeed", "close"],
28
+ setup(M, { expose: N, emit: F }) {
29
+ let p = F, K = M, { module: P, schema: j, table: r, layout: n, next: m, set: R, searchData: A } = ae(K), x = c(), y = c(), $ = c(), H = c(), h = c();
30
+ c({ layout: "prev, pager, next", count: 5 });
31
+ let o = c({ page: null, url: null, row: null, visible: !1, appendToBody: !1 }), B = (t) => {
32
+ g("insert", null, t);
33
+ }, G = (t, l) => {
34
+ g("detail", t, l);
35
+ }, L = (t, l) => {
36
+ g("update", t, l);
37
+ }, q = (t, l) => {
38
+ g("copy", t, l);
39
+ }, I = (t, l) => {
40
+ g("delete", t, l);
41
+ }, J = (t) => {
42
+ let l = t.map((s) => s[r.value.key.name]);
43
+ ge.post(m.value.delete.route, l).then((s) => {
44
+ fe.success(s.message), z();
45
+ });
46
+ }, g = (t, l, s) => {
47
+ let v = S(t, l);
48
+ s.ctrlKey ? (o.value.row = null, p("navigate", v)) : (o.value.appendToBody = s.altKey, o.value.page = t, o.value.url = v, o.value.row = l, o.value.visible = !0);
49
+ }, S = (t, l = null) => {
50
+ let s = `${m.value[t].route}`;
51
+ if (l != null) {
52
+ let v = l[r.value.key.name];
53
+ s += `?id=${v}`;
54
+ }
55
+ return s;
56
+ }, O = () => {
57
+ o.value.visible = !1, p("close");
58
+ }, z = (t = null) => {
59
+ o.value.visible = !1, p("succeed", t);
60
+ }, Q = (t) => {
61
+ p("page-change", t);
62
+ }, W = (t) => {
63
+ p("navigate", t);
64
+ }, X = () => {
65
+ p("search");
66
+ }, Y = () => {
67
+ T();
68
+ }, Z = (t, l) => {
69
+ if (!h.value || !h.value.keyboard)
70
+ return !1;
71
+ h.value.keyboard(t, l);
72
+ }, ee = (t) => {
73
+ T();
74
+ }, T = () => {
75
+ if (y.value == null)
76
+ return;
77
+ let t = E.getHeight(x.value), l = E.getHeight([y.value.$el, $.value]);
78
+ H.value = t - l;
79
+ };
80
+ re(() => {
81
+ });
82
+ let te = ne(() => {
83
+ let t = `/${r.value.name}/article-footer`;
84
+ return de.getComponent(t, "partial", "article-footer");
85
+ });
86
+ return N({ keyboard: Z, resize: ee }), (t, l) => {
87
+ const s = k("el-scrollbar"), v = k("el-pagination"), le = k("el-drawer");
88
+ return u(), f("div", {
89
+ ref_key: "pagingRef",
90
+ ref: x,
91
+ class: "paging-article"
92
+ }, [
93
+ e(r).search.length > 0 ? (u(), b(he, {
94
+ key: 0,
95
+ ref_key: "searchRef",
96
+ ref: y,
97
+ schema: e(j),
98
+ table: e(r),
99
+ layout: e(n),
100
+ "search-data": e(A),
101
+ onSubmit: e(X),
102
+ onMounted: e(Y)
103
+ }, null, 8, ["schema", "table", "layout", "search-data", "onSubmit", "onMounted"])) : _("", !0),
104
+ w(s, {
105
+ class: "article-scroller",
106
+ style: se({ height: e(H) + "px" })
107
+ }, {
108
+ default: C(() => [
109
+ i("div", _e, [
110
+ (u(!0), f(ie, null, ue(e(R)[e(r).name], (a) => (u(), f("a", {
111
+ class: "article",
112
+ href: `${e(m).detail.route}?id=${a[e(r).key.name]}`,
113
+ onClick: V((Se) => e(W)(`${e(m).detail.route}?id=${a[e(r).key.name]}`), ["prevent"]),
114
+ key: a[e(r).key.name]
115
+ }, [
116
+ i("img", {
117
+ class: "article-image",
118
+ src: a[e(n).image]
119
+ }, null, 8, ke),
120
+ i("div", be, d(a[e(n).title]), 1),
121
+ e(U).getText(a[e(n).content]) ? (u(), f("div", we, d(e(U).getText(a[e(n).content])), 1)) : _("", !0),
122
+ i("div", Ce, d(a[e(n).time]), 1),
123
+ a[e(n).viewCount] ? (u(), f("div", Re, d(a[e(n).viewCount]), 1)) : _("", !0),
124
+ (u(), b(ce(e(te)), {
125
+ table: e(r),
126
+ next: e(m),
127
+ set: e(R),
128
+ row: a,
129
+ onPreview: e(G),
130
+ onEdit: e(L),
131
+ onCopy: e(q),
132
+ onBeforeRemove: e(I),
133
+ onRemove: e(J)
134
+ }, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove"]))
135
+ ], 8, ye))), 128)),
136
+ i("a", {
137
+ href: e(S)("insert"),
138
+ class: "article-add",
139
+ onClick: l[0] || (l[0] = V(
140
+ //@ts-ignore
141
+ (...a) => e(B) && e(B)(...a),
142
+ ["prevent"]
143
+ ))
144
+ }, [
145
+ $e,
146
+ D(" 添加新" + d(e(r).title), 1)
147
+ ], 8, xe)
148
+ ])
149
+ ]),
150
+ _: 1
151
+ }, 8, ["style"]),
152
+ i("div", {
153
+ ref_key: "footerRef",
154
+ ref: $,
155
+ class: "article-bottom"
156
+ }, [
157
+ w(v, {
158
+ background: "",
159
+ layout: "total, prev, pager, next, jumper",
160
+ "current-page": e(n).page,
161
+ "page-size": e(n).pageSize,
162
+ total: e(n).count,
163
+ onCurrentChange: e(Q)
164
+ }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
165
+ ], 512),
166
+ e(o).page ? (u(), b(le, {
167
+ key: 1,
168
+ "destroy-on-close": "",
169
+ "append-to-body": e(o).appendToBody,
170
+ size: `${e(P).width ?? "60%"}`,
171
+ modelValue: e(o).visible,
172
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => e(o).visible = a)
173
+ }, {
174
+ header: C(() => [
175
+ i("div", He, [
176
+ D(d(e(m)[e(o).page].title) + " ", 1),
177
+ i("a", {
178
+ class: "drawer-copy",
179
+ href: e(pe).getToUrl(e(o).url)
180
+ }, d(e(me)("common.link")), 9, Be)
181
+ ])
182
+ ]),
183
+ default: C(() => [
184
+ w(e(ve), {
185
+ ref_key: "pageRef",
186
+ ref: h,
187
+ url: e(o).url,
188
+ onSucceed: e(z),
189
+ onClose: e(O)
190
+ }, null, 8, ["url", "onSucceed", "onClose"])
191
+ ]),
192
+ _: 1
193
+ }, 8, ["append-to-body", "size", "modelValue"])) : _("", !0)
194
+ ], 512);
195
+ };
196
+ }
197
+ });
198
+ export {
199
+ Ke as default
200
+ };
@@ -1,6 +1,12 @@
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 P } from "vue";
2
- import { P as a } from "./assets/halo-fe-idvmXC0t.js";
3
- const R = { class: "article-footer" }, g = /* @__PURE__ */ w({
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/moment-h96o7c8I.js";
7
+ import { t as a } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const V = { class: "article-footer" }, I = /* @__PURE__ */ w({
4
10
  __name: "ArticleFooter",
5
11
  props: {
6
12
  table: {},
@@ -10,41 +16,41 @@ const R = { class: "article-footer" }, g = /* @__PURE__ */ w({
10
16
  },
11
17
  emits: ["preview", "edit", "copy", "before-remove", "remove"],
12
18
  setup(b, { emit: k }) {
13
- let i = k, C = b, { table: V, next: l, set: A, row: c } = _(C), f = (o) => {
14
- i("preview", c.value, o);
19
+ let i = k, C = b, { table: A, next: l, set: F, row: m } = _(C), f = (o) => {
20
+ i("preview", m.value, o);
15
21
  }, u = (o) => {
16
- i("edit", c.value, o);
22
+ i("edit", m.value, o);
17
23
  }, v = (o) => {
18
- i("copy", c.value, o);
24
+ i("copy", m.value, o);
19
25
  }, d = (o) => {
20
26
  }, x = () => {
21
- i("remove", [c.value]);
27
+ i("remove", [m.value]);
22
28
  };
23
29
  return (o, t) => {
24
30
  const y = B("el-popconfirm");
25
- return r(), m("div", R, [
26
- e(l).detail ? (r(), m("i", {
31
+ return r(), p("div", V, [
32
+ e(l).detail ? (r(), p("i", {
27
33
  key: 0,
28
34
  class: "fa fa-search-plus btn-icon",
29
- onClick: t[0] || (t[0] = p(
35
+ onClick: t[0] || (t[0] = c(
30
36
  //@ts-ignore
31
37
  (...n) => e(f) && e(f)(...n),
32
38
  ["prevent", "stop"]
33
39
  ))
34
40
  })) : s("", !0),
35
- e(l).update ? (r(), m("i", {
41
+ e(l).update ? (r(), p("i", {
36
42
  key: 1,
37
43
  class: "fa fa-pencil btn-icon",
38
- onClick: t[1] || (t[1] = p(
44
+ onClick: t[1] || (t[1] = c(
39
45
  //@ts-ignore
40
46
  (...n) => e(u) && e(u)(...n),
41
47
  ["prevent", "stop"]
42
48
  ))
43
49
  })) : s("", !0),
44
- e(l).copy ? (r(), m("i", {
50
+ e(l).copy ? (r(), p("i", {
45
51
  key: 2,
46
52
  class: "fa fa-copy btn-icon",
47
- onClick: t[2] || (t[2] = p(
53
+ onClick: t[2] || (t[2] = c(
48
54
  //@ts-ignore
49
55
  (...n) => e(v) && e(v)(...n),
50
56
  ["prevent", "stop"]
@@ -59,9 +65,9 @@ const R = { class: "article-footer" }, g = /* @__PURE__ */ w({
59
65
  onConfirm: e(x)
60
66
  }, {
61
67
  reference: N(() => [
62
- P("i", {
68
+ R("i", {
63
69
  class: "fa fa-trash-alt btn-icon",
64
- onClick: t[3] || (t[3] = p(
70
+ onClick: t[3] || (t[3] = c(
65
71
  //@ts-ignore
66
72
  (...n) => e(d) && e(d)(...n),
67
73
  ["prevent", "stop"]
@@ -75,5 +81,5 @@ const R = { class: "article-footer" }, g = /* @__PURE__ */ w({
75
81
  }
76
82
  });
77
83
  export {
78
- g as default
84
+ I as default
79
85
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ f({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let m = i(() => import("./Text-DgZjeg-u.js")), s = a, { table: r, field: n, set: d, row: p, modelValue: l } = c(s);
13
+ let m = i(() => import("./Text-NRww74M3.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),
@@ -0,0 +1,53 @@
1
+ import { defineComponent as _, toRefs as v, ref as V, computed as x, resolveComponent as C, openBlock as S, createBlock as b, unref as o, isRef as k } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { g as B, S as D, h as R } from "./main-C1iALE1f.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const z = /* @__PURE__ */ _({
9
+ __name: "Autocomplete",
10
+ props: {
11
+ schema: {},
12
+ table: {},
13
+ field: {},
14
+ searchData: {},
15
+ modelValue: {}
16
+ },
17
+ emits: ["submit", "change", "update:modelValue"],
18
+ setup(p, { emit: i }) {
19
+ let m = i, d = p, { table: c, field: s, searchData: A, modelValue: f } = v(d), a = V([]), h = null, g = (l, e) => {
20
+ if (a.value.length) {
21
+ let t = a.value.filter((u) => D.containsIgnoreCase(l, u.value));
22
+ e(t);
23
+ return;
24
+ }
25
+ let n = { text: h, conditions: [] };
26
+ R.post(s.value.control.data.route, n).then(({ data: t }) => {
27
+ a.value = t.map((u) => ({ value: u.text })), e(a.value);
28
+ }).catch(() => {
29
+ e([]);
30
+ });
31
+ }, r = x({
32
+ get() {
33
+ return f.value;
34
+ },
35
+ set(l) {
36
+ m("update:modelValue", l), m("change", l);
37
+ }
38
+ });
39
+ return (l, e) => {
40
+ const n = C("el-autocomplete");
41
+ return S(), b(n, {
42
+ clearable: "",
43
+ placeholder: o(B)(o(c).name, o(s).name),
44
+ "fetch-suggestions": o(g),
45
+ modelValue: o(r),
46
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => k(r) ? r.value = t : r = t)
47
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ z as default
53
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as _, toRefs as v, ref as V, computed as x, resolveComponent as C, openBlock as S, createBlock as b, unref as o, isRef as k } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { g as B, S as R, h as w } from "./main-C1iALE1f.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const D = /* @__PURE__ */ _({
9
+ __name: "Autocomplete",
10
+ props: {
11
+ schema: {},
12
+ table: {},
13
+ field: {},
14
+ set: {},
15
+ row: {},
16
+ modelValue: {}
17
+ },
18
+ emits: ["submit", "change", "update:modelValue"],
19
+ setup(p, { emit: i }) {
20
+ let m = i, d = p, { table: c, field: s, set: A, modelValue: f } = v(d), a = V([]), g = null, h = (l, e) => {
21
+ if (a.value.length) {
22
+ let t = a.value.filter((u) => R.containsIgnoreCase(l, u.value));
23
+ e(t);
24
+ return;
25
+ }
26
+ let r = { text: g, conditions: [] };
27
+ w.post(s.value.control.data.route, r).then(({ data: t }) => {
28
+ a.value = t.map((u) => ({ value: u.text })), e(a.value);
29
+ }).catch(() => {
30
+ e([]);
31
+ });
32
+ }, n = x({
33
+ get() {
34
+ return f.value;
35
+ },
36
+ set(l) {
37
+ m("update:modelValue", l), m("change", l);
38
+ }
39
+ });
40
+ return (l, e) => {
41
+ const r = C("el-autocomplete");
42
+ return S(), b(r, {
43
+ clearable: "",
44
+ placeholder: o(B)(o(c).name, o(s).name),
45
+ "fetch-suggestions": o(h),
46
+ modelValue: o(n),
47
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => k(n) ? n.value = t : n = t)
48
+ }, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
49
+ };
50
+ }
51
+ });
52
+ export {
53
+ D as default
54
+ };
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Code-Q9ETcIfA.js")), s = a, { schema: m, table: n, field: d, set: p, row: f, modelValue: l } = c(s);
13
+ let r = i(() => import("./Code-Bi9Y45vV.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 { a as c } from "./main-COiaaxGk.js";
3
- const n = {};
4
- function o(t, a) {
2
+ import { o } from "./main-C1iALE1f.js";
3
+ const c = {};
4
+ function n(t, _) {
5
5
  return e(), r("div", null, "日历");
6
6
  }
7
- const l = /* @__PURE__ */ c(n, [["render", o]]);
7
+ const l = /* @__PURE__ */ o(c, [["render", n]]);
8
8
  export {
9
9
  l as default
10
10
  };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as o } from "vue";
2
+ import { useRouter as i, useRoute as n } from "vue-router";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/underscore.string-DVXD2SZo.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/file-saver-CwlpTZSc.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import { m as p, R as s } from "./main-C1iALE1f.js";
9
+ import "./assets/liquidjs-C-LVcoaY.js";
10
+ const h = /* @__PURE__ */ o({
11
+ __name: "Callback",
12
+ setup(m) {
13
+ let e = i(), t = n().query;
14
+ return (async () => {
15
+ if (!t.type) {
16
+ p.error("缺失type参数");
17
+ return;
18
+ }
19
+ let r = await s.sso.create(t.type.toString());
20
+ t.identity = JSON.parse(t.identity.toString()), r.login(t), e.push(t.return_url.toString());
21
+ })(), (r, u) => " 登录完毕,处理回调中... ";
22
+ }
23
+ });
24
+ export {
25
+ h as default
26
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as E, toRefs as w, ref as N, computed as R, resolveComponent as S, openBlock as i, createBlock as T, unref as a, isRef as j, withCtx as D, createElementVNode as I, createTextVNode as P, toDisplayString as c, createElementBlock as m, createCommentVNode as h } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { j as q, T as f, h as H } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const U = {
10
+ key: 0,
11
+ class: "cascader-suffix"
12
+ }, z = {
13
+ key: 0,
14
+ class: "cascader-length"
15
+ }, X = /* @__PURE__ */ E({
16
+ __name: "Cascader",
17
+ props: {
18
+ schema: {},
19
+ table: {},
20
+ field: {},
21
+ set: {},
22
+ row: {},
23
+ modelValue: {}
24
+ },
25
+ emits: ["submit", "change", "update:modelValue"],
26
+ setup(v, { emit: g }) {
27
+ let p = g, _ = v, { table: V, field: t, set: A, row: F, modelValue: b } = w(_), s = N(), d = null, x = () => {
28
+ s.value || (s.value = t.value.control.data.data);
29
+ let e = b.value, l = [];
30
+ return t.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((r) => {
31
+ let o = f.getParentsById(r, "value", s.value, "children", !0);
32
+ o.length > 0 && l.push(o.map((B) => B.value));
33
+ }) : f.getParentsById(e, "value", s.value, "children", !0).forEach((r) => {
34
+ l.push(r.value);
35
+ }), l;
36
+ }, C = (e) => {
37
+ let l;
38
+ t.value.control.multiple ? l = e.map((n) => n[n.length - 1]).join(",") : l = e[e.length - 1], p("update:modelValue", l), p("change", l);
39
+ }, y = (e) => {
40
+ e && (d = null, k());
41
+ }, k = () => {
42
+ let e = { text: d, conditions: [] };
43
+ t.value.control.data.conditions.forEach((l) => {
44
+ e.conditions.push({ name: l.name, value: null });
45
+ }), H.post(t.value.control.data.route, e).then(({ data: l }) => {
46
+ s.value = l;
47
+ });
48
+ }, u = R({
49
+ get() {
50
+ return x();
51
+ },
52
+ set(e) {
53
+ C(e);
54
+ }
55
+ });
56
+ return (e, l) => {
57
+ const n = S("el-cascader");
58
+ return i(), T(n, {
59
+ ref: "cascaderRef",
60
+ placeholder: a(q)(a(V).name, a(t).name),
61
+ filterable: "",
62
+ "collapse-tags": "",
63
+ "collapse-tags-tooltip": "",
64
+ "max-collapse-tags": 6,
65
+ options: a(s),
66
+ disabled: a(t).readonly,
67
+ props: { label: "text", checkStrictly: !0, multiple: a(t).control.multiple },
68
+ clearable: !a(t).control.required,
69
+ onVisibleChange: a(y),
70
+ modelValue: a(u),
71
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => j(u) ? u.value = r : u = r)
72
+ }, {
73
+ default: D(({ node: r, data: o }) => [
74
+ I("span", null, [
75
+ P(c(o.text), 1),
76
+ o.suffix ? (i(), m("span", U, "(" + c(o.suffix) + ")", 1)) : h("", !0)
77
+ ]),
78
+ o.children ? (i(), m("span", z, c(o.children.length), 1)) : h("", !0)
79
+ ]),
80
+ _: 1
81
+ }, 8, ["placeholder", "options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
82
+ };
83
+ }
84
+ });
85
+ export {
86
+ X as default
87
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent as y, toRefs as k, computed as c, 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 "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { T as B } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const C = { class: "text-cascader" }, S = {
10
+ key: 0,
11
+ class: "cascader-seperator"
12
+ }, R = /* @__PURE__ */ y({
13
+ __name: "Cascader",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: {}
21
+ },
22
+ emits: ["submit", "change"],
23
+ setup(_, { emit: V }) {
24
+ let v = _, { table: w, field: s, set: E, row: T, modelValue: o } = k(v), u = c(() => s.value.control.multiple ? o.value ? o.value.toString().split(",") : [] : o.value), i = c(() => {
25
+ if (u.value.length > 0) {
26
+ let p = s.value.control.data.data, a = [];
27
+ return u.value.forEach((r) => {
28
+ let l = B.getParentsById(r, "value", p, "children", !0);
29
+ l.length > 0 && a.push(l);
30
+ }), a;
31
+ }
32
+ return [];
33
+ });
34
+ return (p, a) => (e(), t("div", C, [
35
+ (e(!0), t(m, null, d(f(i), (r, l) => (e(), t("span", null, [
36
+ (e(!0), t(m, null, d(r, (n, g) => (e(), t("span", {
37
+ style: x({ color: n.color }),
38
+ key: n.value
39
+ }, h(n.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
40
+ l != f(i).length - 1 ? (e(), t("span", S, ",")) : b("", !0)
41
+ ]))), 256))
42
+ ]));
43
+ }
44
+ });
45
+ export {
46
+ R as default
47
+ };
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ p({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = u(() => import("./Dictionary-DKnp-UJn.js")), s = a, { schema: m, table: n, field: d, set: f, row: i, modelValue: l } = c(s);
13
+ let r = u(() => import("./Dictionary-CaXytFmK.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),