halo-pc 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Article-BW8eAB0-.js +197 -0
- package/dist/assets/ArticleFooter-Bgcgo5ul.js +84 -0
- package/dist/assets/Autocomplete-04DZEjsg.js +54 -0
- package/dist/assets/Autocomplete-BlyjnHzg.js +53 -0
- package/dist/assets/Autocomplete-CMrWQUxn.js +27 -0
- package/dist/assets/CSharp-Bs-1EWWR.js +27 -0
- package/dist/assets/Calender-dOG_jl9u.js +10 -0
- package/dist/assets/Callback-BqGRGNtK.js +25 -0
- package/dist/assets/Cascader-CnequxoL.js +86 -0
- package/dist/assets/Cascader-IJ3jft2B.js +46 -0
- package/dist/assets/Checkbox-B43ESOxJ.js +27 -0
- package/dist/assets/Checkbox-DjvF4NCz.js +75 -0
- package/dist/assets/Code-50tqkJIE.js +41 -0
- package/dist/assets/Code-CDnAXHXb.js +4 -0
- package/dist/assets/Code-CPcLgZ92.js +30 -0
- package/dist/assets/Code-DrzngizU.js +59 -0
- package/dist/assets/Code.vue_vue_type_style_index_0_lang-CDxbuceH.js +64 -0
- package/dist/assets/Color--mRQSe4e.js +34 -0
- package/dist/assets/Color-CLRn-pIY.js +22 -0
- package/dist/assets/Column-BTaMkPuH.js +73 -0
- package/dist/assets/Comment-BHXA8N0K.js +105 -0
- package/dist/assets/Compare-BxyBlcHX.js +62 -0
- package/dist/assets/Compare-DydxjkYG.js +42 -0
- package/dist/assets/Copy-GxnvB2Sm.js +48 -0
- package/dist/assets/Custom-BxcKWpSP.js +54 -0
- package/dist/assets/DataExport-BcruPHEM.js +4 -0
- package/dist/assets/DataExport.vue_vue_type_script_setup_true_lang-C6tWZ8mB.js +113 -0
- package/dist/assets/DataImport-CdXvwlli.js +4 -0
- package/dist/assets/DataImport.vue_vue_type_script_setup_true_lang-D4OmNvny.js +177 -0
- package/dist/assets/Date-5U1z7UXl.js +27 -0
- package/dist/assets/Date-OfQxaoDL.js +42 -0
- package/dist/assets/DateRange-DEvme6Wz.js +62 -0
- package/dist/assets/DateRange-W7uK-0Q3.js +19 -0
- package/dist/assets/DateTime-ByF4OyPL.js +43 -0
- package/dist/assets/DateTime-C_l10Os6.js +27 -0
- package/dist/assets/DateTimeRange-GpUXpNlL.js +66 -0
- package/dist/assets/Daterange-D1OvMMvQ.js +62 -0
- package/dist/assets/Decimal-IkGfpE-p.js +36 -0
- package/dist/assets/Decimal-QPElgXM5.js +27 -0
- package/dist/assets/Delete-DifJD2iW.js +61 -0
- package/dist/assets/Detail-6p4Jgu5U.js +73 -0
- package/dist/assets/Dictionary-CvI_7FO8.js +60 -0
- package/dist/assets/Email-B-nUtHIg.js +53 -0
- package/dist/assets/Email-BsqMbKuf.js +19 -0
- package/dist/assets/File-CTboPD47.js +162 -0
- package/dist/assets/Image-CTKxOM9T.js +9 -0
- package/dist/assets/Index-BBRyKHV1.js +178 -0
- package/dist/assets/Index-BY6EHWPo.js +4 -0
- package/dist/assets/Index-Bdb8xf8A.js +75 -0
- package/dist/assets/Index-Br5wtQCU.js +4 -0
- package/dist/assets/Index-DDpdqPUT.js +4 -0
- package/dist/assets/Index-DGICr-zO.js +4 -0
- package/dist/assets/Index-Dat74cWT.js +4 -0
- package/dist/assets/Index-aTHMqHdZ.js +4 -0
- package/dist/assets/Index.vue_vue_type_script_setup_true_lang-CKXjZbZm.js +82 -0
- package/dist/assets/Index.vue_vue_type_script_setup_true_lang-c_kmud9W.js +68 -0
- package/dist/assets/Install-xTa0b51o.js +133 -0
- package/dist/assets/Int-BFP6vIcR.js +19 -0
- package/dist/assets/Int-CWb_A-nY.js +43 -0
- package/dist/assets/Int-CdT_UEOL.js +46 -0
- package/dist/assets/List-CNlfibdL.js +75 -0
- package/dist/assets/Maintaince-DoaN5v4p.js +19 -0
- package/dist/assets/Markdown-DInji1_q.js +37 -0
- package/dist/assets/Markdown-YEBerW7I.js +27 -0
- package/dist/assets/Month-B92uGMxO.js +43 -0
- package/dist/assets/Month-CCcnnqgz.js +27 -0
- package/dist/assets/Month-CbIVJc94.js +42 -0
- package/dist/assets/Normal-CWDfA3Bl.js +259 -0
- package/dist/assets/Paging-DQes1B_A.js +98 -0
- package/dist/assets/PagingHeader-BDGFzyvm.js +147 -0
- package/dist/assets/PagingRow-DSlSGiAV.js +72 -0
- package/dist/assets/Password-C06RyIsi.js +55 -0
- package/dist/assets/Password-Cqm5_jcE.js +24 -0
- package/dist/assets/Progress-C_S9K_bo.js +25 -0
- package/dist/assets/Progress-pdUnRwmC.js +34 -0
- package/dist/assets/Racebar-BTin0dPn.js +168 -0
- package/dist/assets/Radio-BXCq0-e0.js +27 -0
- package/dist/assets/Radio-GcyYOxn0.js +47 -0
- package/dist/assets/Rate-DJMyAd6-.js +34 -0
- package/dist/assets/Rate-DxB6xeV6.js +34 -0
- package/dist/assets/Register-BmxG2pD4.js +201 -0
- package/dist/assets/RichText-COdDClMp.js +121 -0
- package/dist/assets/RichText-MkjGGBqR.js +22 -0
- package/dist/assets/SearchForm-BgOPf7uG.js +4 -0
- package/dist/assets/SearchForm.vue_vue_type_style_index_0_lang-Cj6tbcvd.js +147 -0
- package/dist/assets/SearchHeader-nnRzvdrx.js +4 -0
- package/dist/assets/SearchHeader.vue_vue_type_style_index_0_lang-CHx_o3cL.js +69 -0
- package/dist/assets/Select-CV1JKkID.js +27 -0
- package/dist/assets/Select-DQTFln0r.js +85 -0
- package/dist/assets/Select-vBFgN0sw.js +122 -0
- package/dist/assets/Single-6DxzOqUa.js +321 -0
- package/dist/assets/Statistic-C9-x_5VI.js +78 -0
- package/dist/assets/Statistic-DOqjwV9b.js +157 -0
- package/dist/assets/Stock-B7mAFNC_.js +4 -0
- package/dist/assets/Stock-CDNRWrLy.js +30 -0
- package/dist/assets/Stock.vue_vue_type_style_index_0_lang-12CCzO2g.js +303 -0
- package/dist/assets/Switch-BY-0wSNs.js +27 -0
- package/dist/assets/Switch-Brwh143O.js +50 -0
- package/dist/assets/Table-BSbpncPe.js +225 -0
- package/dist/assets/Table-DH-ateim.js +274 -0
- package/dist/assets/Text-C-mzSg7d.js +4 -0
- package/dist/assets/Text-Du3Mfs9M.js +57 -0
- package/dist/assets/Text-ux7pj9CL.js +53 -0
- package/dist/assets/Text.vue_vue_type_style_index_0_lang-BsK-PxEq.js +57 -0
- package/dist/assets/TextLink-C2dFJ1xR.js +64 -0
- package/dist/assets/Textarea-6IWWDV6p.js +37 -0
- package/dist/assets/Textarea-DfMegvsQ.js +28 -0
- package/dist/assets/Time-BdsPTOwX.js +42 -0
- package/dist/assets/Timeline-BJE5-MDV.js +60 -0
- package/dist/assets/Tree-CPYvQpRc.js +295 -0
- package/dist/assets/Tree-uvDeFVk4.js +124 -0
- package/dist/assets/TreeNode-8P3FykA1.js +39 -0
- package/dist/assets/Tree_Old-h__WmqFA.js +11 -0
- package/dist/assets/Update-DyH-b15b.js +58 -0
- package/dist/assets/UpdateChild-BLL357Mm.js +91 -0
- package/dist/assets/Upload-BG5kTc46.js +70 -0
- package/dist/assets/Upload-z8n9VoPU.js +149 -0
- package/dist/assets/Year-DMCePo2k.js +46 -0
- package/dist/assets/Year-DQf2Vu7j.js +27 -0
- package/dist/assets/main-DDCxKbDF.js +12627 -0
- package/dist/main.css +1 -0
- package/dist/main.js +73 -0
- package/dist/vendor/clipboard-Ng1iAUpU.js +504 -0
- package/dist/vendor/clone-B9z63rns.js +136 -0
- package/dist/vendor/element-plus-BNctWhlD.js +540 -0
- package/dist/vendor/file-saver-ypit2jx5.js +76 -0
- package/dist/vendor/intro.js-BUb8U_EJ.js +2040 -0
- package/dist/vendor/liquidjs-CyjuyKnF.js +3397 -0
- package/dist/vendor/moment-CwOqp704.js +2589 -0
- package/dist/vendor/sprintf-js-CI46yikS.js +145 -0
- package/dist/vendor/underscore-CK1gjYcm.js +1073 -0
- package/dist/vendor/underscore.string-BevGGlfe.js +798 -0
- package/dist/vendor/util-deprecate-DyPMeoo2.js +33 -0
- package/esm/comp/business/Condition.vue.d.ts +5 -4
- package/esm/comp/business/Drawer.vue.d.ts +6 -6
- package/esm/comp/business/Feedback.vue.d.ts +3 -96
- package/esm/comp/business/Switch.vue.d.ts +2 -1
- package/esm/comp/common/Captcha.vue.d.ts +3 -6
- package/esm/comp/common/Debug.vue.d.ts +7 -11
- package/esm/comp/common/Editable.vue.d.ts +7 -11
- package/esm/comp/common/Loading.vue.d.ts +7 -11
- package/esm/comp/common/MouseContext.vue.d.ts +2 -1
- package/esm/comp/common/Particles.vue.d.ts +2 -1
- package/esm/comp/common/Resizer.vue.d.ts +10 -13
- package/esm/comp/common/Table.vue.d.ts +13 -22
- package/esm/comp/common/TableColumn.vue.d.ts +9 -13
- package/esm/comp/control/Autocomplete.vue.d.ts +4 -3
- package/esm/comp/control/Cascader.vue.d.ts +5 -6
- package/esm/comp/control/Checkbox.vue.d.ts +3 -2
- package/esm/comp/control/Code.vue.d.ts +4 -3
- package/esm/comp/control/Color.vue.d.ts +4 -3
- package/esm/comp/control/Compare.vue.d.ts +5 -6
- package/esm/comp/control/Date.vue.d.ts +4 -3
- package/esm/comp/control/DateRange.vue.d.ts +4 -3
- package/esm/comp/control/DateTime.vue.d.ts +4 -3
- package/esm/comp/control/DateTimeRange.vue.d.ts +4 -3
- package/esm/comp/control/Decimal.vue.d.ts +4 -3
- package/esm/comp/control/Email.vue.d.ts +4 -3
- package/esm/comp/control/Image.vue.d.ts +2 -1
- package/esm/comp/control/Index.vue.d.ts +5 -6
- package/esm/comp/control/Int.vue.d.ts +4 -3
- package/esm/comp/control/Markdown.vue.d.ts +4 -3
- package/esm/comp/control/Month.vue.d.ts +4 -3
- package/esm/comp/control/Password.vue.d.ts +4 -3
- package/esm/comp/control/Progress.vue.d.ts +4 -3
- package/esm/comp/control/Radio.vue.d.ts +4 -3
- package/esm/comp/control/Rate.vue.d.ts +4 -3
- package/esm/comp/control/RichText.vue.d.ts +5 -3
- package/esm/comp/control/Select.vue.d.ts +5 -6
- package/esm/comp/control/Switch.vue.d.ts +5 -4
- package/esm/comp/control/Text.vue.d.ts +4 -3
- package/esm/comp/control/Textarea.vue.d.ts +4 -3
- package/esm/comp/control/Time.vue.d.ts +4 -3
- package/esm/comp/control/Upload.vue.d.ts +5 -6
- package/esm/comp/control/Year.vue.d.ts +4 -3
- package/esm/comp/driver/Crud.vue.d.ts +11 -744
- package/esm/comp/driver/Index.vue.d.ts +8 -1416
- package/esm/comp/driver/Picker.vue.d.ts +7 -94
- package/esm/comp/global/HeaderTab.vue.d.ts +7 -11
- package/esm/comp/global/Menu.vue.d.ts +3 -261
- package/esm/comp/global/MenuItem.vue.d.ts +3 -185
- package/esm/comp/global/MissComponent.vue.d.ts +7 -11
- package/esm/comp/global/SideTab.vue.d.ts +8 -12
- package/esm/comp/global/Window.vue.d.ts +7 -8
- package/esm/comp/header/Breadcrumb.vue.d.ts +2 -1
- package/esm/comp/header/Changes.vue.d.ts +2 -1
- package/esm/comp/header/Hamburger.vue.d.ts +3 -2
- package/esm/comp/header/HeaderRight.vue.d.ts +3 -22
- package/esm/comp/header/Index.vue.d.ts +7 -11
- package/esm/comp/header/Log.vue.d.ts +2 -1
- package/esm/comp/header/Logo.vue.d.ts +3 -2
- package/esm/comp/header/Refresh.vue.d.ts +3 -2
- package/esm/comp/header/Setting.vue.d.ts +2 -1
- package/esm/comp/layout/Desktop.vue.d.ts +2 -110
- package/esm/comp/layout/Index.vue.d.ts +7 -469
- package/esm/comp/layout/Side.vue.d.ts +5 -6
- package/esm/comp/layout/Top.vue.d.ts +3 -355
- package/esm/comp/list/Calender.vue.d.ts +2 -1
- package/esm/comp/list/Racebar.vue.d.ts +3 -32
- package/esm/comp/list/Statistic.vue.d.ts +3 -32
- package/esm/comp/list/Stock.vue.d.ts +2 -3
- package/esm/comp/list/Timeline.vue.d.ts +2 -1
- package/esm/comp/list/Tree.vue.d.ts +3 -9
- package/esm/comp/page/Column.vue.d.ts +3 -2
- package/esm/comp/page/Custom.vue.d.ts +2 -1
- package/esm/comp/page/Delete.vue.d.ts +3 -2
- package/esm/comp/page/Index.vue.d.ts +2 -1
- package/esm/comp/page/List.vue.d.ts +3 -4
- package/esm/comp/page/Paging.vue.d.ts +3 -48
- package/esm/comp/page/Single.vue.d.ts +3 -2
- package/esm/comp/paging/Article.vue.d.ts +3 -33
- package/esm/comp/paging/Code.vue.d.ts +2 -1
- package/esm/comp/paging/DataExport.vue.d.ts +3 -4
- package/esm/comp/paging/DataImport.vue.d.ts +2 -1
- package/esm/comp/paging/File.vue.d.ts +2 -1
- package/esm/comp/paging/Index.vue.d.ts +3 -4
- package/esm/comp/paging/SearchForm.vue.d.ts +5 -7
- package/esm/comp/paging/SearchHeader.vue.d.ts +5 -6
- package/esm/comp/paging/Table.vue.d.ts +4 -563
- package/esm/comp/panel/Group.vue.d.ts +7 -11
- package/esm/comp/panel/Header.vue.d.ts +3 -2
- package/esm/comp/panel/Operation.vue.d.ts +10 -17
- package/esm/comp/panel/Panel.vue.d.ts +14 -15
- package/esm/comp/panel/Shrink.vue.d.ts +8 -12
- package/esm/comp/partial/ArticleFooter.vue.d.ts +5 -4
- package/esm/comp/partial/Detail.vue.d.ts +3 -2
- package/esm/comp/partial/PagingHeader.vue.d.ts +6 -5
- package/esm/comp/partial/PagingRow.vue.d.ts +5 -4
- package/esm/comp/partial/TreeNode.vue.d.ts +2 -1
- package/esm/comp/partial/Update.vue.d.ts +3 -2
- package/esm/comp/partial/UpdateChild.vue.d.ts +4 -3
- package/esm/comp/search/Autocomplete.vue.d.ts +4 -3
- package/esm/comp/search/Daterange.vue.d.ts +2 -1
- package/esm/comp/search/Index.vue.d.ts +4 -3
- package/esm/comp/search/Int.vue.d.ts +4 -3
- package/esm/comp/search/Month.vue.d.ts +4 -3
- package/esm/comp/search/Select.vue.d.ts +5 -6
- package/esm/comp/search/Text.vue.d.ts +7 -5
- package/esm/comp/single/Code.vue.d.ts +5 -4
- package/esm/comp/single/Comment.vue.d.ts +2 -1
- package/esm/comp/single/Index.vue.d.ts +7 -8
- package/esm/comp/single/Normal.vue.d.ts +5 -7
- package/esm/comp/single/Statistic.vue.d.ts +2 -1
- package/esm/comp/single/Stock.vue.d.ts +2 -1
- package/esm/comp/single/Table.vue.d.ts +5 -498
- package/esm/comp/single/Tree.vue.d.ts +3 -5
- package/esm/comp/single/Tree_Old.vue.d.ts +2 -1
- package/esm/comp/text/Autocomplete.vue.d.ts +2 -1
- package/esm/comp/text/CSharp.vue.d.ts +2 -1
- package/esm/comp/text/Cascader.vue.d.ts +5 -4
- package/esm/comp/text/Checkbox.vue.d.ts +2 -1
- package/esm/comp/text/Code.vue.d.ts +2 -1
- package/esm/comp/text/Color.vue.d.ts +2 -1
- package/esm/comp/text/Compare.vue.d.ts +2 -1
- package/esm/comp/text/Copy.vue.d.ts +9 -12
- package/esm/comp/text/Date.vue.d.ts +2 -1
- package/esm/comp/text/DateRange.vue.d.ts +2 -1
- package/esm/comp/text/DateTime.vue.d.ts +2 -1
- package/esm/comp/text/Decimal.vue.d.ts +2 -1
- package/esm/comp/text/Dictionary.vue.d.ts +5 -4
- package/esm/comp/text/Email.vue.d.ts +2 -1
- package/esm/comp/text/Index.vue.d.ts +4 -3
- package/esm/comp/text/Int.vue.d.ts +2 -1
- package/esm/comp/text/Markdown.vue.d.ts +2 -1
- package/esm/comp/text/Month.vue.d.ts +2 -1
- package/esm/comp/text/Password.vue.d.ts +2 -1
- package/esm/comp/text/Progress.vue.d.ts +2 -1
- package/esm/comp/text/Radio.vue.d.ts +2 -1
- package/esm/comp/text/Rate.vue.d.ts +4 -3
- package/esm/comp/text/RichText.vue.d.ts +2 -1
- package/esm/comp/text/Select.vue.d.ts +2 -1
- package/esm/comp/text/Switch.vue.d.ts +2 -1
- package/esm/comp/text/Text.vue.d.ts +2 -3
- package/esm/comp/text/TextLink.vue.d.ts +13 -15
- package/esm/comp/text/Textarea.vue.d.ts +2 -1
- package/esm/comp/text/Upload.vue.d.ts +2 -1
- package/esm/comp/text/Year.vue.d.ts +2 -1
- package/esm/view/help/401.vue.d.ts +2 -1
- package/esm/view/help/404.vue.d.ts +2 -1
- package/esm/view/help/Install.vue.d.ts +2 -3
- package/esm/view/help/Maintaince.vue.d.ts +2 -1
- package/esm/view/help/Upgrade.vue.d.ts +2 -1
- package/esm/view/sso/Callback.vue.d.ts +2 -1
- package/esm/view/sso/Index.vue.d.ts +2 -5
- package/esm/view/sso/Register.vue.d.ts +2 -33
- package/esm/vite.config.d.ts +1 -5
- package/package.json +17 -17
@@ -0,0 +1,197 @@
|
|
1
|
+
import { defineComponent as le, toRefs as oe, ref as c, onMounted as ae, computed as ne, resolveComponent as U, createElementBlock as v, openBlock as u, createBlock as k, createCommentVNode as _, createVNode as C, createElementVNode as i, unref as e, normalizeStyle as re, withCtx as w, Fragment as se, renderList as ie, withModifiers as E, toDisplayString as d, resolveDynamicComponent as ue, createTextVNode as M } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { b as ce, U as h, f as de, c as me, I as pe, D as N, R as fe } from "./main-DDCxKbDF.js";
|
8
|
+
import { _ as ge } from "./SearchForm.vue_vue_type_style_index_0_lang-Cj6tbcvd.js";
|
9
|
+
const ve = { class: "article-layout" }, he = ["href", "onClick"], _e = ["src"], ye = { class: "article-title" }, ke = {
|
10
|
+
key: 0,
|
11
|
+
class: "article-content"
|
12
|
+
}, Ce = { class: "article-time" }, we = {
|
13
|
+
key: 1,
|
14
|
+
class: "article-view-count"
|
15
|
+
}, Re = ["href"], be = { class: "title" }, xe = ["href"], Ne = /* @__PURE__ */ le({
|
16
|
+
__name: "Article",
|
17
|
+
props: {
|
18
|
+
searchData: {},
|
19
|
+
module: {},
|
20
|
+
schema: {},
|
21
|
+
table: {},
|
22
|
+
layout: {},
|
23
|
+
next: {},
|
24
|
+
set: {},
|
25
|
+
url: {},
|
26
|
+
win: {}
|
27
|
+
},
|
28
|
+
emits: ["page-change", "navigate", "search", "succeed", "close"],
|
29
|
+
setup(T, { expose: V, emit: K }) {
|
30
|
+
let m = K, F = T, { module: I, schema: P, table: n, layout: r, next: p, set: R, searchData: j } = oe(F), b = c(), y = c(), x = c(), $ = c(), S = c();
|
31
|
+
c({ layout: "prev, pager, next", count: 5 });
|
32
|
+
let o = c({ page: null, url: null, row: null, if: !1, to: null }), D = (t) => {
|
33
|
+
g("insert", null, t);
|
34
|
+
}, A = (t, l) => {
|
35
|
+
g("detail", t, l);
|
36
|
+
}, L = (t, l) => {
|
37
|
+
g("update", t, l);
|
38
|
+
}, q = (t, l) => {
|
39
|
+
g("copy", t, l);
|
40
|
+
}, G = (t, l) => {
|
41
|
+
g("delete", t, l);
|
42
|
+
}, J = (t) => {
|
43
|
+
let l = t.map((s) => s[n.value.key.name]);
|
44
|
+
N.http.post(p.value.delete.route, l).then((s) => {
|
45
|
+
N.messenger.success(s.message), z();
|
46
|
+
});
|
47
|
+
}, g = (t, l, s) => {
|
48
|
+
let f = H(t, l);
|
49
|
+
s.ctrlKey ? (o.value.row = null, m("navigate", f)) : (o.value.to = s.altKey ? "body" : null, o.value.page = t, o.value.url = f, o.value.row = l, o.value.if = !0);
|
50
|
+
}, H = (t, l = null) => {
|
51
|
+
let s = `${p.value[t].route}`;
|
52
|
+
if (l != null) {
|
53
|
+
let f = l[n.value.key.name];
|
54
|
+
s += `?id=${f}`;
|
55
|
+
}
|
56
|
+
return s;
|
57
|
+
}, O = () => {
|
58
|
+
o.value.if = !1, m("close");
|
59
|
+
}, z = (t = null) => {
|
60
|
+
o.value.if = !1, m("succeed", t);
|
61
|
+
}, Q = (t) => {
|
62
|
+
m("page-change", t);
|
63
|
+
}, W = (t) => {
|
64
|
+
m("navigate", t);
|
65
|
+
}, X = () => {
|
66
|
+
m("search");
|
67
|
+
}, Y = () => {
|
68
|
+
B();
|
69
|
+
}, Z = (t, l) => {
|
70
|
+
fe.module.invokeKeyboard(S.value, t, l);
|
71
|
+
}, ee = (t) => {
|
72
|
+
B();
|
73
|
+
}, B = () => {
|
74
|
+
if (y.value == null)
|
75
|
+
return;
|
76
|
+
let t = h.dom.getHeight(b.value), l = h.dom.getHeight([y.value.$el, x.value]);
|
77
|
+
$.value = t - l;
|
78
|
+
};
|
79
|
+
ae(() => {
|
80
|
+
});
|
81
|
+
let te = ne(() => {
|
82
|
+
let t = `/${n.value.name}/article-footer`;
|
83
|
+
return ce.component.getComponent(t, "partial", "article-footer");
|
84
|
+
});
|
85
|
+
return V({ keyboard: Z, resize: ee }), (t, l) => {
|
86
|
+
const s = U("el-scrollbar"), f = U("el-pagination");
|
87
|
+
return u(), v("div", {
|
88
|
+
ref_key: "pagingRef",
|
89
|
+
ref: b,
|
90
|
+
class: "paging-article"
|
91
|
+
}, [
|
92
|
+
e(n).search.length > 0 ? (u(), k(ge, {
|
93
|
+
key: 0,
|
94
|
+
ref_key: "searchRef",
|
95
|
+
ref: y,
|
96
|
+
schema: e(P),
|
97
|
+
table: e(n),
|
98
|
+
layout: e(r),
|
99
|
+
"search-data": e(j),
|
100
|
+
onSubmit: e(X),
|
101
|
+
onMounted: e(Y)
|
102
|
+
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit", "onMounted"])) : _("", !0),
|
103
|
+
C(s, {
|
104
|
+
class: "article-scroller",
|
105
|
+
style: re({ height: e($) + "px" })
|
106
|
+
}, {
|
107
|
+
default: w(() => [
|
108
|
+
i("div", ve, [
|
109
|
+
(u(!0), v(se, null, ie(e(R)[e(n).name], (a) => (u(), v("a", {
|
110
|
+
class: "article",
|
111
|
+
href: `${e(p).detail.route}?id=${a[e(n).key.name]}`,
|
112
|
+
onClick: E(($e) => e(W)(`${e(p).detail.route}?id=${a[e(n).key.name]}`), ["prevent"]),
|
113
|
+
key: a[e(n).key.name]
|
114
|
+
}, [
|
115
|
+
i("img", {
|
116
|
+
class: "article-image",
|
117
|
+
src: a[e(r).image]
|
118
|
+
}, null, 8, _e),
|
119
|
+
i("div", ye, d(a[e(r).title]), 1),
|
120
|
+
e(h).html.getText(a[e(r).content]) ? (u(), v("div", ke, d(e(h).html.getText(a[e(r).content])), 1)) : _("", !0),
|
121
|
+
i("div", Ce, d(a[e(r).time]), 1),
|
122
|
+
a[e(r).viewCount] ? (u(), v("div", we, d(a[e(r).viewCount]), 1)) : _("", !0),
|
123
|
+
(u(), k(ue(e(te)), {
|
124
|
+
table: e(n),
|
125
|
+
next: e(p),
|
126
|
+
set: e(R),
|
127
|
+
row: a,
|
128
|
+
onPreview: e(A),
|
129
|
+
onEdit: e(L),
|
130
|
+
onCopy: e(q),
|
131
|
+
onBeforeRemove: e(G),
|
132
|
+
onRemove: e(J)
|
133
|
+
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove"]))
|
134
|
+
], 8, he))), 128)),
|
135
|
+
i("a", {
|
136
|
+
href: e(H)("insert"),
|
137
|
+
class: "article-add",
|
138
|
+
onClick: l[0] || (l[0] = E(
|
139
|
+
//@ts-ignore
|
140
|
+
(...a) => e(D) && e(D)(...a),
|
141
|
+
["prevent"]
|
142
|
+
))
|
143
|
+
}, [
|
144
|
+
l[2] || (l[2] = i("i", { class: "fa fa-plus" }, null, -1)),
|
145
|
+
M(" 添加新" + d(e(n).title), 1)
|
146
|
+
], 8, Re)
|
147
|
+
])
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["style"]),
|
151
|
+
i("div", {
|
152
|
+
ref_key: "footerRef",
|
153
|
+
ref: x,
|
154
|
+
class: "article-bottom"
|
155
|
+
}, [
|
156
|
+
C(f, {
|
157
|
+
background: "",
|
158
|
+
layout: "total, prev, pager, next, jumper",
|
159
|
+
"current-page": e(r).page,
|
160
|
+
"page-size": e(r).size,
|
161
|
+
total: e(r).count,
|
162
|
+
onCurrentChange: e(Q)
|
163
|
+
}, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
|
164
|
+
], 512),
|
165
|
+
e(o).if ? (u(), k(e(de), {
|
166
|
+
key: 1,
|
167
|
+
to: e(o).to,
|
168
|
+
width: `${e(I).width ?? "60%"}`,
|
169
|
+
onClose: l[1] || (l[1] = (a) => e(o).if = !1)
|
170
|
+
}, {
|
171
|
+
title: w(() => [
|
172
|
+
i("div", be, [
|
173
|
+
M(d(e(p)[e(o).page].title) + " ", 1),
|
174
|
+
i("a", {
|
175
|
+
class: "drawer-copy",
|
176
|
+
href: e(h).url.getToUrl(e(o).url)
|
177
|
+
}, d(e(pe).t("common.link")), 9, xe)
|
178
|
+
])
|
179
|
+
]),
|
180
|
+
default: w(() => [
|
181
|
+
C(e(me), {
|
182
|
+
ref_key: "pageRef",
|
183
|
+
ref: S,
|
184
|
+
url: e(o).url,
|
185
|
+
onSucceed: e(z),
|
186
|
+
onClose: e(O)
|
187
|
+
}, null, 8, ["url", "onSucceed", "onClose"])
|
188
|
+
]),
|
189
|
+
_: 1
|
190
|
+
}, 8, ["to", "width"])) : _("", !0)
|
191
|
+
], 512);
|
192
|
+
};
|
193
|
+
}
|
194
|
+
});
|
195
|
+
export {
|
196
|
+
Ne as default
|
197
|
+
};
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { defineComponent as w, toRefs as _, resolveComponent as B, createElementBlock as p, openBlock as r, createCommentVNode as c, createBlock as E, unref as e, withModifiers as s, withCtx as I, createElementVNode as N } from "vue";
|
2
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
3
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
4
|
+
import "../vendor/clone-B9z63rns.js";
|
5
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
6
|
+
import "../vendor/moment-CwOqp704.js";
|
7
|
+
import { I as a } from "./main-DDCxKbDF.js";
|
8
|
+
const R = { class: "article-footer" }, G = /* @__PURE__ */ w({
|
9
|
+
__name: "ArticleFooter",
|
10
|
+
props: {
|
11
|
+
table: {},
|
12
|
+
next: {},
|
13
|
+
set: {},
|
14
|
+
row: {}
|
15
|
+
},
|
16
|
+
emits: ["preview", "edit", "copy", "before-remove", "remove"],
|
17
|
+
setup(b, { emit: k }) {
|
18
|
+
let i = k, C = b, { table: V, next: l, set: A, row: m } = _(C), f = (o) => {
|
19
|
+
i("preview", m.value, o);
|
20
|
+
}, u = (o) => {
|
21
|
+
i("edit", m.value, o);
|
22
|
+
}, v = (o) => {
|
23
|
+
i("copy", m.value, o);
|
24
|
+
}, d = (o) => {
|
25
|
+
}, x = () => {
|
26
|
+
i("remove", [m.value]);
|
27
|
+
};
|
28
|
+
return (o, t) => {
|
29
|
+
const y = B("el-popconfirm");
|
30
|
+
return r(), p("div", R, [
|
31
|
+
e(l).detail ? (r(), p("i", {
|
32
|
+
key: 0,
|
33
|
+
class: "fa fa-search-plus btn-icon",
|
34
|
+
onClick: t[0] || (t[0] = s(
|
35
|
+
//@ts-ignore
|
36
|
+
(...n) => e(f) && e(f)(...n),
|
37
|
+
["prevent", "stop"]
|
38
|
+
))
|
39
|
+
})) : c("", !0),
|
40
|
+
e(l).update ? (r(), p("i", {
|
41
|
+
key: 1,
|
42
|
+
class: "fa fa-pencil btn-icon",
|
43
|
+
onClick: t[1] || (t[1] = s(
|
44
|
+
//@ts-ignore
|
45
|
+
(...n) => e(u) && e(u)(...n),
|
46
|
+
["prevent", "stop"]
|
47
|
+
))
|
48
|
+
})) : c("", !0),
|
49
|
+
e(l).copy ? (r(), p("i", {
|
50
|
+
key: 2,
|
51
|
+
class: "fa fa-copy btn-icon",
|
52
|
+
onClick: t[2] || (t[2] = s(
|
53
|
+
//@ts-ignore
|
54
|
+
(...n) => e(v) && e(v)(...n),
|
55
|
+
["prevent", "stop"]
|
56
|
+
))
|
57
|
+
})) : c("", !0),
|
58
|
+
e(l).delete ? (r(), E(y, {
|
59
|
+
key: 3,
|
60
|
+
width: 180,
|
61
|
+
title: e(a).t("common.confirm_delete"),
|
62
|
+
"confirm-button-text": e(a).t("common.confirm"),
|
63
|
+
"cancel-button-text": e(a).t("common.cancel"),
|
64
|
+
onConfirm: e(x)
|
65
|
+
}, {
|
66
|
+
reference: I(() => [
|
67
|
+
N("i", {
|
68
|
+
class: "fa fa-trash-alt btn-icon",
|
69
|
+
onClick: t[3] || (t[3] = s(
|
70
|
+
//@ts-ignore
|
71
|
+
(...n) => e(d) && e(d)(...n),
|
72
|
+
["prevent", "stop"]
|
73
|
+
))
|
74
|
+
})
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
}, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : c("", !0)
|
78
|
+
]);
|
79
|
+
};
|
80
|
+
}
|
81
|
+
});
|
82
|
+
export {
|
83
|
+
G as default
|
84
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as C, createBlock as I, openBlock as U, unref as o, isRef as b } from "vue";
|
2
|
+
import { I as k, U as B, D } from "./main-DDCxKbDF.js";
|
3
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
4
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
5
|
+
import "../vendor/clone-B9z63rns.js";
|
6
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
7
|
+
import "../vendor/moment-CwOqp704.js";
|
8
|
+
const F = /* @__PURE__ */ v({
|
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: R, modelValue: f } = _(d), a = V([]), h = null, g = (l, e) => {
|
21
|
+
if (a.value.length) {
|
22
|
+
let t = a.value.filter((u) => B.string.containsIgnoreCase(l, u.value));
|
23
|
+
e(t);
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
let n = { text: h, conditions: [] };
|
27
|
+
D.http.post(s.value.control.data.route, n).then(({ data: t }) => {
|
28
|
+
a.value = t.map((u) => ({ value: u.text })), e(a.value);
|
29
|
+
}).catch(() => {
|
30
|
+
e([]);
|
31
|
+
});
|
32
|
+
}, r = 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 n = C("el-autocomplete");
|
42
|
+
return U(), I(n, {
|
43
|
+
clearable: "",
|
44
|
+
placeholder: o(k).field_placeholder(o(c).name, o(s).name),
|
45
|
+
"fetch-suggestions": o(g),
|
46
|
+
modelValue: o(r),
|
47
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => b(r) ? r.value = t : r = t)
|
48
|
+
}, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
|
49
|
+
};
|
50
|
+
}
|
51
|
+
});
|
52
|
+
export {
|
53
|
+
F as default
|
54
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { defineComponent as v, toRefs as _, ref as V, computed as x, resolveComponent as D, createBlock as C, openBlock as I, unref as o, isRef as U } from "vue";
|
2
|
+
import { I as b, U as k, D as B } from "./main-DDCxKbDF.js";
|
3
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
4
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
5
|
+
import "../vendor/clone-B9z63rns.js";
|
6
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
7
|
+
import "../vendor/moment-CwOqp704.js";
|
8
|
+
const F = /* @__PURE__ */ v({
|
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: R, modelValue: f } = _(d), a = V([]), h = null, g = (l, e) => {
|
20
|
+
if (a.value.length) {
|
21
|
+
let t = a.value.filter((u) => k.string.containsIgnoreCase(l, u.value));
|
22
|
+
e(t);
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
let n = { text: h, conditions: [] };
|
26
|
+
B.http.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 = D("el-autocomplete");
|
41
|
+
return I(), C(n, {
|
42
|
+
clearable: "",
|
43
|
+
placeholder: o(b).field_placeholder(o(c).name, o(s).name),
|
44
|
+
"fetch-suggestions": o(g),
|
45
|
+
modelValue: o(r),
|
46
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => U(r) ? r.value = t : r = t)
|
47
|
+
}, null, 8, ["placeholder", "fetch-suggestions", "modelValue"]);
|
48
|
+
};
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export {
|
52
|
+
F as default
|
53
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as f, defineAsyncComponent as p, toRefs as c, createBlock as i, openBlock as V, unref as e, isRef as b } from "vue";
|
2
|
+
const h = /* @__PURE__ */ f({
|
3
|
+
__name: "Autocomplete",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(t) {
|
13
|
+
let m = p(() => import("./Text-C-mzSg7d.js")), s = t, { table: n, field: r, set: d, row: u, modelValue: l } = c(s);
|
14
|
+
return (w, o) => (V(), i(e(m), {
|
15
|
+
schema: t.schema,
|
16
|
+
table: e(n),
|
17
|
+
field: e(r),
|
18
|
+
row: e(u),
|
19
|
+
set: e(d),
|
20
|
+
modelValue: e(l),
|
21
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => b(l) ? l.value = a : l = a)
|
22
|
+
}, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
|
23
|
+
}
|
24
|
+
});
|
25
|
+
export {
|
26
|
+
h as default
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as u, defineAsyncComponent as i, toRefs as c, createBlock as V, openBlock as b, unref as e, isRef as h } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ u({
|
3
|
+
__name: "CSharp",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(a) {
|
13
|
+
let r = i(() => import("./Code-50tqkJIE.js")), s = a, { schema: m, table: n, field: d, set: p, row: f, modelValue: l } = c(s);
|
14
|
+
return (w, o) => (b(), V(e(r), {
|
15
|
+
schema: e(m),
|
16
|
+
table: e(n),
|
17
|
+
field: e(d),
|
18
|
+
row: e(f),
|
19
|
+
set: e(p),
|
20
|
+
modelValue: e(l),
|
21
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => h(l) ? l.value = t : l = t)
|
22
|
+
}, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
|
23
|
+
}
|
24
|
+
});
|
25
|
+
export {
|
26
|
+
_ as default
|
27
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { createElementBlock as e, openBlock as r } from "vue";
|
2
|
+
import { i as c } from "./main-DDCxKbDF.js";
|
3
|
+
const n = {};
|
4
|
+
function o(t, _) {
|
5
|
+
return r(), e("div", null, "日历");
|
6
|
+
}
|
7
|
+
const l = /* @__PURE__ */ c(n, [["render", o]]);
|
8
|
+
export {
|
9
|
+
l as default
|
10
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { defineComponent as n, createElementBlock as i, openBlock as s } from "vue";
|
2
|
+
import { useRouter as a, useRoute as p } from "vue-router";
|
3
|
+
import { h as c, z as u, A as l, x as m } from "./main-DDCxKbDF.js";
|
4
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
5
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
6
|
+
import "../vendor/clone-B9z63rns.js";
|
7
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
8
|
+
import "../vendor/moment-CwOqp704.js";
|
9
|
+
const x = /* @__PURE__ */ n({
|
10
|
+
__name: "Callback",
|
11
|
+
setup(y) {
|
12
|
+
let r = a(), e = p().query;
|
13
|
+
return (async () => {
|
14
|
+
if (e.type == null) {
|
15
|
+
c.messenger.error("缺失type参数");
|
16
|
+
return;
|
17
|
+
}
|
18
|
+
let t = new u();
|
19
|
+
t.userId = e.userId.toString(), t.type = e.type.toString(), t.secret = e.secret.toString(), t.identity = JSON.parse(e.identity.toString()), await (await l.sso.createAsync(t.type)).login(t), await m(t), await r.push(e.return_url.toString());
|
20
|
+
})(), (t, o) => (s(), i("div", null, "登录完毕,处理回调中..."));
|
21
|
+
}
|
22
|
+
});
|
23
|
+
export {
|
24
|
+
x as default
|
25
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { defineComponent as E, toRefs as D, ref as I, computed as w, resolveComponent as N, createBlock as R, openBlock as i, unref as a, isRef as S, withCtx as U, createElementVNode as P, createElementBlock as m, createCommentVNode as f, createTextVNode as j, toDisplayString as c } from "vue";
|
2
|
+
import { I as q, U as h, D as T } from "./main-DDCxKbDF.js";
|
3
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
4
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
5
|
+
import "../vendor/clone-B9z63rns.js";
|
6
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
7
|
+
import "../vendor/moment-CwOqp704.js";
|
8
|
+
const z = {
|
9
|
+
key: 0,
|
10
|
+
class: "cascader-suffix"
|
11
|
+
}, A = {
|
12
|
+
key: 0,
|
13
|
+
class: "cascader-length"
|
14
|
+
}, W = /* @__PURE__ */ E({
|
15
|
+
__name: "Cascader",
|
16
|
+
props: {
|
17
|
+
schema: {},
|
18
|
+
table: {},
|
19
|
+
field: {},
|
20
|
+
set: {},
|
21
|
+
row: {},
|
22
|
+
modelValue: {}
|
23
|
+
},
|
24
|
+
emits: ["submit", "change", "update:modelValue"],
|
25
|
+
setup(v, { emit: g }) {
|
26
|
+
let p = g, V = v, { table: _, field: t, set: F, row: G, modelValue: b } = D(V), s = I(), d = null, x = () => {
|
27
|
+
s.value || (s.value = t.value.control.data.data);
|
28
|
+
let e = b.value, l = [];
|
29
|
+
return t.value.control.multiple ? (e ? e.toString().split(",") : [e]).forEach((r) => {
|
30
|
+
let o = h.tree.getParentsById(r, "value", s.value, "children", !0);
|
31
|
+
o.length > 0 && l.push(o.map((B) => B.value));
|
32
|
+
}) : h.tree.getParentsById(e, "value", s.value, "children", !0).forEach((r) => {
|
33
|
+
l.push(r.value);
|
34
|
+
}), l;
|
35
|
+
}, C = (e) => {
|
36
|
+
let l;
|
37
|
+
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);
|
38
|
+
}, y = (e) => {
|
39
|
+
e && (d = null, k());
|
40
|
+
}, k = () => {
|
41
|
+
let e = { text: d, conditions: [] };
|
42
|
+
t.value.control.data.conditions.forEach((l) => {
|
43
|
+
e.conditions.push({ name: l.name, value: null });
|
44
|
+
}), T.http.post(t.value.control.data.route, e).then(({ data: l }) => {
|
45
|
+
s.value = l;
|
46
|
+
});
|
47
|
+
}, u = w({
|
48
|
+
get() {
|
49
|
+
return x();
|
50
|
+
},
|
51
|
+
set(e) {
|
52
|
+
C(e);
|
53
|
+
}
|
54
|
+
});
|
55
|
+
return (e, l) => {
|
56
|
+
const n = N("el-cascader");
|
57
|
+
return i(), R(n, {
|
58
|
+
ref: "cascaderRef",
|
59
|
+
placeholder: a(q).field_choose_placeholder(a(_).name, a(t).name),
|
60
|
+
filterable: "",
|
61
|
+
"collapse-tags": "",
|
62
|
+
"collapse-tags-tooltip": "",
|
63
|
+
"max-collapse-tags": 6,
|
64
|
+
options: a(s),
|
65
|
+
disabled: a(t).readonly,
|
66
|
+
props: { label: "text", checkStrictly: !0, multiple: a(t).control.multiple },
|
67
|
+
clearable: !a(t).control.required,
|
68
|
+
onVisibleChange: a(y),
|
69
|
+
modelValue: a(u),
|
70
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => S(u) ? u.value = r : u = r)
|
71
|
+
}, {
|
72
|
+
default: U(({ node: r, data: o }) => [
|
73
|
+
P("span", null, [
|
74
|
+
j(c(o.text), 1),
|
75
|
+
o.suffix ? (i(), m("span", z, "(" + c(o.suffix) + ")", 1)) : f("", !0)
|
76
|
+
]),
|
77
|
+
o.children ? (i(), m("span", A, c(o.children.length), 1)) : f("", !0)
|
78
|
+
]),
|
79
|
+
_: 1
|
80
|
+
}, 8, ["placeholder", "options", "disabled", "props", "clearable", "onVisibleChange", "modelValue"]);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
});
|
84
|
+
export {
|
85
|
+
W as default
|
86
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { defineComponent as y, toRefs as k, computed as p, createElementBlock as e, openBlock as t, Fragment as m, renderList as d, unref as f, createCommentVNode as x, normalizeStyle as b, toDisplayString as h } from "vue";
|
2
|
+
import { a as B } from "./main-DDCxKbDF.js";
|
3
|
+
import "../vendor/underscore-CK1gjYcm.js";
|
4
|
+
import "../vendor/file-saver-ypit2jx5.js";
|
5
|
+
import "../vendor/clone-B9z63rns.js";
|
6
|
+
import "../vendor/underscore.string-BevGGlfe.js";
|
7
|
+
import "../vendor/moment-CwOqp704.js";
|
8
|
+
const C = { class: "text-cascader" }, S = {
|
9
|
+
key: 0,
|
10
|
+
class: "cascader-seperator"
|
11
|
+
}, U = /* @__PURE__ */ y({
|
12
|
+
__name: "Cascader",
|
13
|
+
props: {
|
14
|
+
schema: {},
|
15
|
+
table: {},
|
16
|
+
field: {},
|
17
|
+
set: {},
|
18
|
+
row: {},
|
19
|
+
modelValue: {}
|
20
|
+
},
|
21
|
+
emits: ["submit", "change"],
|
22
|
+
setup(_, { emit: V }) {
|
23
|
+
let v = _, { table: w, field: s, set: E, row: z, modelValue: a } = k(v), u = p(() => s.value.control.multiple == !1 ? a.value : a.value ? a.value.toString().split(",") : []), i = p(() => {
|
24
|
+
if (u.value.length > 0) {
|
25
|
+
let c = s.value.control.data.data, o = [];
|
26
|
+
return u.value.forEach((r) => {
|
27
|
+
let l = B.tree.getParentsById(r, "value", c, "children", !0);
|
28
|
+
l.length > 0 && o.push(l);
|
29
|
+
}), o;
|
30
|
+
}
|
31
|
+
return [];
|
32
|
+
});
|
33
|
+
return (c, o) => (t(), e("div", C, [
|
34
|
+
(t(!0), e(m, null, d(f(i), (r, l) => (t(), e("span", null, [
|
35
|
+
(t(!0), e(m, null, d(r, (n, g) => (t(), e("span", {
|
36
|
+
style: b({ color: n.color }),
|
37
|
+
key: n.value
|
38
|
+
}, h(n.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
|
39
|
+
l != f(i).length - 1 ? (t(), e("span", S, ",")) : x("", !0)
|
40
|
+
]))), 256))
|
41
|
+
]));
|
42
|
+
}
|
43
|
+
});
|
44
|
+
export {
|
45
|
+
U as default
|
46
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent as p, defineAsyncComponent as u, toRefs as c, createBlock as b, openBlock as V, unref as e, isRef as h } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ p({
|
3
|
+
__name: "Checkbox",
|
4
|
+
props: {
|
5
|
+
schema: {},
|
6
|
+
table: {},
|
7
|
+
field: {},
|
8
|
+
set: {},
|
9
|
+
row: {},
|
10
|
+
modelValue: {}
|
11
|
+
},
|
12
|
+
setup(a) {
|
13
|
+
let r = u(() => import("./Dictionary-CvI_7FO8.js")), s = a, { schema: m, table: n, field: d, set: f, row: i, modelValue: l } = c(s);
|
14
|
+
return (w, o) => (V(), b(e(r), {
|
15
|
+
schema: e(m),
|
16
|
+
table: e(n),
|
17
|
+
field: e(d),
|
18
|
+
row: e(i),
|
19
|
+
set: e(f),
|
20
|
+
modelValue: e(l),
|
21
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => h(l) ? l.value = t : l = t)
|
22
|
+
}, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
|
23
|
+
}
|
24
|
+
});
|
25
|
+
export {
|
26
|
+
_ as default
|
27
|
+
};
|