@web-utils/component 5.0.0-beta01 → 5.0.0-beta03
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/awesome-button/index.mjs +25 -31
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.CV8b95tW.mjs} +130 -139
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.DH1ypcUw.mjs} +17 -18
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.D6kZl7sm.mjs} +8 -8
- package/chunks/FormCascader.BXL8lKww.mjs +1229 -0
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.DzTPiDNh.mjs} +339 -337
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.B8iPLduv.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.CCGqEapT.mjs} +38 -31
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.t0jbTL_K.mjs} +470 -467
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.uoFQ-xp_.mjs} +53 -51
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.CgyGhetD.mjs} +25 -21
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/ImagePreview.DDFrZgo5.mjs +649 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.DBspwbYo.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.Bq9d6JSz.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.DR-REJN5.mjs} +84 -83
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.Cq9Bvevm.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.BmPnLuu3.mjs} +163 -142
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.GHx4Z2lG.mjs} +48 -43
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.CuUc8N2C.mjs} +26 -26
- package/chunks/{form-input.D25eDRMq.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.fYYCXvCs.mjs} +77 -75
- package/chunks/icon.AJYLfX1m.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.niAg1zTC.mjs} +31 -39
- package/chunks/{init.DwpukyOB.mjs → init.CtUEiRbU.mjs} +6 -6
- package/chunks/{input.PejnqwSH.mjs → input.B_wW4aF-.mjs} +107 -106
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.BCmee5N0.mjs → message.DnTACuzV.mjs} +76 -75
- package/chunks/{overlay.DubSnqma.mjs → overlay.Rhu_rfhx.mjs} +5 -5
- package/chunks/{radio.BotKXqJr.mjs → radio.BMkZBhl5.mjs} +45 -45
- package/chunks/{scroll.CzORc5Zk.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.DPi-PLbb.mjs → tag.B6yUaGj-.mjs} +25 -25
- package/chunks/{teleport._VGEzK4d.mjs → teleport.87mkIv8m.mjs} +3 -3
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.Dzjs7LZ8.mjs} +108 -108
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/use-empty-values.CxYKjLV9.mjs +81 -0
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/{use-id.CFO5NeoV.mjs → use-id.CyzdvfQn.mjs} +3 -3
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.CBoQRFjH.mjs} +12 -87
- package/chunks/{use-size.DxrwTUwf.mjs → use-size.CoorvF12.mjs} +2 -2
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.D_SioRnx.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +10 -9
- package/form-input-id-card/index.mjs +10 -9
- package/form-input-phone-number/index.mjs +11 -10
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -3
- package/helper-function.mjs +36 -20
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +2 -187
- package/index.d.ts +1 -2
- package/index.mjs +153 -154
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +12 -14
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -146
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +265 -363
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/FormCascader.CaM-oEhv.mjs +0 -1226
- package/chunks/checkbox.emIuFmnt.mjs +0 -437
- package/chunks/confirmable-mixin.BBil7dto.mjs +0 -1646
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-global-config.C9hs-O_x.mjs +0 -56
- package/chunks/validator.C4-z_t9p.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { h as e } from "vue";
|
|
2
|
+
import { NOOP as t } from "@web-utils/core";
|
|
3
|
+
import * as n from "monaco-editor/esm/vs/editor/editor.api";
|
|
3
4
|
//#region src/components/monaco-editor/json-beautifier.js
|
|
4
|
-
var
|
|
5
|
+
var r = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, i = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, a, o, s = {
|
|
5
6
|
"\b": "\\b",
|
|
6
7
|
" ": "\\t",
|
|
7
8
|
"\n": "\\n",
|
|
@@ -10,33 +11,33 @@ var n = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200
|
|
|
10
11
|
"\"": "\\\"",
|
|
11
12
|
"'": "\\'",
|
|
12
13
|
"\\": "\\\\"
|
|
13
|
-
},
|
|
14
|
-
function
|
|
14
|
+
}, c;
|
|
15
|
+
function l(e, t = {}) {
|
|
15
16
|
let n = t.space || 2, r = t.dropQuotesOnKeys !== !1, i = t.dropQuotesOnNumbers || !1, a = t.inlineShortArrays || !1, o = t.inlineShortArraysDepth || 1, s = t.quoteType || "single", c = t.minify || !1;
|
|
16
|
-
i &&
|
|
17
|
-
let
|
|
17
|
+
i && u(e);
|
|
18
|
+
let l = p(e, null, c ? void 0 : n, r, s);
|
|
18
19
|
if (a && !c) {
|
|
19
|
-
let e =
|
|
20
|
-
if (o > 1) for (let t = 1; t < o && (
|
|
21
|
-
|
|
20
|
+
let e = f(l);
|
|
21
|
+
if (o > 1) for (let t = 1; t < o && (l = e, e = f(l), e !== l); t++);
|
|
22
|
+
l = e;
|
|
22
23
|
}
|
|
23
|
-
return
|
|
24
|
+
return l;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
if (!
|
|
26
|
+
function u(e) {
|
|
27
|
+
if (!d(e)) return;
|
|
27
28
|
let t = Object.keys(e);
|
|
28
29
|
t && t.forEach(function(t) {
|
|
29
30
|
let n = e[t];
|
|
30
31
|
if (typeof n == "string") {
|
|
31
32
|
let r = n - 0;
|
|
32
33
|
e[t] = isNaN(r) ? n : r;
|
|
33
|
-
} else (
|
|
34
|
+
} else (d(n) || Array.isArray(n)) && u(n);
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function d(e) {
|
|
37
38
|
return e && typeof e == "object";
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function f(e, t) {
|
|
40
41
|
if (t || (t = 80), typeof t != "number" || t < 20) throw Error(`Invalid width '${t}'. Expecting number equal or larger than 20.`);
|
|
41
42
|
let n = e.split("\n"), r = 0, i = null, a = [];
|
|
42
43
|
for (; r < n.length;) {
|
|
@@ -51,46 +52,46 @@ function d(e, t) {
|
|
|
51
52
|
}
|
|
52
53
|
return n.join("\n");
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
else typeof n == "string" && (
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
55
|
+
function p(e, t, n, r, i) {
|
|
56
|
+
let s;
|
|
57
|
+
if (a = "", o = "", typeof n == "number") for (s = 0; s < n; s += 1) o += " ";
|
|
58
|
+
else typeof n == "string" && (o = n);
|
|
59
|
+
if (c = t, t && typeof t != "function" && (typeof t != "object" || typeof t.length != "number")) throw Error("JSON.stringify");
|
|
60
|
+
return m("", { "": e }, r, i);
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
let
|
|
63
|
-
switch (
|
|
64
|
-
case "function": return
|
|
65
|
-
case "string": return
|
|
66
|
-
case "number": return isFinite(
|
|
62
|
+
function m(e, t, n, r) {
|
|
63
|
+
let i, s, l, u, d = a, f, p = t[e];
|
|
64
|
+
switch (p && typeof p == "object" && typeof p.toJSON == "function" && (p = p.toJSON(e)), typeof c == "function" && (p = c.call(t, e, p)), typeof p) {
|
|
65
|
+
case "function": return p;
|
|
66
|
+
case "string": return h(p, r);
|
|
67
|
+
case "number": return isFinite(p) ? String(p) : "null";
|
|
67
68
|
case "boolean":
|
|
68
|
-
case "null": return String(
|
|
69
|
+
case "null": return String(p);
|
|
69
70
|
case "object":
|
|
70
|
-
if (!
|
|
71
|
-
if (
|
|
72
|
-
for (u =
|
|
73
|
-
return l = f.length === 0 ? "[]" :
|
|
71
|
+
if (!p) return "null";
|
|
72
|
+
if (a += o, f = [], Object.prototype.toString.apply(p) === "[object Array]") {
|
|
73
|
+
for (u = p.length, i = 0; i < u; i += 1) f[i] = m(i, p, n, r) || "null";
|
|
74
|
+
return l = f.length === 0 ? "[]" : a ? `[\n${a}${f.join(`,\n${a}`)}\n${d}]` : `[${f.join(",")}]`, a = d, l;
|
|
74
75
|
}
|
|
75
|
-
if (
|
|
76
|
-
else for (
|
|
77
|
-
return l = f.length === 0 ? "{}" :
|
|
76
|
+
if (c && typeof c == "object") for (u = c.length, i = 0; i < u; i += 1) typeof c[i] == "string" && (s = c[i], l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
|
|
77
|
+
else for (s in p) Object.prototype.hasOwnProperty.call(p, s) && (l = m(s, p, n, r), l && f.push((n ? g(s, r) : h(s, r)) + (a ? ": " : ":") + l));
|
|
78
|
+
return l = f.length === 0 ? "{}" : a ? `{\n${a}${f.join(`,\n${a}`)}\n${d}}` : `{${f.join(",")}}`, a = d, l;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
let
|
|
83
|
-
return t === "single" && (
|
|
84
|
-
let t =
|
|
81
|
+
function h(e, t) {
|
|
82
|
+
r.lastIndex = 0;
|
|
83
|
+
let n = "\"";
|
|
84
|
+
return t === "single" && (n = "'"), r.test(e) ? n + e.replace(r, function(e) {
|
|
85
|
+
let t = s[e];
|
|
85
86
|
return typeof t == "string" ? t : `\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`;
|
|
86
|
-
}) +
|
|
87
|
+
}) + n : n + e + n;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
89
|
+
function g(e, t) {
|
|
90
|
+
return i.test(e) ? e : h(e, t);
|
|
90
91
|
}
|
|
91
92
|
//#endregion
|
|
92
93
|
//#region src/components/monaco-editor/MonacoEditor.vue
|
|
93
|
-
var
|
|
94
|
+
var _ = {
|
|
94
95
|
name: "MonacoEditor",
|
|
95
96
|
props: {
|
|
96
97
|
diffEditor: {
|
|
@@ -127,11 +128,11 @@ var g = {
|
|
|
127
128
|
},
|
|
128
129
|
editorMounted: {
|
|
129
130
|
type: Function,
|
|
130
|
-
default:
|
|
131
|
+
default: t
|
|
131
132
|
},
|
|
132
133
|
editorBeforeMount: {
|
|
133
134
|
type: Function,
|
|
134
|
-
default:
|
|
135
|
+
default: t
|
|
135
136
|
},
|
|
136
137
|
keyIndex: { type: String }
|
|
137
138
|
},
|
|
@@ -156,16 +157,16 @@ var g = {
|
|
|
156
157
|
},
|
|
157
158
|
keyIndex() {
|
|
158
159
|
let e = this.modelValue;
|
|
159
|
-
typeof e == "object" && (e =
|
|
160
|
+
typeof e == "object" && (e = l(e)), this.editor && e !== this._getValue() && this._setValue(e);
|
|
160
161
|
},
|
|
161
162
|
language() {
|
|
162
163
|
if (this.editor) if (this.diffEditor) {
|
|
163
|
-
let { original: e, modified:
|
|
164
|
-
|
|
165
|
-
} else
|
|
164
|
+
let { original: e, modified: t } = this.editor.getModel();
|
|
165
|
+
n.editor.setModelLanguage(e, this.language), n.editor.setModelLanguage(t, this.language);
|
|
166
|
+
} else n.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
166
167
|
},
|
|
167
168
|
theme() {
|
|
168
|
-
this.editor &&
|
|
169
|
+
this.editor && n.editor.setTheme(this.theme);
|
|
169
170
|
},
|
|
170
171
|
style() {
|
|
171
172
|
this.$nextTick(() => {
|
|
@@ -186,24 +187,24 @@ var g = {
|
|
|
186
187
|
},
|
|
187
188
|
methods: {
|
|
188
189
|
initMonaco() {
|
|
189
|
-
let { modelValue: e, language:
|
|
190
|
-
Object.assign(a, this._editorBeforeMount()), this.editor =
|
|
191
|
-
value: typeof e == "string" ? e :
|
|
192
|
-
language:
|
|
190
|
+
let { modelValue: e, language: t, theme: r, readOnly: i, options: a } = this;
|
|
191
|
+
Object.assign(a, this._editorBeforeMount()), this.editor = n.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
|
|
192
|
+
value: typeof e == "string" ? e : l(e),
|
|
193
|
+
language: t,
|
|
193
194
|
theme: r,
|
|
194
195
|
readOnly: i,
|
|
195
196
|
...a
|
|
196
197
|
}), this.diffEditor && this._setModel(this.modelValue, this.original), this._editorMounted(this.editor), this.editor.addAction({
|
|
197
198
|
id: "f1",
|
|
198
199
|
label: "full screen",
|
|
199
|
-
keybindings: [
|
|
200
|
+
keybindings: [n.KeyCode.F1],
|
|
200
201
|
run: (e) => {
|
|
201
202
|
this.toggleFullScreen();
|
|
202
203
|
}
|
|
203
204
|
}), this.editor.addAction({
|
|
204
205
|
id: "escape",
|
|
205
206
|
label: "exit full screen",
|
|
206
|
-
keybindings: [
|
|
207
|
+
keybindings: [n.KeyCode.Escape],
|
|
207
208
|
run: (e) => {
|
|
208
209
|
this.fullscreen = !1;
|
|
209
210
|
}
|
|
@@ -246,8 +247,8 @@ var g = {
|
|
|
246
247
|
_getEditor() {
|
|
247
248
|
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
248
249
|
},
|
|
249
|
-
_setModel(e,
|
|
250
|
-
let { language: r } = this, i =
|
|
250
|
+
_setModel(e, t) {
|
|
251
|
+
let { language: r } = this, i = n.editor.createModel(t, r), a = n.editor.createModel(e, r);
|
|
251
252
|
this.editor.setModel({
|
|
252
253
|
original: i,
|
|
253
254
|
modified: a
|
|
@@ -262,10 +263,10 @@ var g = {
|
|
|
262
263
|
return e ? e.getValue() : "";
|
|
263
264
|
},
|
|
264
265
|
_editorBeforeMount() {
|
|
265
|
-
return this.editorBeforeMount(
|
|
266
|
+
return this.editorBeforeMount(n) || {};
|
|
266
267
|
},
|
|
267
268
|
_editorMounted(e) {
|
|
268
|
-
this.editorMounted(e,
|
|
269
|
+
this.editorMounted(e, n), this.diffEditor ? e.onDidUpdateDiff((e) => {
|
|
269
270
|
let t = this._getValue();
|
|
270
271
|
this._emitChange(t, e);
|
|
271
272
|
}) : e.onDidChangeModelContent((e) => {
|
|
@@ -277,7 +278,7 @@ var g = {
|
|
|
277
278
|
this.$emit("change", e, t), this.$emit("update:modelValue", e);
|
|
278
279
|
}
|
|
279
280
|
},
|
|
280
|
-
render(
|
|
281
|
+
render() {
|
|
281
282
|
let t = this.options.fullScreen;
|
|
282
283
|
return e("div", {
|
|
283
284
|
class: ["monaco_editor_container", this.fullscreen ? "fullscreen" : ""],
|
|
@@ -298,4 +299,4 @@ var g = {
|
|
|
298
299
|
}
|
|
299
300
|
};
|
|
300
301
|
//#endregion
|
|
301
|
-
export {
|
|
302
|
+
export { l as n, _ as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./chunk.A6TnG60p.mjs";
|
|
2
2
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
-
import { t } from "./message.
|
|
4
|
-
import { a as n, i as r, l as i, r as a } from "./util.
|
|
5
|
-
import { t as o } from "./dictionary.
|
|
6
|
-
import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m,
|
|
7
|
-
import { copy as
|
|
8
|
-
import { merge as
|
|
9
|
-
import { isEqual as
|
|
3
|
+
import { t } from "./message.DnTACuzV.mjs";
|
|
4
|
+
import { a as n, i as r, l as i, r as a } from "./util.fjuzrmWz.mjs";
|
|
5
|
+
import { t as o } from "./dictionary.BqVLM7Lf.mjs";
|
|
6
|
+
import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, isVNode as h, mergeProps as g, normalizeClass as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, resolveComponent as S, toDisplayString as C, toHandlers as w, withCtx as T } from "vue";
|
|
7
|
+
import { copy as E, hasOwn as D } from "@web-utils/core";
|
|
8
|
+
import { merge as O } from "@web-utils/integrations/lodash";
|
|
9
|
+
import { isEqual as k } from "lodash-es";
|
|
10
10
|
//#region src/util/clipboard.js
|
|
11
|
-
function
|
|
12
|
-
|
|
11
|
+
function A(e) {
|
|
12
|
+
E(e, () => i(t).success({
|
|
13
13
|
duration: 1e3,
|
|
14
14
|
message: "复制成功!",
|
|
15
15
|
type: "success"
|
|
@@ -20,29 +20,31 @@ function k(e) {
|
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
+
//#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
|
|
24
|
+
function j(e) {
|
|
25
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !h(e);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
23
28
|
//#region src/components/table/components/TableColumnFilterable.vue
|
|
24
|
-
var
|
|
29
|
+
var M = {
|
|
25
30
|
name: "TableColumnFilterable",
|
|
26
31
|
functional: !0,
|
|
27
32
|
render(e, t) {
|
|
28
|
-
let { data: { key: n }, props: r, parent: { records: i }, scopedSlots: a } = t, { hide: o, isVNode: s, filterable: c, allowSort: l, autoUpdate: u, scopedSlots: d, prop: f, ...p } = r,
|
|
33
|
+
let { data: { key: n }, props: r, parent: { records: i }, scopedSlots: a } = t, { hide: o, isVNode: s, filterable: c, allowSort: l, autoUpdate: u, scopedSlots: d, prop: f, ...p } = r, h = `${n}-${c}${u ? `-${Math.random()}`.replace("0.", "") : ""}`, _ = {
|
|
29
34
|
prop: f,
|
|
30
35
|
...p
|
|
31
|
-
}
|
|
36
|
+
};
|
|
32
37
|
if (c) {
|
|
33
38
|
let e = [...new Set(i.map((e) => e[f]).filter((e) => e))].map((e) => ({
|
|
34
39
|
text: e,
|
|
35
40
|
value: e
|
|
36
41
|
}));
|
|
37
|
-
_.
|
|
42
|
+
_.filterMethod = (e, t, n) => t[n.property] === e, _.filters = e;
|
|
38
43
|
}
|
|
39
44
|
let v = d || a;
|
|
40
|
-
return v != null && v.default ? m(
|
|
41
|
-
scopedSlots: v,
|
|
42
|
-
key: g
|
|
43
|
-
}), null) : m(x("TableColumn"), h(_, { key: g }), null);
|
|
45
|
+
return v != null && v.default ? m(S("ElTableColumn"), g(_, { key: h }), j(v) ? v : { default: () => [v] }) : m(S("TableColumn"), g(_, { key: h }), null);
|
|
44
46
|
}
|
|
45
|
-
},
|
|
47
|
+
}, N = {
|
|
46
48
|
name: "TableColumnFilter",
|
|
47
49
|
props: {
|
|
48
50
|
columns: {
|
|
@@ -53,29 +55,29 @@ var A = {
|
|
|
53
55
|
},
|
|
54
56
|
emits: ["update:visible"]
|
|
55
57
|
};
|
|
56
|
-
function
|
|
57
|
-
let o =
|
|
58
|
-
return
|
|
58
|
+
function P(e, t, n, r, i, a) {
|
|
59
|
+
let o = S("ElTableColumn"), s = S("ElCheckbox"), l = S("ElTable"), u = S("ElDrawer");
|
|
60
|
+
return y(), c(u, {
|
|
59
61
|
class: "table-column-filter",
|
|
60
62
|
visible: n.visible,
|
|
61
63
|
title: "表格设置",
|
|
62
64
|
"append-to-body": "",
|
|
63
65
|
"onUpdate:visible": t[0] || (t[0] = (t) => e.$emit("update:visible", t))
|
|
64
66
|
}, {
|
|
65
|
-
default:
|
|
67
|
+
default: T(() => [m(l, {
|
|
66
68
|
data: n.columns,
|
|
67
69
|
border: ""
|
|
68
70
|
}, {
|
|
69
|
-
default:
|
|
71
|
+
default: T(() => [
|
|
70
72
|
m(o, { label: "列名" }, {
|
|
71
|
-
default:
|
|
73
|
+
default: T(({ row: e }) => [p(C(e.label), 1)]),
|
|
72
74
|
_: 1
|
|
73
75
|
}),
|
|
74
76
|
m(o, {
|
|
75
77
|
label: "隐藏",
|
|
76
78
|
align: "center"
|
|
77
79
|
}, {
|
|
78
|
-
default:
|
|
80
|
+
default: T(({ row: e }) => [m(s, {
|
|
79
81
|
modelValue: e.hide,
|
|
80
82
|
"onUpdate:modelValue": (t) => e.hide = t
|
|
81
83
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
@@ -85,7 +87,7 @@ function M(e, t, n, r, i, a) {
|
|
|
85
87
|
label: "冻结",
|
|
86
88
|
align: "center"
|
|
87
89
|
}, {
|
|
88
|
-
default:
|
|
90
|
+
default: T(({ row: e }) => [m(s, {
|
|
89
91
|
modelValue: e.fixed,
|
|
90
92
|
"onUpdate:modelValue": (t) => e.fixed = t
|
|
91
93
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
@@ -95,7 +97,7 @@ function M(e, t, n, r, i, a) {
|
|
|
95
97
|
label: "过滤",
|
|
96
98
|
align: "center"
|
|
97
99
|
}, {
|
|
98
|
-
default:
|
|
100
|
+
default: T(({ row: e }) => [m(s, {
|
|
99
101
|
modelValue: e.filterable,
|
|
100
102
|
"onUpdate:modelValue": (t) => e.filterable = t
|
|
101
103
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
|
|
@@ -105,7 +107,7 @@ function M(e, t, n, r, i, a) {
|
|
|
105
107
|
label: "排序",
|
|
106
108
|
align: "center"
|
|
107
109
|
}, {
|
|
108
|
-
default:
|
|
110
|
+
default: T(({ row: e }) => [m(s, {
|
|
109
111
|
modelValue: e.sortable,
|
|
110
112
|
"onUpdate:modelValue": (t) => e.sortable = t,
|
|
111
113
|
title: e.allowSort ? null : "该列不支持排序!",
|
|
@@ -124,7 +126,7 @@ function M(e, t, n, r, i, a) {
|
|
|
124
126
|
_: 1
|
|
125
127
|
}, 8, ["visible"]);
|
|
126
128
|
}
|
|
127
|
-
var
|
|
129
|
+
var F = /* @__PURE__ */ e(N, [["render", P]]), I = {
|
|
128
130
|
props: { useVisibilityChange: Boolean },
|
|
129
131
|
created() {
|
|
130
132
|
this.useVisibilityChange && document.addEventListener("visibilitychange", this.onPageVisibleChange);
|
|
@@ -144,8 +146,8 @@ var N = /* @__PURE__ */ e(j, [["render", M]]), P = {
|
|
|
144
146
|
};
|
|
145
147
|
//#endregion
|
|
146
148
|
//#region src/components/table/PageableTable.vue
|
|
147
|
-
function
|
|
148
|
-
return
|
|
149
|
+
function L(e, t) {
|
|
150
|
+
return k(e.map((e) => {
|
|
149
151
|
let { hide: t, filterable: n, allowSort: r, sortable: i, fixed: a, ...o } = e;
|
|
150
152
|
return o;
|
|
151
153
|
}), t.map((e) => {
|
|
@@ -153,23 +155,23 @@ function F(e, t) {
|
|
|
153
155
|
return o;
|
|
154
156
|
}));
|
|
155
157
|
}
|
|
156
|
-
function
|
|
158
|
+
function R(e) {
|
|
157
159
|
let t = "";
|
|
158
160
|
for (let n in e) t += `<TableColumn prop="${n}" label="${n}"/>\n`;
|
|
159
161
|
return t;
|
|
160
162
|
}
|
|
161
|
-
var
|
|
163
|
+
var z = {
|
|
162
164
|
loading: 1,
|
|
163
165
|
error: -1,
|
|
164
166
|
empty: 2,
|
|
165
167
|
success: 0
|
|
166
|
-
},
|
|
168
|
+
}, B = {
|
|
167
169
|
name: "PageableTable",
|
|
168
170
|
components: {
|
|
169
|
-
TableColumnFilter:
|
|
170
|
-
TableColumnFilterable:
|
|
171
|
+
TableColumnFilter: F,
|
|
172
|
+
TableColumnFilterable: M
|
|
171
173
|
},
|
|
172
|
-
mixins: [
|
|
174
|
+
mixins: [I],
|
|
173
175
|
emits: ["page-loaded", "row-dblclick"],
|
|
174
176
|
bus: { reloadTableView(e) {
|
|
175
177
|
e === this.viewId && this.getPage();
|
|
@@ -244,8 +246,8 @@ var L = {
|
|
|
244
246
|
data() {
|
|
245
247
|
let e = this.pageSize;
|
|
246
248
|
return {
|
|
247
|
-
TABLE_STATUS: Object.freeze(
|
|
248
|
-
tableStatus:
|
|
249
|
+
TABLE_STATUS: Object.freeze(z),
|
|
250
|
+
tableStatus: z.empty,
|
|
249
251
|
records: [],
|
|
250
252
|
currentRow: null,
|
|
251
253
|
showSettings: !1,
|
|
@@ -283,7 +285,7 @@ var L = {
|
|
|
283
285
|
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
284
286
|
},
|
|
285
287
|
mergeAttrs() {
|
|
286
|
-
return
|
|
288
|
+
return O({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
|
|
287
289
|
},
|
|
288
290
|
headers() {
|
|
289
291
|
var e;
|
|
@@ -392,7 +394,7 @@ var L = {
|
|
|
392
394
|
onTableScroll() {
|
|
393
395
|
this.tableScrollTop = this.$refs.table.bodyWrapper.scrollTop, this.tableScrollLeft = this.$refs.table.bodyWrapper.scrollLeft;
|
|
394
396
|
},
|
|
395
|
-
copy: (e) =>
|
|
397
|
+
copy: (e) => A(R(e)),
|
|
396
398
|
onSortChange({ prop: e, order: t }) {
|
|
397
399
|
this.payloadStyle === "body" ? (this.page.ascs = t === "ascending" ? [e] : this.ascs, this.page.descs = t === "descending" ? [e] : this.descs) : (this.page.ascs = t === "ascending" ? e : "", this.page.descs = t === "descending" ? e : "");
|
|
398
400
|
},
|
|
@@ -422,7 +424,7 @@ var L = {
|
|
|
422
424
|
}, this.selectExport && (this.rowKey ? e.exportKeys = this.selectedRows.map((e) => e[this.rowKey]) : e.exportKeys = this.selectedRows.map((e) => this.records.indexOf(e))), e;
|
|
423
425
|
},
|
|
424
426
|
async getPage(e) {
|
|
425
|
-
if (
|
|
427
|
+
if (D(this.$attrs, "data") && this.$attrs.data !== !1) {
|
|
426
428
|
var t;
|
|
427
429
|
this.records = this.$attrs.data, this.page.page = 1, this.page.total = (t = this.records) == null ? void 0 : t.length, this.page.limit = this.page.total;
|
|
428
430
|
return;
|
|
@@ -430,11 +432,11 @@ var L = {
|
|
|
430
432
|
e !== !1 && (this.records = []);
|
|
431
433
|
let n, r = this.getPageQuery();
|
|
432
434
|
if (this.api || this.url) {
|
|
433
|
-
e !== !1 && (this.tableStatus =
|
|
435
|
+
e !== !1 && (this.tableStatus = z.loading);
|
|
434
436
|
try {
|
|
435
437
|
this.api && (n = await this.api(r));
|
|
436
438
|
} catch {
|
|
437
|
-
this.tableStatus =
|
|
439
|
+
this.tableStatus = z.error;
|
|
438
440
|
return;
|
|
439
441
|
}
|
|
440
442
|
} else {
|
|
@@ -445,7 +447,7 @@ var L = {
|
|
|
445
447
|
return;
|
|
446
448
|
}
|
|
447
449
|
let { data: { data: i } } = n || {}, { total: a, records: o } = i || {};
|
|
448
|
-
this.page.total = Number(a), this.records = await this.mapRow(o), !o || !o.length ? this.tableStatus =
|
|
450
|
+
this.page.total = Number(a), this.records = await this.mapRow(o), !o || !o.length ? this.tableStatus = z.empty : this.tableStatus = z.success, this.doLayout(), this.$emit("page-loaded", i);
|
|
449
451
|
},
|
|
450
452
|
doLayout() {
|
|
451
453
|
var e;
|
|
@@ -482,10 +484,10 @@ var L = {
|
|
|
482
484
|
return !(e != null && e.disabled) && !((t = this.disabledRowKeys) != null && t.includes(e == null ? void 0 : e[this.rowKey]));
|
|
483
485
|
},
|
|
484
486
|
updateExpandColumn(e) {
|
|
485
|
-
e && this.expandColumn ?
|
|
487
|
+
e && this.expandColumn ? O(this.expandColumn, e) : this.expandColumn = e;
|
|
486
488
|
},
|
|
487
489
|
updateColumns(e) {
|
|
488
|
-
if (!
|
|
490
|
+
if (!L(this.tableColumns, e)) {
|
|
489
491
|
let t = {};
|
|
490
492
|
this.tableColumns.forEach((e) => {
|
|
491
493
|
t[e.prop] = e;
|
|
@@ -493,7 +495,7 @@ var L = {
|
|
|
493
495
|
let n = t[e.prop];
|
|
494
496
|
if (n) {
|
|
495
497
|
let { hide: t, filterable: r, allowSort: i, sortable: a, fixed: o } = n;
|
|
496
|
-
return
|
|
498
|
+
return O(n, e), n.hide = t, n.filterable = r, n.allowSort = i, n.sortable = a, n.fixed = o, n;
|
|
497
499
|
}
|
|
498
500
|
return e;
|
|
499
501
|
}), this.tableColumns = e;
|
|
@@ -503,23 +505,22 @@ var L = {
|
|
|
503
505
|
this.refresh(!1);
|
|
504
506
|
}
|
|
505
507
|
}
|
|
506
|
-
},
|
|
508
|
+
}, V = { class: "pageable-table-wrapper" }, H = {
|
|
507
509
|
key: 0,
|
|
508
510
|
class: "pageable-table-loading"
|
|
509
|
-
},
|
|
510
|
-
function
|
|
511
|
-
let o =
|
|
512
|
-
return
|
|
511
|
+
}, U = ["onClick"];
|
|
512
|
+
function W(e, t, n, r, i, a) {
|
|
513
|
+
let o = S("TableColumnFilterable"), h = S("TableColumn"), E = S("ElRadio"), D = S("ElButton"), O = S("ElEmpty"), k = S("ElTable"), A = S("ElPagination"), j = S("TableColumnFilter"), M = S("ResizeObserver");
|
|
514
|
+
return y(), u("div", { class: _(["pageable-table", { "auto-height": n.autoHeight }]) }, [d("div", V, [
|
|
513
515
|
l("顶部工具条插槽"),
|
|
514
|
-
|
|
516
|
+
x(e.$slots, "toolbar", { selectedRows: i.selectedRows }),
|
|
515
517
|
l("表格"),
|
|
516
|
-
m(k,
|
|
518
|
+
m(k, g({
|
|
517
519
|
ref: "table",
|
|
518
520
|
data: i.records,
|
|
519
521
|
class: ["flex-item", { "header-bold": n.headerBold }],
|
|
520
522
|
border: n.border,
|
|
521
|
-
stripe: ""
|
|
522
|
-
size: "medium"
|
|
523
|
+
stripe: ""
|
|
523
524
|
}, a.filterTableProperties(a.mergeAttrs), {
|
|
524
525
|
"onHook:updated": a.updateTableScrollPosition,
|
|
525
526
|
onSortChange: a.onSortChange,
|
|
@@ -528,27 +529,27 @@ function H(e, t, n, r, i, a) {
|
|
|
528
529
|
onCellClick: a.hideTooltip,
|
|
529
530
|
onCurrentChange: a.onCurrentChange,
|
|
530
531
|
onSelectionChange: a.handleSelectionChange
|
|
531
|
-
},
|
|
532
|
-
empty:
|
|
532
|
+
}, w(a.filterTableEvents(e.$listeners))), {
|
|
533
|
+
empty: T(() => [l("内容为空插槽"), x(e.$slots, "empty", {}, () => [i.tableStatus === i.TABLE_STATUS.loading ? (y(), u("span", H, [...t[5] || (t[5] = [d("i", { class: "table-status-icon el-icon-loading" }, null, -1), p(" 加载中... ", -1)])])) : i.tableStatus === i.TABLE_STATUS.error ? (y(), c(D, {
|
|
533
534
|
key: 1,
|
|
534
535
|
class: "pageable-table-error",
|
|
535
536
|
icon: "table-status-icon el-icon-error",
|
|
536
537
|
onClick: a.refresh
|
|
537
538
|
}, {
|
|
538
|
-
default:
|
|
539
|
+
default: T(() => [...t[6] || (t[6] = [p("加载失败,点击重试!", -1)])]),
|
|
539
540
|
_: 1
|
|
540
|
-
}, 8, ["onClick"])) : (
|
|
541
|
-
append:
|
|
542
|
-
default:
|
|
543
|
-
i.expandColumn ? (
|
|
544
|
-
n.multiple && n.selection ? (
|
|
541
|
+
}, 8, ["onClick"])) : (y(), c(O, { key: 2 }))])]),
|
|
542
|
+
append: T(() => [x(e.$slots, "append")]),
|
|
543
|
+
default: T(() => [
|
|
544
|
+
i.expandColumn ? (y(), c(o, v(g({ key: 0 }, i.expandColumn)), null, 16)) : l("v-if", !0),
|
|
545
|
+
n.multiple && n.selection ? (y(), c(h, {
|
|
545
546
|
key: "multiple",
|
|
546
547
|
type: "selection",
|
|
547
548
|
selectable: a.selectable,
|
|
548
549
|
width: n.selectionWidth,
|
|
549
550
|
align: "center"
|
|
550
551
|
}, null, 8, ["selectable", "width"])) : l("v-if", !0),
|
|
551
|
-
!n.multiple && n.selection ? (
|
|
552
|
+
!n.multiple && n.selection ? (y(), c(h, {
|
|
552
553
|
key: "single",
|
|
553
554
|
sortable: !1,
|
|
554
555
|
type: "single-selection",
|
|
@@ -556,48 +557,48 @@ function H(e, t, n, r, i, a) {
|
|
|
556
557
|
width: n.selectionWidth,
|
|
557
558
|
align: "center"
|
|
558
559
|
}, {
|
|
559
|
-
header:
|
|
560
|
+
header: T(() => [m(E, {
|
|
560
561
|
value: !!i.currentRow,
|
|
561
562
|
label: !0
|
|
562
563
|
}, {
|
|
563
|
-
default:
|
|
564
|
+
default: T(() => [...t[3] || (t[3] = [d("span", null, null, -1)])]),
|
|
564
565
|
_: 1
|
|
565
566
|
}, 8, ["value"])]),
|
|
566
|
-
default:
|
|
567
|
+
default: T(({ row: r }) => [m(E, {
|
|
567
568
|
label: !0,
|
|
568
569
|
disabled: !a.selectable(r),
|
|
569
570
|
value: i.currentRow && i.currentRow[e.$attrs["row-key"] || n.rowKey || "id"] === r[e.$attrs["row-key"] || n.rowKey || "id"]
|
|
570
571
|
}, {
|
|
571
|
-
default:
|
|
572
|
+
default: T(() => [...t[4] || (t[4] = [d("span", null, null, -1)])]),
|
|
572
573
|
_: 1
|
|
573
574
|
}, 8, ["disabled", "value"])]),
|
|
574
575
|
_: 1
|
|
575
576
|
}, 8, ["width"])) : l("v-if", !0),
|
|
576
|
-
n.index ? (
|
|
577
|
+
n.index ? (y(), c(h, {
|
|
577
578
|
key: "order",
|
|
578
579
|
type: "index",
|
|
579
580
|
label: "序号",
|
|
580
581
|
width: a.indexWidth,
|
|
581
582
|
align: "center"
|
|
582
583
|
}, {
|
|
583
|
-
default:
|
|
584
|
+
default: T(({ $index: e }) => [p(C((i.page.page - 1) * i.page.limit + e + 1 || e + 1), 1)]),
|
|
584
585
|
_: 1
|
|
585
586
|
}, 8, ["width"])) : l("v-if", !0),
|
|
586
|
-
i.tableColumns ? (
|
|
587
|
+
i.tableColumns ? (y(!0), u(s, { key: 4 }, b(i.tableColumns.filter((e) => !e.hide), (t, n) => {
|
|
587
588
|
var r, i;
|
|
588
|
-
return
|
|
589
|
+
return y(), c(o, g({ key: `${((r = t.props) == null ? void 0 : r.prop) || t.prop}-${n}` }, { ref_for: !0 }, t), f({ _: 2 }, [e.$slots[((i = t.props) == null ? void 0 : i.prop) || t.prop] ? {
|
|
589
590
|
name: "default",
|
|
590
|
-
fn:
|
|
591
|
+
fn: T(({ row: n }) => {
|
|
591
592
|
var r;
|
|
592
|
-
return [
|
|
593
|
+
return [x(e.$slots, ((r = t.props) == null ? void 0 : r.prop) || t.prop, { row: n })];
|
|
593
594
|
}),
|
|
594
595
|
key: "0"
|
|
595
596
|
} : void 0]), 1040);
|
|
596
|
-
}), 128)) : (
|
|
597
|
-
default:
|
|
597
|
+
}), 128)) : (y(), u(s, { key: 5 }, [l("未设置列提醒"), m(h, { label: "点击表格行复制模板" }, {
|
|
598
|
+
default: T(({ row: e }) => [d("pre", {
|
|
598
599
|
class: "pointer",
|
|
599
600
|
onClick: (t) => a.copy(e)
|
|
600
|
-
},
|
|
601
|
+
}, C(JSON.stringify(e, null, " ")), 9, U)]),
|
|
601
602
|
_: 1
|
|
602
603
|
})], 64))
|
|
603
604
|
]),
|
|
@@ -615,7 +616,7 @@ function H(e, t, n, r, i, a) {
|
|
|
615
616
|
"onSelectionChange"
|
|
616
617
|
]),
|
|
617
618
|
l("底部分页工具条"),
|
|
618
|
-
n.paging ? (
|
|
619
|
+
n.paging ? (y(), c(A, {
|
|
619
620
|
key: 0,
|
|
620
621
|
"current-page": i.page.page,
|
|
621
622
|
"hide-on-single-page": n.hideOnSinglePage,
|
|
@@ -653,6 +654,6 @@ function H(e, t, n, r, i, a) {
|
|
|
653
654
|
}, null, 8, ["visible", "columns"])
|
|
654
655
|
]), m(M, { onNotify: a.doLayout }, null, 8, ["onNotify"])], 2);
|
|
655
656
|
}
|
|
656
|
-
var
|
|
657
|
+
var G = /* @__PURE__ */ e(B, [["render", W]]);
|
|
657
658
|
//#endregion
|
|
658
|
-
export {
|
|
659
|
+
export { G as t };
|