halo-pc 1.0.21 → 1.0.23

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-4S7jNdlM.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
  3. package/dist/Autocomplete-B9SJNrNq.js +53 -0
  4. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
  5. package/dist/Autocomplete-BZNDoWFj.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
  8. package/dist/Callback-xlj8oj2-.js +26 -0
  9. package/dist/Cascader-Cwi5mukb.js +87 -0
  10. package/dist/Cascader-D1RbjsMs.js +47 -0
  11. package/dist/Checkbox-DFnVivE9.js +76 -0
  12. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
  13. package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
  14. package/dist/Code-CEafFSlR.js +4 -0
  15. package/dist/Code-CTmcyEEu.js +60 -0
  16. package/dist/Code-DEOvcbgy.js +42 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
  18. package/dist/Column-zAYqqGgI.js +74 -0
  19. package/dist/Comment-BZTVtxyP.js +104 -0
  20. package/dist/Compare-DMDVEK_Q.js +63 -0
  21. package/dist/Compare-Dy_YDKN2.js +43 -0
  22. package/dist/Copy-KA_-9J5g.js +49 -0
  23. package/dist/Custom-BpQzSpoK.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.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-BdDLixcQ.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
  29. package/dist/Date-yqT5zILQ.js +43 -0
  30. package/dist/DateRange-CUQsaLxD.js +63 -0
  31. package/dist/DateTime-DcerQByM.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
  34. package/dist/Daterange-DY2i3jwP.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
  36. package/dist/Delete-CXnvlNw9.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
  38. package/dist/Dictionary-DtXqTf_k.js +59 -0
  39. package/dist/Email-ofMPw09E.js +54 -0
  40. package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
  41. package/dist/Image-BwJO-IEo.js +9 -0
  42. package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
  43. package/dist/Index-Bwy9Q7qy.js +4 -0
  44. package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
  45. package/dist/Index-Ch5_Jqsf.js +4 -0
  46. package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
  47. package/dist/Index-DnNVMYOZ.js +4 -0
  48. package/dist/Index-j9BffBys.js +178 -0
  49. package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
  54. package/dist/Int-BWcRpPzt.js +44 -0
  55. package/dist/Int-BYyavcrM.js +46 -0
  56. package/dist/List-BejoBArm.js +79 -0
  57. package/dist/Maintaince-Dlh2ICnO.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
  60. package/dist/Month-Cf8e0cin.js +43 -0
  61. package/dist/Month-DaYaF2WK.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
  63. package/dist/Paging-DoQ_cXwj.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
  66. package/dist/QueryApi-CPQ67lb4.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
  70. package/dist/RichText-Cj5QP79L.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
  75. package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
  76. package/dist/Select-DFLY8nGY.js +86 -0
  77. package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
  78. package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
  80. package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
  81. package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
  86. package/dist/Text-C05EoDxO.js +59 -0
  87. package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
  88. package/dist/Text-DqapEwUL.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
  90. package/dist/TextLink-CQ_46bry.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
  92. package/dist/Time-DxyveGcA.js +43 -0
  93. package/dist/Timeline-C1xOEcU4.js +59 -0
  94. package/dist/Tree-BK6p6Ake.js +122 -0
  95. package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
  96. package/dist/TreeNode-C84IoqkK.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
  99. package/dist/Upload-CK-ALAKV.js +72 -0
  100. package/dist/Upload-CRpCHz3m.js +150 -0
  101. package/dist/UploadApi-B-7WPVHD.js +20 -0
  102. package/dist/Year-BOL9ynRU.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.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-CnPQ_RYM.js +8948 -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-CnPQ_RYM.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-DDH5N323.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-CnPQ_RYM.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
  };
@@ -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-CnPQ_RYM.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
+ };
@@ -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-DqapEwUL.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,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-CnPQ_RYM.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-DEOvcbgy.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-CnPQ_RYM.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-CnPQ_RYM.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-CnPQ_RYM.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-CnPQ_RYM.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
+ };
@@ -0,0 +1,76 @@
1
+ import { defineComponent as N, toRefs as w, ref as h, computed as A, resolveComponent as g, openBlock as m, createElementBlock as f, createVNode as v, unref as t, 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
+ 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 D } from "./main-CnPQ_RYM.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const F = { class: "control-checkbox" }, L = { class: "check-all" }, O = /* @__PURE__ */ N({
10
+ __name: "Checkbox",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["change", "update:modelValue"],
20
+ setup(x, { emit: b }) {
21
+ let s = b, C = x, { field: d, table: T, set: j, modelValue: p } = w(C), r = h(!1), c = h(!1), y = (n) => {
22
+ o.value = n ? d.value.control.data.data.map((e) => e.value) : [], c.value = !1;
23
+ }, B = (n) => {
24
+ let e = d.value.control.data.data.map((u) => u.value), a = n.filter((u) => e.includes(u));
25
+ r.value = a.length == e.length, c.value = a.length > 0 && a.length < e.length, o.value = a;
26
+ }, o = A({
27
+ get() {
28
+ return p.value ? p.value.split(",") : [];
29
+ },
30
+ set(n) {
31
+ let e = n.toString();
32
+ s("update:modelValue", e), s("change", e);
33
+ }
34
+ });
35
+ return (n, e) => {
36
+ const a = g("el-checkbox"), u = g("el-checkbox-group");
37
+ return m(), f("div", F, [
38
+ v(u, {
39
+ onChange: t(B),
40
+ modelValue: t(o),
41
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => _(o) ? o.value = l : o = l)
42
+ }, {
43
+ default: i(() => [
44
+ (m(!0), f(E, null, R(t(d).control.data.data, (l) => (m(), S(a, {
45
+ disabled: t(d).control.readonly,
46
+ value: l.value,
47
+ key: l.value
48
+ }, {
49
+ default: i(() => [
50
+ V(k(l.text), 1)
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["disabled", "value"]))), 128))
54
+ ]),
55
+ _: 1
56
+ }, 8, ["onChange", "modelValue"]),
57
+ U("div", L, [
58
+ v(a, {
59
+ indeterminate: t(c),
60
+ onChange: t(y),
61
+ modelValue: t(r),
62
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => _(r) ? r.value = l : r = l)
63
+ }, {
64
+ default: i(() => [
65
+ V(k(t(D)("common.select_all")), 1)
66
+ ]),
67
+ _: 1
68
+ }, 8, ["indeterminate", "onChange", "modelValue"])
69
+ ])
70
+ ]);
71
+ };
72
+ }
73
+ });
74
+ export {
75
+ O as default
76
+ };