@web-utils/component 4.0.16 → 5.0.0-beta01
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/address-input/index.mjs +76 -74
- package/affix/index.mjs +71 -78
- package/aside-menu/index.mjs +20 -31
- package/avatar/index.mjs +94 -82
- package/awesome-button/index.mjs +54 -71
- package/capsule-tab/index.mjs +27 -32
- package/card/index.mjs +86 -69
- package/carousel/index.mjs +45 -32
- package/chat/index.mjs +441 -266
- package/chunk-file-uploader/index.mjs +2 -103
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
- package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
- package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
- package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
- package/chunks/ElementForm.ButuYDPA.mjs +627 -0
- package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
- package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
- package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
- package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
- package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
- package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
- package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
- package/chunks/FormBlock.BEENc22F.mjs +117 -0
- package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
- package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
- package/chunks/FormItem.H9OOvNzT.mjs +90 -0
- package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
- package/chunks/FormSelect.CanodoAI.mjs +1472 -0
- package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
- package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
- package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
- package/chunks/FyForm.vgR8ujEF.mjs +904 -0
- package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
- package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
- package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
- package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
- package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
- package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
- package/chunks/RecordVideo.B35_dLty.mjs +116 -0
- package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
- package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
- package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
- package/chunks/TableView.DyIdIxAg.mjs +484 -0
- package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
- package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
- package/chunks/VueCron.GfjodnyM.mjs +1766 -0
- package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
- package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
- package/chunks/checkbox.emIuFmnt.mjs +437 -0
- package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
- package/chunks/core.DJv6Qrae.mjs +51 -0
- package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
- package/chunks/dic.DgDfnovD.mjs +116 -0
- package/chunks/dictionary.5eKjWeAp.mjs +19 -0
- package/chunks/dictionary.DxZxP0ej.mjs +87 -0
- package/chunks/event.B4iwtUNO.mjs +4 -0
- package/chunks/event.eJ-c1Z3a.mjs +224 -0
- package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
- package/chunks/form-input.D25eDRMq.mjs +34 -0
- package/chunks/form-item.CgmUuw_n.mjs +714 -0
- package/chunks/form-pick.Axem0gOO.mjs +7 -0
- package/chunks/form-validate.B1KPCHqN.mjs +11 -0
- package/chunks/icon.CbS8-322.mjs +259 -0
- package/chunks/init.DwpukyOB.mjs +115 -0
- package/chunks/input.PejnqwSH.mjs +547 -0
- package/chunks/install.yLcn5MLL.mjs +84 -0
- package/chunks/message.BCmee5N0.mjs +400 -0
- package/chunks/overlay.DubSnqma.mjs +122 -0
- package/chunks/packages.BGjydzjm.mjs +56 -0
- package/chunks/permission.DgEVNWlh.mjs +16 -0
- package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
- package/chunks/radio.BotKXqJr.mjs +274 -0
- package/chunks/scroll.CzORc5Zk.mjs +28 -0
- package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
- package/chunks/slot.C6Ozd2e7.mjs +25 -0
- package/chunks/style.BmlGmjpO.mjs +325 -0
- package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
- package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
- package/chunks/tag.DPi-PLbb.mjs +141 -0
- package/chunks/teleport._VGEzK4d.mjs +22 -0
- package/chunks/tooltip.D50x7Rva.mjs +1926 -0
- package/chunks/typescript.DiWBU4nj.mjs +4 -0
- package/chunks/use-aria.BW7nWOl1.mjs +17 -0
- package/chunks/use-composition.mUaomyno.mjs +47 -0
- package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
- package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
- package/chunks/use-form-item.wsRjehHp.mjs +47 -0
- package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
- package/chunks/use-id.CFO5NeoV.mjs +15 -0
- package/chunks/use-size.DxrwTUwf.mjs +18 -0
- package/chunks/util.B3sjVZoZ.mjs +103 -0
- package/chunks/util.g-WQEec9.mjs +223 -0
- package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
- package/chunks/utils.Cs2fYBrT.mjs +60 -0
- package/chunks/utils.DsGhtCIO.mjs +14 -0
- package/chunks/validator.C4-z_t9p.mjs +5 -0
- package/chunks/vnode.D_SioRnx.mjs +14 -0
- package/code-mirror-editor/index.mjs +89 -88
- package/comment/index.mjs +62 -57
- package/configComponents.mjs +40 -50
- package/confirm-button/index.mjs +34 -46
- package/confirmable/index.mjs +7 -17
- package/context-menu/index.mjs +195 -174
- package/count-up/index.mjs +97 -105
- package/custom-scrollbar/index.mjs +91 -98
- package/data-box/index.mjs +64 -44
- package/data-card/index.mjs +60 -47
- package/data-card-text/index.mjs +63 -49
- package/data-display/index.mjs +71 -51
- package/data-icons/index.mjs +70 -50
- package/data-imgtext/index.mjs +67 -43
- package/data-operatext/index.mjs +51 -40
- package/data-panel/index.mjs +57 -44
- package/data-pay/index.mjs +105 -48
- package/data-price/index.mjs +48 -40
- package/data-progress/index.mjs +67 -44
- package/data-rotate/index.mjs +61 -44
- package/data-table-picker/index.mjs +119 -71
- package/data-tabs/index.mjs +67 -44
- package/dialog-form/index.mjs +139 -87
- package/dynamic-table/index.mjs +166 -109
- package/e-charts/index.mjs +174 -200
- package/easy-popup/index.mjs +91 -102
- package/editable-progress/index.mjs +112 -83
- package/editable-tree/index.mjs +2 -481
- package/element-dialog/index.mjs +2 -306
- package/ellipsis/index.mjs +124 -148
- package/empty-view/index.mjs +48 -65
- package/error-view/index.mjs +39 -51
- package/flex-column/index.mjs +32 -51
- package/flex-item/index.mjs +54 -64
- package/flex-row/index.mjs +32 -39
- package/flex-scroller/index.mjs +29 -30
- package/flow/index.mjs +240 -247
- package/flow-designer/index.mjs +2 -4709
- package/flow-node/index.mjs +56 -64
- package/flow-viewer/index.mjs +159 -157
- package/form-block/index.mjs +2 -147
- package/form-button/index.mjs +35 -47
- package/form-card/index.mjs +14 -25
- package/form-cascader/index.mjs +2 -115
- package/form-checkbox/index.mjs +89 -70
- package/form-checkbox-group/index.mjs +161 -113
- package/form-date-picker/index.mjs +155 -142
- package/form-holder/index.mjs +137 -109
- package/form-input/index.mjs +113 -86
- package/form-input-cron-expression/index.mjs +97 -76
- package/form-input-email/index.mjs +64 -51
- package/form-input-id-card/index.mjs +72 -54
- package/form-input-phone-number/index.mjs +71 -56
- package/form-input-tag/index.mjs +88 -61
- package/form-input-time/index.mjs +2 -73
- package/form-item/index.mjs +2 -142
- package/form-item-config-provider/index.mjs +46 -60
- package/form-item-group/index.mjs +2 -157
- package/form-radio-group/index.mjs +161 -121
- package/form-select/index.mjs +2 -179
- package/form-switch/index.mjs +2 -54
- package/form-table/index.mjs +131 -84
- package/form-table-plus/index.mjs +164 -108
- package/form-textarea/index.mjs +90 -56
- package/form-tree-select/index.mjs +89 -71
- package/form-tree-select-multiple/index.mjs +92 -77
- package/form-view/index.mjs +275 -207
- package/fy-array/index.mjs +121 -70
- package/fy-article/index.mjs +73 -60
- package/fy-cascader/index.mjs +113 -90
- package/fy-checkbox/index.mjs +96 -64
- package/fy-code/index.mjs +48 -50
- package/fy-curd/index.mjs +2 -1879
- package/fy-date/index.mjs +76 -41
- package/fy-draggable/index.mjs +322 -317
- package/fy-dynamic/index.mjs +259 -224
- package/fy-empty/index.mjs +35 -36
- package/fy-form/index.mjs +2 -640
- package/fy-form-design/index.mjs +2 -2852
- package/fy-form-design/style.css +1 -1
- package/fy-from/crud/zh.d.ts +1 -1
- package/fy-input/index.mjs +117 -97
- package/fy-input-color/index.mjs +77 -54
- package/fy-input-icon/index.mjs +129 -82
- package/fy-input-map/index.mjs +242 -183
- package/fy-input-number/index.mjs +74 -49
- package/fy-input-table/index.mjs +160 -105
- package/fy-input-tree/index.mjs +259 -178
- package/fy-progress/index.mjs +36 -39
- package/fy-radio/index.mjs +53 -37
- package/fy-rate/index.mjs +86 -70
- package/fy-select/index.mjs +224 -137
- package/fy-slider/index.mjs +68 -43
- package/fy-switch/index.mjs +67 -41
- package/fy-tabs/index.mjs +46 -46
- package/fy-time/index.mjs +81 -53
- package/fy-title/index.mjs +18 -27
- package/fy-tree/index.mjs +382 -286
- package/fy-u-editor/index.mjs +2 -357
- package/fy-upload/index.mjs +2 -421
- package/guide-steps/index.mjs +72 -71
- package/helper-function.d.ts +2 -30
- package/helper-function.mjs +41 -67
- package/highlight-j-s/index.mjs +50 -59
- package/icon-card/index.mjs +34 -36
- package/icon-temp/index.mjs +27 -27
- package/iframe-window/index.mjs +39 -32
- package/image-cropper/index.mjs +171 -73
- package/image-preview/index.mjs +187 -116
- package/image-viewer/index.mjs +69 -66
- package/index.d.ts +3 -9
- package/index.mjs +174 -489
- package/input-number-range/index.mjs +78 -58
- package/j-s-x-component/index.mjs +13 -15
- package/keyboard/index.mjs +2 -369
- package/license/index.mjs +106 -115
- package/loading-view/index.mjs +39 -51
- package/login/index.mjs +252 -120
- package/monaco-editor/index.mjs +2 -7
- package/name-avatar/index.mjs +61 -53
- package/nav-bar/index.mjs +33 -30
- package/not-implement/index.mjs +10 -22
- package/notice/index.mjs +100 -93
- package/package.json +3 -3
- package/page/index.mjs +18 -25
- package/page-header/index.mjs +27 -33
- package/page-index/index.mjs +121 -99
- package/page-index-top/index.mjs +79 -74
- package/page-skeleton/index.mjs +47 -44
- package/page-skeleton-new/index.mjs +79 -49
- package/pageable-table/index.mjs +2 -512
- package/pageable-view/index.mjs +279 -274
- package/photo-swipe/index.d.ts +4 -0
- package/photo-swipe/index.mjs +33 -36
- package/picker-table-view/index.mjs +224 -117
- package/present-view/index.mjs +266 -196
- package/queue/index.mjs +45 -53
- package/record-video/index.mjs +2 -134
- package/resize-observer/index.mjs +43 -46
- package/search/index.mjs +116 -107
- package/sign/index.mjs +103 -110
- package/sign-panel/index.mjs +182 -141
- package/skeleton/index.mjs +51 -54
- package/skeleton-panel/index.mjs +33 -37
- package/split-pane/index.mjs +3 -196
- package/stateful/index.mjs +69 -73
- package/static-pageable-table/index.mjs +72 -64
- package/sub-table/index.mjs +508 -206
- package/sub-table-plus/index.mjs +592 -230
- package/swiper/index.mjs +128 -120
- package/tab/index.mjs +117 -119
- package/tab-item/index.mjs +48 -56
- package/table-column/index.mjs +2 -225
- package/table-view/index.mjs +3 -326
- package/tabs-view/index.mjs +109 -104
- package/tag-render/index.mjs +79 -67
- package/text-ellipsis/index.mjs +94 -77
- package/toolbar/index.mjs +2 -254
- package/toolbar-button/index.mjs +145 -120
- package/verify/index.mjs +58 -64
- package/vue-cron/index.mjs +2 -1180
- package/vue-qr-code/index.mjs +30 -54
- package/vue-quill-editor/index.mjs +123 -99
- package/vue-tags-input/index.mjs +348 -431
- package/vue-tree-select/index.mjs +2 -2627
- package/vue-video-player/index.mjs +135 -136
- package/watermark/index.mjs +46 -74
- package/web-types.json +197 -975
- package/x-input-tag/index.mjs +144 -106
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
- package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dataformat.CpqOeGBl.mjs +0 -154
- package/chunks/dic.Dkl-leRW.mjs +0 -128
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/dictionary.DqiP9x2m.mjs +0 -25
- package/chunks/event.9aDS6jcw.mjs +0 -236
- package/chunks/form-input.CvFdwlEV.mjs +0 -31
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/form-pick.BFTIVn_i.mjs +0 -11
- package/chunks/form-validate.CVarNHKX.mjs +0 -12
- package/chunks/helper.BiMLcEEk.mjs +0 -41
- package/chunks/index.9OxHjTIE.mjs +0 -16
- package/chunks/index.B2TRddqf.mjs +0 -184
- package/chunks/index.BmYCjxZQ.mjs +0 -47
- package/chunks/init.DAsXSoLW.mjs +0 -122
- package/chunks/packages.ByyangTp.mjs +0 -58
- package/chunks/permission.CO31YIkD.mjs +0 -16
- package/chunks/slot.DXIbhGat.mjs +0 -27
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
- package/chunks/util.DqFv_pWg.mjs +0 -241
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/color-picker/index.mjs +0 -78
- package/egd-collapse/index.mjs +0 -62
- package/egd-collapse-item/index.mjs +0 -72
- package/form-input-number/index.mjs +0 -69
- package/form-input-number/style.css +0 -1
- package/input-number/index.mjs +0 -232
- package/input-number/style.css +0 -1
- package/keep-view-alive/index.mjs +0 -117
- package/search-popover/index.mjs +0 -118
- package/search-popover/style.css +0 -1
- /package/{base.css → utils/style.css} +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import w from "element-ui/lib/loading";
|
|
2
|
-
import B from "element-ui/lib/message-box";
|
|
3
|
-
import { isFunction as a } from "@web-utils/core";
|
|
4
|
-
import { g as d } from "./index.B2TRddqf.mjs";
|
|
5
|
-
async function k(t, e, n) {
|
|
6
|
-
const { stop: o, prevent: r, message: f, loadable: l, loadingText: y, confirmable: x, confirmType: b, confirmText: T, confirmTitle: S } = e;
|
|
7
|
-
o && t.stopPropagation(), r && t.preventDefault();
|
|
8
|
-
const { before: c, click: g, cancel: m, after: p } = n;
|
|
9
|
-
if (a(g))
|
|
10
|
-
try {
|
|
11
|
-
let i = !0;
|
|
12
|
-
if (a(c) && (i = await c(t)), i === !1)
|
|
13
|
-
return;
|
|
14
|
-
x && await d(B).confirm(f || T, {
|
|
15
|
-
type: b,
|
|
16
|
-
title: S
|
|
17
|
-
});
|
|
18
|
-
let s;
|
|
19
|
-
l && (s = d(w).service({
|
|
20
|
-
background: "rgba(0,0,0,0.3)",
|
|
21
|
-
text: y
|
|
22
|
-
}));
|
|
23
|
-
let u;
|
|
24
|
-
try {
|
|
25
|
-
u = await g(t);
|
|
26
|
-
} catch {
|
|
27
|
-
}
|
|
28
|
-
l && s.close(), a(p) && await p(t, u);
|
|
29
|
-
} catch (i) {
|
|
30
|
-
a(m) && await m(i);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const F = {
|
|
34
|
-
functional: !0,
|
|
35
|
-
props: {
|
|
36
|
-
stop: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
},
|
|
40
|
-
prevent: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !0
|
|
43
|
-
},
|
|
44
|
-
text: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: ""
|
|
47
|
-
},
|
|
48
|
-
message: String,
|
|
49
|
-
confirmable: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !0
|
|
52
|
-
},
|
|
53
|
-
confirmText: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "你确定要删除该记录吗?"
|
|
56
|
-
},
|
|
57
|
-
confirmType: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "warning"
|
|
60
|
-
},
|
|
61
|
-
confirmTitle: String,
|
|
62
|
-
loadable: Boolean,
|
|
63
|
-
loadingText: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: "正在处理中请稍候..."
|
|
66
|
-
},
|
|
67
|
-
tag: {
|
|
68
|
-
type: String,
|
|
69
|
-
default: "i"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
render(t, { props: e, data: n, children: o, listeners: r }) {
|
|
73
|
-
return t(
|
|
74
|
-
e.tag,
|
|
75
|
-
{
|
|
76
|
-
...n,
|
|
77
|
-
on: { click: (f) => k(f, e, r) },
|
|
78
|
-
props: e
|
|
79
|
-
},
|
|
80
|
-
o || e.text
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
F as c
|
|
86
|
-
};
|
package/chunks/core.0Exl13Mz.mjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { hyphenate as f } from "@web-utils/core";
|
|
2
|
-
const a = (n) => {
|
|
3
|
-
const t = {};
|
|
4
|
-
for (const o in n)
|
|
5
|
-
t[f(o)] = n[o];
|
|
6
|
-
return t;
|
|
7
|
-
}, h = (n, t = "id", o = "label") => {
|
|
8
|
-
const i = [];
|
|
9
|
-
function e(s, c) {
|
|
10
|
-
if (!s) return;
|
|
11
|
-
const r = [...c, { [t]: s[t], [o]: s[o] }];
|
|
12
|
-
if (!s.children || s.children.length === 0) {
|
|
13
|
-
i.push(r);
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
s.children.forEach((l) => {
|
|
17
|
-
e(l, r);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return n.forEach((s) => e(s, [])), i;
|
|
21
|
-
}, u = (n) => {
|
|
22
|
-
const t = [];
|
|
23
|
-
return n && (isArray(n) ? n.forEach((o) => {
|
|
24
|
-
isArray(o) ? t.push(...u(o)) : o && t.push(o);
|
|
25
|
-
}) : n && t.push(n)), t;
|
|
26
|
-
}, b = (n, t = "id", o = "label") => {
|
|
27
|
-
const i = [];
|
|
28
|
-
return h(n).forEach((e) => {
|
|
29
|
-
const s = [], c = [];
|
|
30
|
-
for (let r = 0; r < e.length; r++)
|
|
31
|
-
s.push(e[r][t]), c.push(e[r][o]);
|
|
32
|
-
i.push({
|
|
33
|
-
value: s.join("/"),
|
|
34
|
-
label: c.join("/")
|
|
35
|
-
});
|
|
36
|
-
}), i;
|
|
37
|
-
}, j = (n, t = "id", o = "label") => {
|
|
38
|
-
const i = {};
|
|
39
|
-
return h(n).forEach((e) => {
|
|
40
|
-
const s = [], c = [];
|
|
41
|
-
for (let r = 0; r < e.length; r++)
|
|
42
|
-
s.push(e[r][t]), c.push(e[r][o]);
|
|
43
|
-
i[s.join("/")] = {
|
|
44
|
-
value: s.join("/"),
|
|
45
|
-
label: c.join("/")
|
|
46
|
-
};
|
|
47
|
-
}), i;
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
b as a,
|
|
51
|
-
j as b,
|
|
52
|
-
u as f,
|
|
53
|
-
a as t
|
|
54
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { isBlank as l } from "@web-utils/core";
|
|
2
|
-
import { S as E, K as A, b as I, M as f, A as h, R as T, c as p, e as m, f as L, g as S, h as B, I as _ } from "./util.DqFv_pWg.mjs";
|
|
3
|
-
const P = {
|
|
4
|
-
common: {
|
|
5
|
-
condition: "条件",
|
|
6
|
-
display: "显示",
|
|
7
|
-
hide: "隐藏"
|
|
8
|
-
},
|
|
9
|
-
tip: {
|
|
10
|
-
select: "请选择",
|
|
11
|
-
input: "请输入"
|
|
12
|
-
},
|
|
13
|
-
check: {
|
|
14
|
-
checkAll: "全选"
|
|
15
|
-
},
|
|
16
|
-
upload: {
|
|
17
|
-
upload: "点击上传",
|
|
18
|
-
tip: "将文件拖到此处,或"
|
|
19
|
-
},
|
|
20
|
-
time: {
|
|
21
|
-
start: "开始",
|
|
22
|
-
end: "结束"
|
|
23
|
-
},
|
|
24
|
-
date: {
|
|
25
|
-
start: "开始",
|
|
26
|
-
end: "结束",
|
|
27
|
-
t: "今日",
|
|
28
|
-
y: "昨日",
|
|
29
|
-
n: "近7天",
|
|
30
|
-
a: "全部"
|
|
31
|
-
},
|
|
32
|
-
form: {
|
|
33
|
-
printBtn: "打 印",
|
|
34
|
-
mockBtn: "模 拟",
|
|
35
|
-
submitBtn: "提 交",
|
|
36
|
-
emptyBtn: "清 空"
|
|
37
|
-
},
|
|
38
|
-
crud: {
|
|
39
|
-
filter: {
|
|
40
|
-
addBtn: "新增条件",
|
|
41
|
-
clearBtn: "清空数据",
|
|
42
|
-
resetBtn: "清空条件",
|
|
43
|
-
cancelBtn: "取 消",
|
|
44
|
-
submitBtn: "确 定"
|
|
45
|
-
},
|
|
46
|
-
column: {
|
|
47
|
-
name: "列名",
|
|
48
|
-
hide: "隐藏",
|
|
49
|
-
fixed: "冻结",
|
|
50
|
-
filters: "过滤",
|
|
51
|
-
sortable: "排序",
|
|
52
|
-
index: "顺序",
|
|
53
|
-
width: "宽度"
|
|
54
|
-
},
|
|
55
|
-
tipStartTitle: "当前表格已选择",
|
|
56
|
-
tipEndTitle: "项",
|
|
57
|
-
editTitle: "编 辑",
|
|
58
|
-
copyTitle: "复 制",
|
|
59
|
-
addTitle: "新 增",
|
|
60
|
-
viewTitle: "查 看",
|
|
61
|
-
filterTitle: "过滤条件",
|
|
62
|
-
showTitle: "列显隐",
|
|
63
|
-
menu: "操作",
|
|
64
|
-
addBtn: "新 增",
|
|
65
|
-
show: "显 示",
|
|
66
|
-
hide: "隐 藏",
|
|
67
|
-
open: "展 开",
|
|
68
|
-
shrink: "收 缩",
|
|
69
|
-
printBtn: "打 印",
|
|
70
|
-
excelBtn: "导 出",
|
|
71
|
-
updateBtn: "修 改",
|
|
72
|
-
cancelBtn: "取 消",
|
|
73
|
-
searchBtn: "搜 索",
|
|
74
|
-
emptyBtn: "清 空",
|
|
75
|
-
menuBtn: "功 能",
|
|
76
|
-
saveBtn: "保 存",
|
|
77
|
-
viewBtn: "查 看",
|
|
78
|
-
editBtn: "编 辑",
|
|
79
|
-
copyBtn: "复 制",
|
|
80
|
-
delBtn: "删 除"
|
|
81
|
-
}
|
|
82
|
-
}, k = (e, n) => {
|
|
83
|
-
n = n || "";
|
|
84
|
-
const t = n.split(".");
|
|
85
|
-
let a = e, i = null;
|
|
86
|
-
for (let c = 0, o = t.length; c < o; c++) {
|
|
87
|
-
const d = t[c];
|
|
88
|
-
if (!a) break;
|
|
89
|
-
if (c === o - 1) {
|
|
90
|
-
i = a[d];
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
a = a[d];
|
|
94
|
-
}
|
|
95
|
-
return i;
|
|
96
|
-
}, u = (e) => k(P, e), R = (e = []) => (e.forEach((n) => {
|
|
97
|
-
const t = n.cascader;
|
|
98
|
-
if (!l(t)) {
|
|
99
|
-
const a = n.prop;
|
|
100
|
-
t.forEach((i) => {
|
|
101
|
-
const c = S(e, i);
|
|
102
|
-
c !== -1 && (c.parentProp = a);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}), e);
|
|
106
|
-
let r = 0;
|
|
107
|
-
const v = (e, n = 12, t = !1) => {
|
|
108
|
-
t && (r = 0);
|
|
109
|
-
const a = 24;
|
|
110
|
-
return r = r + (e.span || n) + (e.offset || 0), r === a ? r = 0 : r > a ? r = (e.span || n) + (e.offset || 0) : e.row && r !== a && (e.count = a - r, r = 0), e;
|
|
111
|
-
}, C = (e, n) => {
|
|
112
|
-
const { type: t, multiple: a, dataType: i, separator: c = I, alone: o, emitPath: d, range: y } = n;
|
|
113
|
-
let s = e;
|
|
114
|
-
return f.includes(t) && a === !0 || h.includes(t) && d !== !1 || T.includes(t) && y === !0 ? (Array.isArray(s) || (l(s) ? s = [] : s = `${s}`.split(c) || []), s.forEach((b, g) => {
|
|
115
|
-
s[g] = p(b, i);
|
|
116
|
-
}), m.includes(t) && l(s) && o && (s = [""])) : s = p(s, i), s;
|
|
117
|
-
}, $ = (e) => {
|
|
118
|
-
const n = e.type, t = e.searchRange;
|
|
119
|
-
let a = n;
|
|
120
|
-
if (e.searchType) return e.searchType;
|
|
121
|
-
if (["radio", "checkbox", "switch"].includes(n))
|
|
122
|
-
a = "select";
|
|
123
|
-
else if (B.includes(n)) {
|
|
124
|
-
const i = "range";
|
|
125
|
-
t ? n.includes(i) ? a = n : a = n + i : a = n.replace(i, "");
|
|
126
|
-
} else ["textarea"].includes(n) && (a = "input");
|
|
127
|
-
return a;
|
|
128
|
-
}, N = (e, n) => {
|
|
129
|
-
let t = e || "input";
|
|
130
|
-
if (l(n))
|
|
131
|
-
m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = `input-${e}`);
|
|
132
|
-
else return n;
|
|
133
|
-
return A + t;
|
|
134
|
-
}, M = (e = []) => {
|
|
135
|
-
let n = {};
|
|
136
|
-
return e.forEach((t) => {
|
|
137
|
-
h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = L(n, t.bind)), l(t.value) || (n[t.prop] = t.value);
|
|
138
|
-
}), {
|
|
139
|
-
tableForm: n
|
|
140
|
-
};
|
|
141
|
-
}, O = (e) => {
|
|
142
|
-
const n = e.placeholder, t = e.label;
|
|
143
|
-
return l(n) ? E.includes(e.type) ? `${u("tip.select")} ${t}` : `${u("tip.input")} ${t}` : n;
|
|
144
|
-
};
|
|
145
|
-
export {
|
|
146
|
-
O as a,
|
|
147
|
-
N as b,
|
|
148
|
-
R as c,
|
|
149
|
-
v as d,
|
|
150
|
-
M as f,
|
|
151
|
-
$ as g,
|
|
152
|
-
C as i,
|
|
153
|
-
u as t
|
|
154
|
-
};
|
package/chunks/dic.Dkl-leRW.mjs
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { isBlank as P } from "@web-utils/core";
|
|
2
|
-
import { m as w, n as E } from "./util.DqFv_pWg.mjs";
|
|
3
|
-
const F = (d, r = []) => new Promise((i) => {
|
|
4
|
-
const c = [], s = [], a = {};
|
|
5
|
-
d.forEach((t) => {
|
|
6
|
-
t.parentProp && c.push(t);
|
|
7
|
-
}), r.forEach((t, e) => {
|
|
8
|
-
c.forEach((o) => {
|
|
9
|
-
o.hide !== !0 && o.dicFlag !== !1 && s.push(
|
|
10
|
-
new Promise((n) => {
|
|
11
|
-
P(t[o.parentProp]) ? n({
|
|
12
|
-
prop: o.prop,
|
|
13
|
-
data: [],
|
|
14
|
-
index: e
|
|
15
|
-
}) : o.dicUrl && D({
|
|
16
|
-
url: `${o.dicUrl.replace("{{key}}", t[o.parentProp])}`,
|
|
17
|
-
props: o.props,
|
|
18
|
-
method: o.dicMethod,
|
|
19
|
-
headers: o.dicHeaders,
|
|
20
|
-
formatter: o.dicFormatter,
|
|
21
|
-
query: o.dicQuery,
|
|
22
|
-
form: t
|
|
23
|
-
}).then((u) => {
|
|
24
|
-
n({
|
|
25
|
-
prop: o.prop,
|
|
26
|
-
data: u,
|
|
27
|
-
index: e
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
}), Promise.all(s).then((t) => {
|
|
34
|
-
t.forEach((e) => {
|
|
35
|
-
P(a[e.index]) && (a[e.index] = {}), a[e.index][e.prop] = e.data;
|
|
36
|
-
}), i(a);
|
|
37
|
-
});
|
|
38
|
-
}), U = (d) => {
|
|
39
|
-
let r = [];
|
|
40
|
-
return new Promise((i, c) => {
|
|
41
|
-
r = k(d).ajaxdic, x(r).then((a) => {
|
|
42
|
-
i(a);
|
|
43
|
-
}).catch((a) => {
|
|
44
|
-
c(a);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}, K = (d) => {
|
|
48
|
-
const r = {}, i = d.dicData || {};
|
|
49
|
-
return d.column.forEach((c) => {
|
|
50
|
-
c.dicData && (r[c.prop] = w(c.dicData, c.props, c.dataType));
|
|
51
|
-
}), Object.assign(i, r);
|
|
52
|
-
};
|
|
53
|
-
function k(d) {
|
|
54
|
-
const r = d.column || [], i = [], c = {};
|
|
55
|
-
let s = [];
|
|
56
|
-
return r.forEach((a) => {
|
|
57
|
-
const t = a.dicData, e = a.dicUrl, o = a.prop, n = a.parentProp;
|
|
58
|
-
s = s.concat(a.cascader || []), Array.isArray(t) && (c[o] = t), !(a.dicFlag === !1 || a.lazy === !0 || s.includes(o)) && e && !n && i.push({
|
|
59
|
-
url: e,
|
|
60
|
-
name: o,
|
|
61
|
-
method: a.dicMethod,
|
|
62
|
-
headers: r.dicHeaders,
|
|
63
|
-
formatter: a.dicFormatter,
|
|
64
|
-
props: a.props,
|
|
65
|
-
dataType: a.dataType,
|
|
66
|
-
resKey: (a.props || {}).res,
|
|
67
|
-
query: a.dicQuery || {}
|
|
68
|
-
});
|
|
69
|
-
}), {
|
|
70
|
-
ajaxdic: i,
|
|
71
|
-
locationdic: c
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function x(d) {
|
|
75
|
-
const r = {}, i = [];
|
|
76
|
-
return new Promise((c) => {
|
|
77
|
-
d.forEach((s) => {
|
|
78
|
-
i.push(
|
|
79
|
-
new Promise((a) => {
|
|
80
|
-
D(
|
|
81
|
-
Object.assign(s, {
|
|
82
|
-
url: `${s.url.replace("{{key}}", "")}`
|
|
83
|
-
})
|
|
84
|
-
).then((t) => {
|
|
85
|
-
t = w(t, s.props, s.dataType), a(t);
|
|
86
|
-
}).catch(() => {
|
|
87
|
-
a([]);
|
|
88
|
-
});
|
|
89
|
-
})
|
|
90
|
-
);
|
|
91
|
-
}), Promise.all(i).then((s) => {
|
|
92
|
-
d.forEach((a, t) => {
|
|
93
|
-
r[a.name] = s[t];
|
|
94
|
-
}), c(r);
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
const D = (d) => {
|
|
99
|
-
let { url: r, query: i, method: c, resKey: s, props: a, formatter: t, headers: e = {}, value: o = "", column: n, form: u = {} } = d;
|
|
100
|
-
n && (r = n.dicUrl, c = n.dicMethod, e = n.headers || {}, i = n.dicQuery || {}, t = n.dicFormatter, a = n.props);
|
|
101
|
-
const g = "key";
|
|
102
|
-
r = r || "";
|
|
103
|
-
let m;
|
|
104
|
-
const y = {};
|
|
105
|
-
return m = r.match(/[^{}]+(?=})/g) || [], m.forEach((p) => {
|
|
106
|
-
const f = `{{${p}}}`, h = u[p];
|
|
107
|
-
p === g ? r = r.replace(f, o) : r = r.replace(f, h);
|
|
108
|
-
}), c === "post" && (m = Object.keys(i), m.forEach((p) => {
|
|
109
|
-
const f = i[p];
|
|
110
|
-
typeof f == "string" && f.match(/\{{|}}/g) ? y[p] = u[f.replace(/\{{|}}/g, "")] : y[p] = f;
|
|
111
|
-
})), a && (s = (a || {}).res || s), new Promise((p) => {
|
|
112
|
-
const f = (h) => {
|
|
113
|
-
let l = [];
|
|
114
|
-
typeof t == "function" ? l = t(h.data) : l = E(h.data, s), p(l);
|
|
115
|
-
};
|
|
116
|
-
c === "post" ? window.axios.post(r, y, { headers: e }).then((h) => {
|
|
117
|
-
f(h);
|
|
118
|
-
}).catch(() => [p([])]) : window.axios.get(r, { params: i, headers: e }).then((h) => {
|
|
119
|
-
f(h);
|
|
120
|
-
}).catch(() => [p([])]);
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
export {
|
|
124
|
-
U as a,
|
|
125
|
-
K as b,
|
|
126
|
-
F as l,
|
|
127
|
-
D as s
|
|
128
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { a as g, b as l } from "./core.0Exl13Mz.mjs";
|
|
2
|
-
import { getDictTreeByType as d, remote as w } from "../configComponents.mjs";
|
|
3
|
-
const $ = {}, h = {}, m = {}, b = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
4
|
-
let e = t;
|
|
5
|
-
o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
|
|
6
|
-
const a = $[e];
|
|
7
|
-
return i && a ? a : o ? K(t, i, { idAsValue: n, labelAsValue: c }) : C(t, i);
|
|
8
|
-
}, C = (t, i = !0) => {
|
|
9
|
-
if (m[t])
|
|
10
|
-
return m[t];
|
|
11
|
-
const r = new Promise((o, n) => {
|
|
12
|
-
i && $[t] ? o($[t]) : w(t).then((c) => {
|
|
13
|
-
let e = c.data.data;
|
|
14
|
-
if (i) {
|
|
15
|
-
const a = {};
|
|
16
|
-
e.forEach(({ label: f, value: s }) => {
|
|
17
|
-
a[s] = Object.freeze({ label: f, value: s });
|
|
18
|
-
}), h[t] = a, e = Object.freeze(e), $[t] = e;
|
|
19
|
-
}
|
|
20
|
-
m[t] = null, o(e);
|
|
21
|
-
}).catch((c) => {
|
|
22
|
-
m[t] = null, n(c);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
return m[t] = r, r;
|
|
26
|
-
}, K = (t, i = !0, { idAsValue: r, labelAsValue: o } = {}) => {
|
|
27
|
-
const n = `${t}-${r}-${o}`;
|
|
28
|
-
if (m[n])
|
|
29
|
-
return m[n];
|
|
30
|
-
const c = new Promise((e, a) => {
|
|
31
|
-
i && $[n] ? e($[n]) : d(t, { idAsValue: r, labelAsValue: o }).then((f) => {
|
|
32
|
-
const s = f.data.data;
|
|
33
|
-
i && ($[n] = s, $[`${n}-options`] = g(s), h[n] = l(s)), m[n] = null, e(s);
|
|
34
|
-
}).catch((f) => {
|
|
35
|
-
m[n] = null, a(f);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
return m[n] = c, c;
|
|
39
|
-
}, O = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
40
|
-
let e = t;
|
|
41
|
-
o && (e = `${t}-${n}-${c}`);
|
|
42
|
-
const a = h[e];
|
|
43
|
-
let f;
|
|
44
|
-
if (r && a)
|
|
45
|
-
f = a[i];
|
|
46
|
-
else {
|
|
47
|
-
let s = await b(t, r, { treeDict: o, idAsValue: n, labelAsValue: c });
|
|
48
|
-
if (r)
|
|
49
|
-
f = h[e][i];
|
|
50
|
-
else {
|
|
51
|
-
o && (s = g(s));
|
|
52
|
-
for (let u = 0; u < s.length; u++) {
|
|
53
|
-
const D = s[u];
|
|
54
|
-
if (D.value === i) {
|
|
55
|
-
f = D;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return f;
|
|
62
|
-
}, z = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
63
|
-
var e;
|
|
64
|
-
return ((e = await O(t, i, r, { treeDict: o, idAsValue: n, labelAsValue: c })) == null ? void 0 : e.label) || i || "";
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
z as g
|
|
68
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const e = () => [], i = {
|
|
2
|
-
props: {
|
|
3
|
-
dictType: String
|
|
4
|
-
},
|
|
5
|
-
data() {
|
|
6
|
-
return {
|
|
7
|
-
dictItems: []
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
watch: {
|
|
11
|
-
dictType: {
|
|
12
|
-
immediate: !0,
|
|
13
|
-
async handler(t) {
|
|
14
|
-
t ? this.dictItems = await e(t, !0, {
|
|
15
|
-
treeDict: this.treeDict,
|
|
16
|
-
idAsValue: this.idAsValue,
|
|
17
|
-
labelAsValue: this.labelAsValue
|
|
18
|
-
}) : this.dictItems = [];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
i as d
|
|
25
|
-
};
|