halo-pc 1.0.51 → 1.0.53
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 +53 -56
@@ -0,0 +1,225 @@
|
|
1
|
+
import { defineComponent as pe, defineAsyncComponent as fe, toRefs as ve, ref as f, onMounted as he, computed as ge, watch as ye, resolveComponent as $, createBlock as _, openBlock as h, unref as e, createSlots as we, withCtx as p, createCommentVNode as F, createElementBlock as N, Fragment as _e, renderList as be, createVNode as S, normalizeStyle as xe, createElementVNode as b, toDisplayString as D, createTextVNode as Ce, resolveDynamicComponent as ke, nextTick as V } 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 { w as Re, U as m, b as g, r as $e, s as O, I as j, F as z } from "./main-DDCxKbDF.js";
|
8
|
+
const Fe = {
|
9
|
+
key: 0,
|
10
|
+
class: "required"
|
11
|
+
}, Se = ["onMouseenter"], De = { class: "footer-left" }, Ae = /* @__PURE__ */ pe({
|
12
|
+
__name: "Table",
|
13
|
+
props: {
|
14
|
+
route: {},
|
15
|
+
validateErrors: {},
|
16
|
+
module: {},
|
17
|
+
schema: {},
|
18
|
+
table: {},
|
19
|
+
layout: {},
|
20
|
+
next: {},
|
21
|
+
set: {},
|
22
|
+
url: {},
|
23
|
+
win: {}
|
24
|
+
},
|
25
|
+
emits: ["submit", "change"],
|
26
|
+
setup(L, { expose: P, emit: G }) {
|
27
|
+
let J = fe(() => import("./Index-BY6EHWPo.js")), K = L, k = G, { schema: B, table: a, layout: v, set: i, next: ze, route: H, module: x, validateErrors: I } = ve(K), T = f({ page: 1 }), U = f({}), d = f([]), Q = f(!0), C = f(), W = f(), q = f(), y = f({ layout: "prev, pager, next", count: 5 }), X = Re.save(), Y = (t, o, r) => {
|
28
|
+
k("row-edit", t, a.value, r);
|
29
|
+
}, Z = (t) => {
|
30
|
+
k("submit", t);
|
31
|
+
}, ee = (t, o) => {
|
32
|
+
let r = a.value.show[o];
|
33
|
+
return r._headerWidth ? (t.column.realWidth || t.column.width) > r._headerWidth + 20 : !0;
|
34
|
+
}, te = (t, o) => {
|
35
|
+
let r = t.target.children[0].offsetWidth, u = a.value.show[o];
|
36
|
+
u._headerWidth = r;
|
37
|
+
}, le = (t, o, r, u, n) => {
|
38
|
+
k("change", t, o, r, u, n);
|
39
|
+
}, A = (t) => i.value[a.value.name].indexOf(t), ae = (t) => {
|
40
|
+
d.value = t;
|
41
|
+
}, oe = async (t, o, r, u, n) => {
|
42
|
+
await g.page.setColumnWidth(H.value, n.name, r.property, t);
|
43
|
+
}, ne = (t) => {
|
44
|
+
E(t.contentRect.width), V(() => {
|
45
|
+
M(t.contentRect.height);
|
46
|
+
});
|
47
|
+
}, E = (t = null) => {
|
48
|
+
let o = m.dom.parentUntil(C.value.$el, ".ha-main-form");
|
49
|
+
t == null && (t = m.dom.getWidth(o)), t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "total, prev, pager, next, jumper";
|
50
|
+
}, M = (t = null) => {
|
51
|
+
let o = m.dom.parentUntil(C.value.$el, ".ha-main-form");
|
52
|
+
t || (t = m.dom.getHeight(o));
|
53
|
+
let r = m.dom.find(o, ".main-footer"), u = m.dom.getHeight(r);
|
54
|
+
q.value = t - u;
|
55
|
+
}, re = async () => {
|
56
|
+
let t = i.value[a.value.name].length, o = g.module.getDefaultRow(a.value);
|
57
|
+
i.value[a.value.name].push(o);
|
58
|
+
let r = a.value.fields.filter((n) => n.feature != null);
|
59
|
+
for (let n = 0; n < r.length; n++) {
|
60
|
+
let l = r[n];
|
61
|
+
(await z.feature.createAsync(l.feature.type)).add(a.value, l, i.value, o);
|
62
|
+
}
|
63
|
+
R(t);
|
64
|
+
let u = m.scroll.isBottom(".tree-detail");
|
65
|
+
await V(() => {
|
66
|
+
u && m.scroll.scrollToBottom(".tree-detail");
|
67
|
+
});
|
68
|
+
}, ue = async (t = null) => {
|
69
|
+
let o = d.value[0], r = g.module.getDefaultRow(a.value), u = m.array.insert(i.value[a.value.name], o, r), n = a.value.fields.filter((l) => l.feature != null);
|
70
|
+
for (let l = 0; l < n.length; l++) {
|
71
|
+
let s = n[l];
|
72
|
+
(await z.feature.create(s.feature.type)).insert(a.value, s, i.value, o, r);
|
73
|
+
}
|
74
|
+
R(u), t?.(u);
|
75
|
+
}, ie = async () => {
|
76
|
+
let t = a.value.key.name, o = m.object.clone(d.value, (n) => {
|
77
|
+
n[t] = null, n[`Old_${t}`] = null;
|
78
|
+
}), r = i.value[a.value.name].indexOf(d.value[0]);
|
79
|
+
for (let n = 0; n < d.value.length; n++) {
|
80
|
+
let l = d.value[n], s = o[n];
|
81
|
+
m.array.append(i.value[a.value.name], l, s);
|
82
|
+
}
|
83
|
+
let u = a.value.fields.filter((n) => n.feature != null);
|
84
|
+
for (let n = 0; n < u.length; n++) {
|
85
|
+
let l = u[n];
|
86
|
+
(await z.feature.create(l.feature.type)).copy(a.value, l, i.value);
|
87
|
+
}
|
88
|
+
R(r);
|
89
|
+
}, se = () => {
|
90
|
+
m.array.remove(i.value[a.value.name], d.value), d.value = [];
|
91
|
+
}, R = (t) => {
|
92
|
+
let o = m.math.pageCount(t + 1, v.value.size);
|
93
|
+
T.value.page = o;
|
94
|
+
}, me = () => {
|
95
|
+
C.value.$el.querySelector("tbody");
|
96
|
+
};
|
97
|
+
he(async () => {
|
98
|
+
await X.openAsync("sys", "page", null, U.value), me(), E(), m.component.detectLoaded(W, () => {
|
99
|
+
M();
|
100
|
+
});
|
101
|
+
});
|
102
|
+
let de = ge(() => {
|
103
|
+
let t = a.value.main ? `/${a.value.name}` : `/${B.value[0].name}/${a.value.name}`;
|
104
|
+
return g.component.getComponent(`${t}/update-child`, "partial", "update-child");
|
105
|
+
});
|
106
|
+
return ye(I, (t, o) => {
|
107
|
+
let r = t.find((u) => u.table == a.value.name);
|
108
|
+
r != null && (T.value.page = Math.ceil((r.index + 1) / v.value.size));
|
109
|
+
}), P({ resize: ne }), (t, o) => {
|
110
|
+
const r = $("el-tooltip"), u = $("el-popover"), n = $("el-form-item");
|
111
|
+
return h(), _(e($e), {
|
112
|
+
ref_key: "tableRef",
|
113
|
+
ref: C,
|
114
|
+
class: "ha-table-layout table-default",
|
115
|
+
page: e(v).page,
|
116
|
+
size: e(v).size,
|
117
|
+
"pager-count": e(y).count,
|
118
|
+
border: "",
|
119
|
+
height: e(q),
|
120
|
+
data: e(i)[e(a).name],
|
121
|
+
onRowClick: o[0] || (o[0] = (l, s, c) => e(Y)(l, s, c)),
|
122
|
+
onCheckedChange: e(ae),
|
123
|
+
onHeaderDragend: o[1] || (o[1] = (l, s, c, w) => e(oe)(l, s, c, w, e(a)))
|
124
|
+
}, we({
|
125
|
+
empty: p(() => [
|
126
|
+
Ce(D(e(j).t("common.no_data")), 1)
|
127
|
+
]),
|
128
|
+
default: p(() => [
|
129
|
+
e(Q) ? (h(), _(e(O), {
|
130
|
+
key: 0,
|
131
|
+
type: "selection"
|
132
|
+
})) : F("", !0),
|
133
|
+
(h(!0), N(_e, null, be(e(a).show, (l, s) => (h(), _(e(O), {
|
134
|
+
name: l.name,
|
135
|
+
label: l.label,
|
136
|
+
key: l.name,
|
137
|
+
"show-overflow-tooltip": "",
|
138
|
+
"min-width": e(U)?.[e(H)]?.[e(a).name]?.[l.name] ?? l.control.width,
|
139
|
+
fixed: e(v).fixed.indexOf(l.name) > -1 || s == 0 ? "left" : null
|
140
|
+
}, {
|
141
|
+
header: p(({ row: c }) => [
|
142
|
+
e(x).type != "Detail" && l.control.required ? (h(), N("i", Fe, "*")) : F("", !0),
|
143
|
+
S(r, {
|
144
|
+
placement: "top",
|
145
|
+
content: l.label,
|
146
|
+
disabled: e(ee)(t.scope, s)
|
147
|
+
}, {
|
148
|
+
default: p(() => [
|
149
|
+
b("span", {
|
150
|
+
onMouseenter: (w) => e(te)(w, s)
|
151
|
+
}, [
|
152
|
+
b("span", null, D(e(j).field(e(a).table, l.name)), 1)
|
153
|
+
], 40, Se)
|
154
|
+
]),
|
155
|
+
_: 2
|
156
|
+
}, 1032, ["content", "disabled"]),
|
157
|
+
l.control.tooltip ? (h(), _(u, {
|
158
|
+
key: 1,
|
159
|
+
trigger: "hover",
|
160
|
+
placement: "top",
|
161
|
+
width: "auto",
|
162
|
+
title: l.control.tooltip.title
|
163
|
+
}, {
|
164
|
+
reference: p(() => [...o[2] || (o[2] = [
|
165
|
+
b("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
166
|
+
])]),
|
167
|
+
default: p(() => [
|
168
|
+
b("pre", null, D(l.control.tooltip.content), 1)
|
169
|
+
]),
|
170
|
+
_: 2
|
171
|
+
}, 1032, ["title"])) : F("", !0)
|
172
|
+
]),
|
173
|
+
default: p(({ row: c, index: w }) => [
|
174
|
+
S(n, {
|
175
|
+
style: xe(e(g).control.getStyle(l, e(x).type, e(v).type)),
|
176
|
+
rules: e(g).module.getRules(e(I), e(a), l, w),
|
177
|
+
prop: `[${e(a).name}][${e(A)(c)}][${l.name}]`
|
178
|
+
}, {
|
179
|
+
default: p(() => [
|
180
|
+
S(e(J), {
|
181
|
+
schema: e(B),
|
182
|
+
table: e(a),
|
183
|
+
field: l,
|
184
|
+
set: e(i),
|
185
|
+
row: c,
|
186
|
+
config: e(g).control.getConfig(l, e(x).type, e(v).type),
|
187
|
+
onSubmit: e(Z),
|
188
|
+
onChange: (ce) => e(le)(ce, e(i), e(a), l, e(A)(c))
|
189
|
+
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
190
|
+
]),
|
191
|
+
_: 2
|
192
|
+
}, 1032, ["style", "rules", "prop"])
|
193
|
+
]),
|
194
|
+
_: 2
|
195
|
+
}, 1032, ["name", "label", "min-width", "fixed"]))), 128))
|
196
|
+
]),
|
197
|
+
_: 2
|
198
|
+
}, [
|
199
|
+
e(a).main ? void 0 : {
|
200
|
+
name: "footer",
|
201
|
+
fn: p(() => [
|
202
|
+
b("div", De, [
|
203
|
+
(h(), _(ke(e(de)), {
|
204
|
+
ref_key: "operationRef",
|
205
|
+
ref: W,
|
206
|
+
module: e(x),
|
207
|
+
table: e(a),
|
208
|
+
set: e(i),
|
209
|
+
selection: e(d),
|
210
|
+
onAdd: e(re),
|
211
|
+
onInsert: e(ue),
|
212
|
+
onCopy: e(ie),
|
213
|
+
onRemove: e(se)
|
214
|
+
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
215
|
+
])
|
216
|
+
]),
|
217
|
+
key: "0"
|
218
|
+
}
|
219
|
+
]), 1032, ["page", "size", "pager-count", "height", "data", "onCheckedChange"]);
|
220
|
+
};
|
221
|
+
}
|
222
|
+
});
|
223
|
+
export {
|
224
|
+
Ae as default
|
225
|
+
};
|
@@ -0,0 +1,274 @@
|
|
1
|
+
import { defineComponent as ze, toRefs as We, ref as s, onMounted as De, computed as Q, resolveComponent as Ve, createElementBlock as z, openBlock as p, createVNode as g, createBlock as k, createCommentVNode as x, unref as e, isRef as w, normalizeClass as He, withCtx as c, Fragment as Ue, renderList as Be, createElementVNode as W, toDisplayString as R, resolveDynamicComponent as Te, createTextVNode as X, nextTick as Pe } 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 { q as Ee, b as S, r as Ne, s as E, e as Ae, I as $, U as v, f as Le, c as qe, D as Y, R as N } from "./main-DDCxKbDF.js";
|
8
|
+
import { _ as Ie } from "./SearchForm.vue_vue_type_style_index_0_lang-Cj6tbcvd.js";
|
9
|
+
import { _ as Ke } from "./DataImport.vue_vue_type_script_setup_true_lang-D4OmNvny.js";
|
10
|
+
import { _ as Me } from "./DataExport.vue_vue_type_script_setup_true_lang-C6tWZ8mB.js";
|
11
|
+
import { _ as je } from "./SearchHeader.vue_vue_type_style_index_0_lang-CHx_o3cL.js";
|
12
|
+
const Oe = {
|
13
|
+
key: 0,
|
14
|
+
class: "required"
|
15
|
+
}, Fe = ["onMouseenter"], Ge = { class: "title" }, Je = { key: 0 }, Qe = ["href"], ut = /* @__PURE__ */ ze({
|
16
|
+
__name: "Table",
|
17
|
+
props: {
|
18
|
+
searchData: {},
|
19
|
+
module: {},
|
20
|
+
schema: {},
|
21
|
+
table: {},
|
22
|
+
layout: {},
|
23
|
+
next: {},
|
24
|
+
set: {},
|
25
|
+
url: {},
|
26
|
+
win: {}
|
27
|
+
},
|
28
|
+
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
29
|
+
setup(Z, { expose: ee, emit: te }) {
|
30
|
+
let h = te, ae = Z, { url: le, win: oe, module: A, schema: D, table: r, layout: u, next: i, set: b, searchData: L } = We(ae), q = s([]), V = s(), I = s(), H = s(), U = s(), K = s(), d = s(!1), m = s(!1), M = s(), j = s(120), O = s({}), f = s({ count: 5, sizes: [20, 50, 200, 500, 2e3] }), B = s(), n = s({ title: null, env: null, url: null, row: null, if: !1, to: null }), ne = new Ee(), re = (t) => {
|
31
|
+
C("insert", null, t);
|
32
|
+
}, se = (t, a) => {
|
33
|
+
C("detail", t, a);
|
34
|
+
}, ue = (t, a) => {
|
35
|
+
C("update", t, a);
|
36
|
+
}, ie = (t, a) => {
|
37
|
+
C("copy", t, a);
|
38
|
+
}, de = (t, a) => {
|
39
|
+
C("delete", t, a);
|
40
|
+
}, C = (t, a, o) => {
|
41
|
+
let l = me(t, a);
|
42
|
+
o.ctrlKey ? (n.value.row = null, h("navigate", l)) : (n.value.to = o.altKey ? "body" : null, n.value.url = l, n.value.row = a, n.value.if = !0);
|
43
|
+
}, me = (t, a = null) => {
|
44
|
+
let o = `${i.value[t].route}`;
|
45
|
+
if (a != null) {
|
46
|
+
let l = a[r.value.key.name];
|
47
|
+
o += `?id=${l}`;
|
48
|
+
}
|
49
|
+
return o;
|
50
|
+
}, pe = () => {
|
51
|
+
n.value.if = !1, h("close");
|
52
|
+
}, ge = (t) => {
|
53
|
+
n.value.title = $.module(t.module.type, t.module.name), n.value.env = t.module.env;
|
54
|
+
}, T = () => {
|
55
|
+
n.value.if = !1, h("succeed", async (t) => {
|
56
|
+
});
|
57
|
+
}, F = (t) => {
|
58
|
+
h("search", t);
|
59
|
+
}, G = async (t) => {
|
60
|
+
let a = t.map((l) => l[r.value.key.name]), o = await Y.http.post(i.value.delete.route, a);
|
61
|
+
Y.messenger.success(o.message), T();
|
62
|
+
}, ce = (t, a) => {
|
63
|
+
let o = t.sort == null ? null : t.sort, l = { [a.name]: { [t.name]: o } };
|
64
|
+
h("sort", l);
|
65
|
+
}, he = (t) => {
|
66
|
+
h("page-change", t);
|
67
|
+
}, fe = (t) => {
|
68
|
+
h("size-change", t);
|
69
|
+
}, ve = (t, a, o, l, _) => {
|
70
|
+
}, ye = (t, a, o) => {
|
71
|
+
q.value = t;
|
72
|
+
}, we = (t) => {
|
73
|
+
j.value = t;
|
74
|
+
}, be = (t, a, o) => {
|
75
|
+
let l = t.target.children[0], _ = v.dom.getWidth(l) + 16 + 14, y = a.realWidth || a.width;
|
76
|
+
o._headerTooltip = _ > y;
|
77
|
+
}, Ce = async (t, a, o, l) => {
|
78
|
+
await S.page.setColumnWidth(i.value.paging.route, r.value.name, o.property, t);
|
79
|
+
}, J = async () => {
|
80
|
+
B.value = v.dom.getWidth(V.value), _e(), await Pe();
|
81
|
+
let t = v.dom.getHeight(V.value), a = v.dom.getHeight([H.value?.$el, U.value?.$el]), o = t - a - 1;
|
82
|
+
M.value = v.math.floor(o), I.value.resize();
|
83
|
+
}, _e = () => {
|
84
|
+
let t = B.value;
|
85
|
+
t <= 690 ? f.value.count = 5 : f.value.count = 7, t <= 300 ? f.value.layout = "pager" : t <= 620 ? f.value.layout = "prev, pager, next" : f.value.layout = "sizes, total, prev, pager, next, jumper";
|
86
|
+
}, ke = (t, a) => {
|
87
|
+
N.module.invokeKeyboard(K.value, t, a);
|
88
|
+
}, xe = (t) => {
|
89
|
+
N.module.invokeSocket(U.value, t);
|
90
|
+
}, Re = async (t) => {
|
91
|
+
N.module.invokeResize(H.value, t), await J();
|
92
|
+
};
|
93
|
+
De(async () => {
|
94
|
+
await ne.openAsync("sys", "page", null, O.value), await J();
|
95
|
+
});
|
96
|
+
let Se = Q(() => {
|
97
|
+
let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
|
98
|
+
return { prop: a, order: o ? "ascending" : "descending" };
|
99
|
+
}), $e = Q(() => {
|
100
|
+
let t = `/${r.value.name}/paging-row`;
|
101
|
+
return S.component.getComponent(t, "partial", "paging-row");
|
102
|
+
});
|
103
|
+
return ee({ keyboard: ke, socket: xe, resize: Re }), (t, a) => {
|
104
|
+
const o = Ve("el-tooltip");
|
105
|
+
return p(), z("div", {
|
106
|
+
ref_key: "pagingRef",
|
107
|
+
ref: V,
|
108
|
+
class: "paging-table"
|
109
|
+
}, [
|
110
|
+
g(Ie, {
|
111
|
+
ref_key: "searchRef",
|
112
|
+
ref: H,
|
113
|
+
schema: e(D),
|
114
|
+
table: e(r),
|
115
|
+
layout: e(u),
|
116
|
+
"search-data": e(L),
|
117
|
+
onSubmit: e(F)
|
118
|
+
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
119
|
+
g(je, {
|
120
|
+
ref_key: "headerRef",
|
121
|
+
ref: U,
|
122
|
+
url: e(le),
|
123
|
+
win: e(oe),
|
124
|
+
module: e(A),
|
125
|
+
schema: e(D),
|
126
|
+
table: e(r),
|
127
|
+
layout: e(u),
|
128
|
+
set: e(b),
|
129
|
+
next: e(i),
|
130
|
+
selection: e(q),
|
131
|
+
"search-data": e(L),
|
132
|
+
onAdd: e(re),
|
133
|
+
onRemove: e(G),
|
134
|
+
onShowImport: a[0] || (a[0] = (l) => w(d) ? d.value = !0 : d = !0),
|
135
|
+
onShowExport: a[1] || (a[1] = (l) => w(m) ? m.value = !0 : m = !0),
|
136
|
+
onSearch: e(F)
|
137
|
+
}, null, 8, ["url", "win", "module", "schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
138
|
+
g(e(Ne), {
|
139
|
+
ref_key: "tableRef",
|
140
|
+
ref: I,
|
141
|
+
class: He([{ "hide-nav": e(S).app.hideNav }, "table-default table-paging"]),
|
142
|
+
page: e(u).page,
|
143
|
+
size: e(u).size,
|
144
|
+
count: e(u).count,
|
145
|
+
"pager-count": e(f).count,
|
146
|
+
"page-sizes": e(f).sizes,
|
147
|
+
border: "",
|
148
|
+
height: e(M),
|
149
|
+
data: e(b)[e(r).name],
|
150
|
+
"default-sort": e(Se),
|
151
|
+
onCheckedChange: a[2] || (a[2] = (l, _) => e(ye)(l, _, e(r))),
|
152
|
+
onSortChange: a[3] || (a[3] = (l) => e(ce)(l, e(r))),
|
153
|
+
onPageChange: e(he),
|
154
|
+
onSizeChange: e(fe),
|
155
|
+
onHeaderDragend: e(Ce)
|
156
|
+
}, {
|
157
|
+
empty: c(() => [
|
158
|
+
X(R(e($).t("common.no_data")), 1)
|
159
|
+
]),
|
160
|
+
default: c(() => [
|
161
|
+
g(e(E), { type: "selection" }),
|
162
|
+
(p(!0), z(Ue, null, Be(e(r).show, (l, _) => (p(), k(e(E), {
|
163
|
+
sort: "",
|
164
|
+
name: l.name,
|
165
|
+
fixed: e(u).fixed.indexOf(l.name) > -1 ? "left" : null,
|
166
|
+
"min-width": e(O)?.[e(i).paging.route]?.[e(r).name]?.[l.name] ?? l.control.width,
|
167
|
+
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
168
|
+
key: `${e(r).name}.${l.name}`
|
169
|
+
}, {
|
170
|
+
header: c((y) => [
|
171
|
+
l.control.required && l.control.editable ? (p(), z("i", Oe)) : x("", !0),
|
172
|
+
g(o, {
|
173
|
+
placement: "top",
|
174
|
+
content: l.label,
|
175
|
+
disabled: !l._headerTooltip
|
176
|
+
}, {
|
177
|
+
default: c(() => [
|
178
|
+
W("span", {
|
179
|
+
onMouseenter: (P) => e(be)(P, y.column, l)
|
180
|
+
}, [
|
181
|
+
W("span", null, R(e($).field(e(r).name, l.name)), 1)
|
182
|
+
], 40, Fe)
|
183
|
+
]),
|
184
|
+
_: 2
|
185
|
+
}, 1032, ["content", "disabled"])
|
186
|
+
]),
|
187
|
+
default: c(({ row: y }) => [
|
188
|
+
g(Ae, {
|
189
|
+
schema: e(D),
|
190
|
+
table: e(r),
|
191
|
+
field: l,
|
192
|
+
set: e(b),
|
193
|
+
row: y,
|
194
|
+
config: e(S).control.getConfig(l, e(A).type, e(u).type),
|
195
|
+
onChange: (P) => e(ve)(P, e(r), l, e(b), y)
|
196
|
+
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
197
|
+
]),
|
198
|
+
_: 2
|
199
|
+
}, 1032, ["name", "fixed", "min-width", "label"]))), 128)),
|
200
|
+
g(e(E), {
|
201
|
+
label: e($).t("common.operation"),
|
202
|
+
fixed: "right",
|
203
|
+
width: e(j)
|
204
|
+
}, {
|
205
|
+
default: c(({ row: l }) => [
|
206
|
+
(p(), k(Te(e($e)), {
|
207
|
+
table: e(r),
|
208
|
+
next: e(i),
|
209
|
+
set: e(b),
|
210
|
+
row: l,
|
211
|
+
onPreview: e(se),
|
212
|
+
onEdit: e(ue),
|
213
|
+
onCopy: e(ie),
|
214
|
+
onBeforeRemove: e(de),
|
215
|
+
onRemove: e(G),
|
216
|
+
onChangeWidth: e(we)
|
217
|
+
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
218
|
+
]),
|
219
|
+
_: 1
|
220
|
+
}, 8, ["label", "width"])
|
221
|
+
]),
|
222
|
+
_: 1
|
223
|
+
}, 8, ["class", "page", "size", "count", "pager-count", "page-sizes", "height", "data", "default-sort", "onPageChange", "onSizeChange", "onHeaderDragend"]),
|
224
|
+
e(i).import ? (p(), k(Ke, {
|
225
|
+
key: 0,
|
226
|
+
next: e(i),
|
227
|
+
onClose: a[4] || (a[4] = (l) => w(d) ? d.value = !1 : d = !1),
|
228
|
+
onSucceed: e(T),
|
229
|
+
modelValue: e(d),
|
230
|
+
"onUpdate:modelValue": a[5] || (a[5] = (l) => w(d) ? d.value = l : d = l)
|
231
|
+
}, null, 8, ["next", "onSucceed", "modelValue"])) : x("", !0),
|
232
|
+
e(i).export ? (p(), k(Me, {
|
233
|
+
key: 1,
|
234
|
+
route: e(i).export.route,
|
235
|
+
"page-count": e(v).math.pageCount(e(u).count, e(u).size),
|
236
|
+
onClose: a[6] || (a[6] = (l) => w(m) ? m.value = !1 : m = !1),
|
237
|
+
modelValue: e(m),
|
238
|
+
"onUpdate:modelValue": a[7] || (a[7] = (l) => w(m) ? m.value = l : m = l)
|
239
|
+
}, null, 8, ["route", "page-count", "modelValue"])) : x("", !0),
|
240
|
+
e(n).if ? (p(), k(e(Le), {
|
241
|
+
key: 2,
|
242
|
+
to: e(n).to,
|
243
|
+
width: e(S).page.getDrawerWidth(e(B)),
|
244
|
+
onClose: a[8] || (a[8] = (l) => e(n).if = !1)
|
245
|
+
}, {
|
246
|
+
title: c(() => [
|
247
|
+
W("div", Ge, [
|
248
|
+
X(R(e(n).title) + " ", 1),
|
249
|
+
e(n).env ? (p(), z("span", Je, "[" + R(e(n).env) + "]", 1)) : x("", !0),
|
250
|
+
W("a", {
|
251
|
+
class: "drawer-copy",
|
252
|
+
href: e(v).url.getToUrl(e(n).url)
|
253
|
+
}, R(e($).t("common.link")), 9, Qe)
|
254
|
+
])
|
255
|
+
]),
|
256
|
+
default: c(() => [
|
257
|
+
g(e(qe), {
|
258
|
+
ref_key: "pageRef",
|
259
|
+
ref: K,
|
260
|
+
url: e(n).url,
|
261
|
+
onLoaded: e(ge),
|
262
|
+
onSucceed: e(T),
|
263
|
+
onClose: e(pe)
|
264
|
+
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
265
|
+
]),
|
266
|
+
_: 1
|
267
|
+
}, 8, ["to", "width"])) : x("", !0)
|
268
|
+
], 512);
|
269
|
+
};
|
270
|
+
}
|
271
|
+
});
|
272
|
+
export {
|
273
|
+
ut as default
|
274
|
+
};
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { defineComponent as _, toRefs as b, computed as x, resolveComponent as V, createBlock as h, openBlock as y, unref as e, withKeys as C, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as K } 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 B } from "./main-DDCxKbDF.js";
|
8
|
+
const q = /* @__PURE__ */ _({
|
9
|
+
__name: "Text",
|
10
|
+
props: {
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
set: {},
|
15
|
+
row: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
emits: ["submit", "change", "clear", "update:modelValue"],
|
19
|
+
setup(m, { emit: p }) {
|
20
|
+
let l = p, i = m, { table: d, field: o, set: I, modelValue: s } = b(i), u = (t) => {
|
21
|
+
l("submit", t);
|
22
|
+
}, c = () => {
|
23
|
+
l("clear");
|
24
|
+
}, a = x({
|
25
|
+
get() {
|
26
|
+
return s.value;
|
27
|
+
},
|
28
|
+
set(t) {
|
29
|
+
l("update:modelValue", t), l("change", t);
|
30
|
+
}
|
31
|
+
});
|
32
|
+
return (t, r) => {
|
33
|
+
const f = V("el-input");
|
34
|
+
return y(), h(f, {
|
35
|
+
type: "text",
|
36
|
+
disabled: e(o).control.readonly,
|
37
|
+
placeholder: e(B).field_placeholder(e(d).name, e(o).name),
|
38
|
+
clearable: "",
|
39
|
+
onKeyup: C(e(u), ["enter", "native"]),
|
40
|
+
onClear: e(c),
|
41
|
+
modelValue: e(a),
|
42
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => g(a) ? a.value = n : a = n)
|
43
|
+
}, k({ _: 2 }, [
|
44
|
+
e(o).suffix ? {
|
45
|
+
name: "append",
|
46
|
+
fn: v(() => [
|
47
|
+
w(K(e(o).suffix), 1)
|
48
|
+
]),
|
49
|
+
key: "0"
|
50
|
+
} : void 0
|
51
|
+
]), 1032, ["disabled", "placeholder", "onKeyup", "onClear", "modelValue"]);
|
52
|
+
};
|
53
|
+
}
|
54
|
+
});
|
55
|
+
export {
|
56
|
+
q as default
|
57
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { defineComponent as x, mergeModels as p, toRefs as g, useModel as C, resolveComponent as V, createBlock as _, openBlock as b, unref as e, withKeys as y, isRef as v, createSlots as k, withCtx as D, createTextVNode as K, toDisplayString 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 { I as w } from "./main-DDCxKbDF.js";
|
8
|
+
const q = /* @__PURE__ */ x({
|
9
|
+
__name: "Text",
|
10
|
+
props: /* @__PURE__ */ p({
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
searchData: {}
|
15
|
+
}, {
|
16
|
+
modelValue: {},
|
17
|
+
modelModifiers: {}
|
18
|
+
}),
|
19
|
+
emits: /* @__PURE__ */ p(["change", "submit"], ["update:modelValue"]),
|
20
|
+
setup(o, { emit: s }) {
|
21
|
+
let a = s, u = o, { table: d, field: l, searchData: B } = g(u), t = C(o, "modelValue"), c = (m) => {
|
22
|
+
m == "" && (t.value = null), a("change", t.value);
|
23
|
+
}, n = () => {
|
24
|
+
a("submit");
|
25
|
+
}, f = () => {
|
26
|
+
n();
|
27
|
+
};
|
28
|
+
return (m, r) => {
|
29
|
+
const h = V("el-input");
|
30
|
+
return b(), _(h, {
|
31
|
+
type: "text",
|
32
|
+
placeholder: e(w).field_placeholder(e(d).name, e(l).name),
|
33
|
+
clearable: "",
|
34
|
+
onKeyup: y(e(n), ["enter", "native"]),
|
35
|
+
onChange: e(c),
|
36
|
+
onClear: e(f),
|
37
|
+
modelValue: e(t),
|
38
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => v(t) ? t.value = i : t = i)
|
39
|
+
}, k({ _: 2 }, [
|
40
|
+
e(l).suffix ? {
|
41
|
+
name: "append",
|
42
|
+
fn: D(() => [
|
43
|
+
K(M(e(l).suffix), 1)
|
44
|
+
]),
|
45
|
+
key: "0"
|
46
|
+
} : void 0
|
47
|
+
]), 1032, ["placeholder", "onKeyup", "onChange", "onClear", "modelValue"]);
|
48
|
+
};
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export {
|
52
|
+
q as default
|
53
|
+
};
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { defineComponent as v, toRefs as V, ref as p, computed as y, resolveComponent as _, createElementBlock as i, openBlock as r, Fragment as g, createBlock as B, createCommentVNode as C, unref as l, isRef as f, createElementVNode as R, nextTick as T } from "vue";
|
2
|
+
import { a as H } 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 b = ["innerHTML"], q = /* @__PURE__ */ v({
|
9
|
+
__name: "Text",
|
10
|
+
props: {
|
11
|
+
schema: {},
|
12
|
+
table: {},
|
13
|
+
field: {},
|
14
|
+
set: {},
|
15
|
+
row: {},
|
16
|
+
modelValue: {}
|
17
|
+
},
|
18
|
+
setup(d) {
|
19
|
+
let c = d, { table: w, field: s, set: E, row: L, modelValue: k } = V(c), t = p(!1), u = p(), m = () => {
|
20
|
+
t.value = !0, T(() => {
|
21
|
+
u.value.focus();
|
22
|
+
});
|
23
|
+
}, o = y(() => {
|
24
|
+
let a = H.html.getHtml(k.value?.toString());
|
25
|
+
return (s.value.control.prefix || "") + (a || "") + (s.value.control.suffix || "");
|
26
|
+
});
|
27
|
+
return (a, e) => {
|
28
|
+
const x = _("el-input");
|
29
|
+
return r(), i(g, null, [
|
30
|
+
l(t) ? (r(), B(x, {
|
31
|
+
key: 1,
|
32
|
+
ref_key: "editRef",
|
33
|
+
ref: u,
|
34
|
+
type: "text",
|
35
|
+
onBlur: e[0] || (e[0] = (n) => f(t) ? t.value = !1 : t = !1),
|
36
|
+
modelValue: l(o),
|
37
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => f(o) ? o.value = n : o = n)
|
38
|
+
}, null, 8, ["modelValue"])) : (r(), i("span", {
|
39
|
+
key: 0,
|
40
|
+
class: "text-text",
|
41
|
+
innerHTML: l(o)
|
42
|
+
}, null, 8, b)),
|
43
|
+
l(t) ? C("", !0) : (r(), i("span", {
|
44
|
+
key: 2,
|
45
|
+
class: "edit-inline",
|
46
|
+
onClick: e[2] || (e[2] = //@ts-ignore
|
47
|
+
(...n) => l(m) && l(m)(...n))
|
48
|
+
}, [...e[3] || (e[3] = [
|
49
|
+
R("i", { class: "fa fa-edit" }, null, -1)
|
50
|
+
])]))
|
51
|
+
], 64);
|
52
|
+
};
|
53
|
+
}
|
54
|
+
});
|
55
|
+
export {
|
56
|
+
q as _
|
57
|
+
};
|