@web-utils/component 4.0.15 → 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 -76
- 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 -71
- package/carousel/index.mjs +45 -34
- package/chat/index.mjs +440 -276
- package/chunk-file-uploader/index.mjs +2 -445
- package/chunk-file-uploader/style.css +1 -1
- 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 -47
- package/data-card/index.mjs +60 -49
- package/data-card-text/index.mjs +63 -51
- package/data-display/index.mjs +71 -53
- package/data-icons/index.mjs +70 -53
- package/data-imgtext/index.mjs +67 -46
- package/data-operatext/index.mjs +51 -42
- package/data-panel/index.mjs +57 -47
- package/data-pay/index.mjs +105 -52
- package/data-price/index.mjs +48 -42
- package/data-progress/index.mjs +67 -48
- package/data-rotate/index.mjs +61 -47
- package/data-table-picker/index.mjs +119 -74
- package/data-tabs/index.mjs +67 -47
- package/dialog-form/index.mjs +139 -89
- package/dynamic-table/index.mjs +166 -114
- package/e-charts/index.mjs +174 -200
- package/easy-popup/index.mjs +91 -102
- package/editable-progress/index.mjs +112 -85
- package/editable-tree/index.mjs +2 -485
- package/element-dialog/index.mjs +2 -307
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- 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 -248
- package/flow-designer/index.mjs +2 -5983
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +56 -64
- package/flow-viewer/index.mjs +159 -157
- package/form-block/index.mjs +2 -149
- package/form-button/index.mjs +35 -47
- package/form-card/index.mjs +14 -25
- package/form-cascader/index.mjs +2 -116
- package/form-checkbox/index.mjs +89 -71
- package/form-checkbox-group/index.mjs +161 -116
- package/form-date-picker/index.mjs +155 -144
- package/form-holder/index.mjs +137 -110
- package/form-input/index.mjs +113 -87
- package/form-input-cron-expression/index.mjs +97 -79
- package/form-input-email/index.mjs +64 -52
- package/form-input-id-card/index.mjs +72 -55
- package/form-input-phone-number/index.mjs +71 -57
- package/form-input-tag/index.mjs +88 -62
- package/form-input-time/index.mjs +2 -74
- package/form-item/index.mjs +2 -5
- package/form-item-config-provider/index.mjs +46 -60
- package/form-item-group/index.mjs +2 -160
- package/form-radio-group/index.mjs +161 -122
- package/form-select/index.mjs +2 -181
- package/form-switch/index.mjs +2 -55
- package/form-table/index.mjs +131 -85
- package/form-table-plus/index.mjs +164 -109
- package/form-textarea/index.mjs +90 -57
- package/form-tree-select/index.mjs +89 -72
- package/form-tree-select-multiple/index.mjs +92 -78
- package/form-view/index.mjs +275 -211
- package/fy-array/index.mjs +121 -74
- package/fy-article/index.mjs +73 -60
- package/fy-cascader/index.mjs +113 -91
- package/fy-checkbox/index.mjs +96 -66
- package/fy-code/index.mjs +48 -50
- package/fy-curd/index.mjs +2 -1903
- package/fy-date/index.mjs +76 -42
- package/fy-draggable/index.mjs +322 -318
- package/fy-dynamic/index.mjs +259 -227
- package/fy-empty/index.mjs +35 -36
- package/fy-form/index.mjs +2 -17
- package/fy-form-design/index.mjs +2 -2890
- package/fy-form-design/style.css +1 -1
- package/fy-from/crud/zh.d.ts +6 -6
- package/fy-input/index.mjs +117 -99
- package/fy-input-color/index.mjs +77 -56
- package/fy-input-icon/index.mjs +129 -85
- package/fy-input-map/index.mjs +242 -186
- package/fy-input-number/index.mjs +74 -50
- package/fy-input-table/index.mjs +160 -109
- package/fy-input-tree/index.mjs +259 -182
- package/fy-progress/index.mjs +36 -40
- package/fy-radio/index.mjs +53 -38
- package/fy-rate/index.mjs +86 -71
- package/fy-select/index.mjs +223 -140
- package/fy-slider/index.mjs +68 -44
- package/fy-switch/index.mjs +67 -42
- package/fy-tabs/index.mjs +46 -48
- package/fy-time/index.mjs +81 -53
- package/fy-title/index.mjs +18 -27
- package/fy-tree/index.mjs +382 -292
- package/fy-u-editor/index.mjs +2 -357
- package/fy-upload/index.mjs +2 -423
- package/guide-steps/index.mjs +72 -73
- 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 -33
- package/image-cropper/index.mjs +171 -75
- package/image-preview/index.mjs +187 -118
- package/image-viewer/index.mjs +69 -66
- package/index.d.ts +3 -9
- package/index.mjs +173 -488
- package/input-number-range/index.mjs +78 -59
- 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 -125
- package/monaco-editor/index.mjs +2 -7
- package/name-avatar/index.mjs +61 -53
- package/nav-bar/index.mjs +33 -31
- package/not-implement/index.mjs +10 -22
- package/notice/index.mjs +100 -94
- package/package.json +3 -3
- package/page/index.mjs +18 -25
- package/page-header/index.mjs +27 -33
- package/page-index/index.mjs +121 -100
- package/page-index-top/index.mjs +79 -79
- package/page-skeleton/index.mjs +48 -45
- package/page-skeleton-new/index.mjs +79 -50
- package/pageable-table/index.mjs +2 -522
- package/pageable-view/index.mjs +279 -275
- package/photo-swipe/index.d.ts +4 -0
- package/photo-swipe/index.mjs +33 -36
- package/picker-table-view/index.mjs +224 -126
- package/present-view/index.mjs +266 -200
- 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 -109
- 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 -38
- package/split-pane/index.mjs +3 -197
- package/stateful/index.mjs +69 -73
- package/static-pageable-table/index.mjs +72 -66
- package/sub-table/index.mjs +508 -219
- package/sub-table-plus/index.mjs +592 -19
- package/swiper/index.mjs +128 -121
- package/tab/index.mjs +117 -119
- package/tab-item/index.mjs +48 -56
- package/table-column/index.mjs +2 -5
- package/table-view/index.mjs +3 -334
- package/tabs-view/index.mjs +109 -106
- package/tag-render/index.mjs +79 -69
- package/text-ellipsis/index.mjs +94 -78
- package/toolbar/index.mjs +2 -255
- package/toolbar-button/index.mjs +145 -121
- package/verify/index.mjs +58 -64
- package/vue-cron/index.mjs +2 -1188
- 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 -109
- package/chunks/ElementTaskConfig.AvBOzAni.mjs +0 -325
- package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
- package/chunks/FyForm.DriwCJ7b.mjs +0 -765
- package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
- package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
- package/chunks/TableColumn.BzivvXMF.mjs +0 -337
- package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
- package/chunks/confirmable-mixin.BFZb6pcK.mjs +0 -86
- package/chunks/dataformat.DJoNBlmI.mjs +0 -154
- package/chunks/dic.BinnDitI.mjs +0 -128
- package/chunks/dictionary.DqiP9x2m.mjs +0 -25
- package/chunks/event.DSlcqYHL.mjs +0 -236
- package/chunks/form-input.BtS_J5a2.mjs +0 -31
- 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.BmYCjxZQ.mjs +0 -47
- package/chunks/index.CIfe3UB3.mjs +0 -16
- package/chunks/index.Cn7aq-Et.mjs +0 -184
- package/chunks/init.xOlFpTyZ.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/tab-mixin.BNK6dxLN.mjs +0 -81
- package/chunks/util.DI42t5GU.mjs +0 -241
- package/color-picker/index.mjs +0 -157
- package/egd-collapse/index.mjs +0 -62
- package/egd-collapse-item/index.mjs +0 -72
- package/form-input-number/index.mjs +0 -70
- package/form-input-number/style.css +0 -1
- package/input-number/index.mjs +0 -233
- 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.Cn7aq-Et.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
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { isBlank as l } from "@web-utils/core";
|
|
2
|
-
import { S as E, K as A, D as I, M as f, A as h, R as T, m as p, b as m, n as L, p as S, f as B, I as _ } from "./util.DI42t5GU.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
|
-
N as a,
|
|
147
|
-
R as b,
|
|
148
|
-
v as c,
|
|
149
|
-
$ as d,
|
|
150
|
-
M as f,
|
|
151
|
-
O as g,
|
|
152
|
-
C as i,
|
|
153
|
-
u as t
|
|
154
|
-
};
|
package/chunks/dic.BinnDitI.mjs
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { isBlank as P } from "@web-utils/core";
|
|
2
|
-
import { q as w, r as E } from "./util.DI42t5GU.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
|
-
}, q = (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 y;
|
|
104
|
-
const m = {};
|
|
105
|
-
return y = r.match(/[^{}]+(?=})/g) || [], y.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" && (y = Object.keys(i), y.forEach((p) => {
|
|
109
|
-
const f = i[p];
|
|
110
|
-
typeof f == "string" && f.match(/\{{|}}/g) ? m[p] = u[f.replace(/\{{|}}/g, "")] : m[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, m, { 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
|
-
q as b,
|
|
126
|
-
F as l,
|
|
127
|
-
D as s
|
|
128
|
-
};
|
|
@@ -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
|
-
};
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { k as r, w as i, D as a } from "./util.DI42t5GU.mjs";
|
|
2
|
-
import { s as l } from "./slot.DXIbhGat.mjs";
|
|
3
|
-
import { isBlank as s } from "@web-utils/core";
|
|
4
|
-
import { i as p } from "./dataformat.DJoNBlmI.mjs";
|
|
5
|
-
const f = {
|
|
6
|
-
mixins: [l],
|
|
7
|
-
data() {
|
|
8
|
-
return {
|
|
9
|
-
stringMode: !1,
|
|
10
|
-
name: "",
|
|
11
|
-
text: void 0,
|
|
12
|
-
propsHttpDefault: i,
|
|
13
|
-
propsDefault: r
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
props: {
|
|
17
|
-
blur: Function,
|
|
18
|
-
focus: Function,
|
|
19
|
-
change: Function,
|
|
20
|
-
click: Function,
|
|
21
|
-
typeformat: Function,
|
|
22
|
-
control: Function,
|
|
23
|
-
separator: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: a
|
|
26
|
-
},
|
|
27
|
-
params: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default: () => ({})
|
|
30
|
-
},
|
|
31
|
-
listType: {
|
|
32
|
-
type: String
|
|
33
|
-
},
|
|
34
|
-
tableData: {
|
|
35
|
-
type: Object
|
|
36
|
-
},
|
|
37
|
-
value: {},
|
|
38
|
-
column: {
|
|
39
|
-
type: Object,
|
|
40
|
-
default: () => ({})
|
|
41
|
-
},
|
|
42
|
-
label: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
readonly: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
size: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
tip: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
disabled: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
62
|
-
dataType: {
|
|
63
|
-
type: String
|
|
64
|
-
},
|
|
65
|
-
clearable: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !0
|
|
68
|
-
},
|
|
69
|
-
type: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: ""
|
|
72
|
-
},
|
|
73
|
-
dicUrl: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: ""
|
|
76
|
-
},
|
|
77
|
-
dicMethod: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: ""
|
|
80
|
-
},
|
|
81
|
-
dicFormatter: Function,
|
|
82
|
-
dicQuery: {
|
|
83
|
-
type: Object,
|
|
84
|
-
default: () => ({})
|
|
85
|
-
},
|
|
86
|
-
dic: {
|
|
87
|
-
type: Array,
|
|
88
|
-
default: () => []
|
|
89
|
-
},
|
|
90
|
-
placeholder: {
|
|
91
|
-
type: String,
|
|
92
|
-
default: ""
|
|
93
|
-
},
|
|
94
|
-
rules: {
|
|
95
|
-
type: Array
|
|
96
|
-
},
|
|
97
|
-
min: {
|
|
98
|
-
type: Number
|
|
99
|
-
},
|
|
100
|
-
max: {
|
|
101
|
-
type: Number
|
|
102
|
-
},
|
|
103
|
-
multiple: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: !1
|
|
106
|
-
},
|
|
107
|
-
button: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
default: !1
|
|
110
|
-
},
|
|
111
|
-
group: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
default: !1
|
|
114
|
-
},
|
|
115
|
-
row: {
|
|
116
|
-
type: Boolean,
|
|
117
|
-
default: !1
|
|
118
|
-
},
|
|
119
|
-
prop: {
|
|
120
|
-
type: String,
|
|
121
|
-
default: ""
|
|
122
|
-
},
|
|
123
|
-
border: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: !1
|
|
126
|
-
},
|
|
127
|
-
popperClass: {
|
|
128
|
-
type: String
|
|
129
|
-
},
|
|
130
|
-
propsHttp: {
|
|
131
|
-
type: Object,
|
|
132
|
-
default: () => i
|
|
133
|
-
},
|
|
134
|
-
props: {
|
|
135
|
-
type: Object,
|
|
136
|
-
default: () => r
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
watch: {
|
|
140
|
-
text: {
|
|
141
|
-
handler(t) {
|
|
142
|
-
this.handleChange(t);
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
value: {
|
|
146
|
-
handler() {
|
|
147
|
-
this.initVal();
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
computed: {
|
|
152
|
-
clearableVal() {
|
|
153
|
-
return this.disabled ? !1 : this.clearable;
|
|
154
|
-
},
|
|
155
|
-
componentName() {
|
|
156
|
-
return `el-${this.name}${this.button ? "-button" : ""}`;
|
|
157
|
-
},
|
|
158
|
-
required() {
|
|
159
|
-
return !s(this.rules);
|
|
160
|
-
},
|
|
161
|
-
isArray() {
|
|
162
|
-
return this.dataType === "array";
|
|
163
|
-
},
|
|
164
|
-
isString() {
|
|
165
|
-
return this.dataType === "string";
|
|
166
|
-
},
|
|
167
|
-
isNumber() {
|
|
168
|
-
return this.dataType === "number";
|
|
169
|
-
},
|
|
170
|
-
nameKey() {
|
|
171
|
-
return this.propsHttp.name || this.propsHttpDefault.name;
|
|
172
|
-
},
|
|
173
|
-
urlKey() {
|
|
174
|
-
return this.propsHttp.url || this.propsHttpDefault.url;
|
|
175
|
-
},
|
|
176
|
-
resKey() {
|
|
177
|
-
return this.propsHttp.res || this.propsHttpDefault.res;
|
|
178
|
-
},
|
|
179
|
-
groupsKey() {
|
|
180
|
-
return this.props.groups || this.propsDefault.groups;
|
|
181
|
-
},
|
|
182
|
-
valueKey() {
|
|
183
|
-
return this.props.value || this.propsDefault.value;
|
|
184
|
-
},
|
|
185
|
-
descKey() {
|
|
186
|
-
return this.props.desc || this.propsDefault.desc;
|
|
187
|
-
},
|
|
188
|
-
leafKey() {
|
|
189
|
-
return this.props.leaf || this.propsDefault.leaf;
|
|
190
|
-
},
|
|
191
|
-
labelKey() {
|
|
192
|
-
return this.props.label || this.propsDefault.label;
|
|
193
|
-
},
|
|
194
|
-
childrenKey() {
|
|
195
|
-
return this.props.children || this.propsDefault.children;
|
|
196
|
-
},
|
|
197
|
-
disabledKey() {
|
|
198
|
-
return this.props.disabled || this.propsDefault.disabled;
|
|
199
|
-
},
|
|
200
|
-
idKey() {
|
|
201
|
-
return this.props.id || this.propsDefault.id;
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
created() {
|
|
205
|
-
this.initVal();
|
|
206
|
-
}
|
|
207
|
-
}, y = {
|
|
208
|
-
methods: {
|
|
209
|
-
bindEvent(t, e) {
|
|
210
|
-
e = Object.assign(e, { column: this.column }, this.tableData), typeof this[t] == "function" && (t === "change" ? this.column.cell !== !0 && this[t](e) : this[t](e)), this.$emit(t, e);
|
|
211
|
-
},
|
|
212
|
-
initVal() {
|
|
213
|
-
this.stringMode = typeof this.value == "string", this.text = p(this.value, this);
|
|
214
|
-
},
|
|
215
|
-
getLabelText(t) {
|
|
216
|
-
return s(t) ? "" : typeof this.typeformat == "function" ? this.typeformat(t, this.labelKey, this.valueKey) : t[this.labelKey];
|
|
217
|
-
},
|
|
218
|
-
handleFocus(t) {
|
|
219
|
-
this.bindEvent("focus", { value: this.value, event: t });
|
|
220
|
-
},
|
|
221
|
-
handleBlur(t) {
|
|
222
|
-
this.bindEvent("blur", { value: this.value, event: t });
|
|
223
|
-
},
|
|
224
|
-
handleClick(t) {
|
|
225
|
-
this.bindEvent("click", { value: this.value, event: t });
|
|
226
|
-
},
|
|
227
|
-
handleChange(t) {
|
|
228
|
-
let e = t;
|
|
229
|
-
(this.isString || this.isNumber || this.stringMode || this.listType === "picture-img") && Array.isArray(t) && (e = t.join(this.separator)), this.bindEvent("change", { value: e }), this.$emit("input", e);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
export {
|
|
234
|
-
y as e,
|
|
235
|
-
f as p
|
|
236
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { f as r } from "./FormItem.Bhsy_O2B.mjs";
|
|
2
|
-
import { h as t } from "./index.Cn7aq-Et.mjs";
|
|
3
|
-
const o = {
|
|
4
|
-
name: "FormInput",
|
|
5
|
-
mixins: [r],
|
|
6
|
-
props: {
|
|
7
|
-
value: [Boolean, String, Array, Number, Object, Date],
|
|
8
|
-
readonly: Boolean,
|
|
9
|
-
disabled: Boolean
|
|
10
|
-
},
|
|
11
|
-
inject: {
|
|
12
|
-
formView: {
|
|
13
|
-
default: {}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
computed: {
|
|
17
|
-
computePlaceholder() {
|
|
18
|
-
return this.formView.printing ? null : this.placeholder === !0 ? this.message : this.placeholder;
|
|
19
|
-
},
|
|
20
|
-
listeners() {
|
|
21
|
-
return t(this.$listeners, "input", !1);
|
|
22
|
-
},
|
|
23
|
-
inputDisabled() {
|
|
24
|
-
var e;
|
|
25
|
-
return (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : this.disabled || (this.elForm || {}).disabled;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
o as f
|
|
31
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const a = (r, t, e) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? e(new Error("invalid")) : e();
|
|
2
|
-
function s(r, t, e) {
|
|
3
|
-
if (this.$refs.table.$refs.table.records.length === 0) {
|
|
4
|
-
e(new Error(r.message || `请添加${r.label}`));
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
e();
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
s as a,
|
|
11
|
-
a as v
|
|
12
|
-
};
|