@web-utils/component 5.0.0-beta01 → 5.0.0-beta02
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 +19 -19
- package/chat/index.mjs +7 -7
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.D0ByhRTi.mjs} +132 -132
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.B3pY8TkD.mjs} +2 -2
- package/chunks/ElementDialog.DNsDHdQS.mjs +251 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.D_lXbe--.mjs} +23 -23
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.Cufwd4bp.mjs} +19 -19
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.BhY8NY2z.mjs} +1 -1
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DX1ZJ9w2.mjs} +1 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.BRafADXp.mjs} +7 -7
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.B6pqRir_.mjs} +4 -4
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.Dvwji23j.mjs} +1 -1
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.LL-vXDIE.mjs} +12 -13
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.Co7l6USP.mjs} +8 -8
- package/chunks/{FormCascader.CaM-oEhv.mjs → FormCascader.DMY3uNc8.mjs} +352 -351
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.BC4FfWwY.mjs} +186 -185
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.BSXI2cZU.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.D2Htta7J.mjs} +11 -9
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.CY0K-izg.mjs} +369 -368
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.DLqFXaFF.mjs} +34 -33
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.PJFfNRls.mjs} +2 -2
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.me083T8V.mjs} +10 -10
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.vVp8aVtj.mjs} +17 -15
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.BCxVyiWY.mjs} +87 -87
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.CA7Gfa6Q.mjs} +2 -2
- package/chunks/ImagePreview.ByEWJYdu.mjs +639 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.4hi7CjGc.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.B7BUQwb7.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.Ba3XSbZ5.mjs} +83 -81
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.DYhKWs3X.mjs} +7 -7
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.72HOXQkb.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.BxfsOAxU.mjs} +8 -8
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.CkeyTpnn.mjs} +16 -16
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.DEvY5-i7.mjs} +196 -139
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.C6Ycu28Z.mjs} +38 -37
- package/chunks/{checkbox.emIuFmnt.mjs → checkbox.C_9WZ8gc.mjs} +2 -2
- package/chunks/{confirmable-mixin.BBil7dto.mjs → confirmable-mixin.zegaXQTl.mjs} +398 -282
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.CNNpjPL2.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.Dv4XTu8B.mjs} +2 -2
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.FbvlqAGe.mjs} +2 -2
- package/chunks/{form-input.D25eDRMq.mjs → form-input.BUGZmAI1.mjs} +2 -2
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.Ca8U2bIR.mjs} +58 -60
- package/chunks/icon.CxCY22-F.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.ym7735_x.mjs} +28 -36
- package/chunks/{init.DwpukyOB.mjs → init.6jGmuY99.mjs} +3 -3
- package/chunks/input.C2GWsuXE.mjs +547 -0
- package/chunks/{message.BCmee5N0.mjs → message.C4NdvfbE.mjs} +40 -40
- package/chunks/{radio.BotKXqJr.mjs → radio.CeLeSOEo.mjs} +3 -4
- package/chunks/{tag.DPi-PLbb.mjs → tag.ZhEIVRpP.mjs} +18 -18
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.DNiltmX1.mjs} +362 -349
- package/chunks/{use-size.DxrwTUwf.mjs → typescript.CLl-2siQ.mjs} +2 -2
- package/chunks/use-empty-values.D8KYIiKR.mjs +81 -0
- package/chunks/use-form-item.BlWa7ZKe.mjs +56 -0
- package/chunks/{use-global-config.C9hs-O_x.mjs → use-global-config.DRovgom9.mjs} +14 -13
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.Be9HCpTQ.mjs} +12 -87
- package/chunks/{validator.C4-z_t9p.mjs → validator.DuBSEj8O.mjs} +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- 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 +3 -3
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- 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 +3 -3
- package/form-checkbox-group/index.mjs +5 -5
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +3 -3
- package/form-input-cron-expression/index.mjs +3 -3
- package/form-input-email/index.mjs +9 -8
- package/form-input-id-card/index.mjs +9 -8
- package/form-input-phone-number/index.mjs +10 -9
- 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 +5 -5
- 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 +3 -3
- 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-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +5 -5
- package/fy-form/index.mjs +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 +2 -2
- package/fy-input-icon/index.mjs +1 -1
- 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 +2 -2
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +1 -1
- 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/helper-function.d.ts +3 -2
- package/helper-function.mjs +16 -9
- package/image-cropper/index.mjs +6 -6
- package/image-preview/index.mjs +2 -187
- package/index.mjs +91 -91
- package/input-number-range/index.mjs +2 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +3 -3
- package/monaco-editor/index.mjs +1 -1
- package/notice/index.mjs +1 -1
- package/package.json +5 -5
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -4
- 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 +1 -1
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -1
- package/sub-table/index.mjs +3 -3
- package/sub-table-plus/index.mjs +4 -4
- 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 +2 -2
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -4
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +48 -14
- package/x-input-tag/index.mjs +3 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/input.PejnqwSH.mjs +0 -547
- package/chunks/overlay.DubSnqma.mjs +0 -122
- package/chunks/teleport._VGEzK4d.mjs +0 -22
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-id.CFO5NeoV.mjs +0 -15
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.BymtA5SJ.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.VRFTaHSp.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.Bwe5Rc0J.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.BVziVmyT.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.DXaMPWGV.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.CteBVoOe.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.C0abEij9.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.BRhZD-WH.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.DT5kumy4.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.CUvMwtPN.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.BLDb9e6G.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.C-IUDxQQ.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BxnG4lip.mjs} +0 -0
- /package/chunks/{scroll.CzORc5Zk.mjs → scroll.DWjS-gnW.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.DT5QwXL-.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.CRX7ERxJ.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.7zuMMM1E.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.Ce4MHRmD.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.BttmSVX6.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.BGJfM4oG.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.CSPl1l4f.mjs} +0 -0
- /package/chunks/{vnode.D_SioRnx.mjs → vnode.C3PXzhmg.mjs} +0 -0
package/awesome-button/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as e, resolveComponent as t } from "vue";
|
|
2
|
+
import { error as n, isFunction as r } from "@web-utils/core";
|
|
2
3
|
//#region src/components/button/AwesomeButton.vue
|
|
3
|
-
var
|
|
4
|
+
var i = {
|
|
4
5
|
name: "AwesomeButton",
|
|
5
6
|
mixins: [{ props: {
|
|
6
7
|
type: {
|
|
@@ -22,6 +23,7 @@ var n = {
|
|
|
22
23
|
autofocus: Boolean,
|
|
23
24
|
round: Boolean
|
|
24
25
|
} }],
|
|
26
|
+
inheritAttrs: !1,
|
|
25
27
|
props: { text: {
|
|
26
28
|
type: String,
|
|
27
29
|
default: ""
|
|
@@ -29,27 +31,25 @@ var n = {
|
|
|
29
31
|
data() {
|
|
30
32
|
return { isLoading: !1 };
|
|
31
33
|
},
|
|
32
|
-
methods: { async onClick(
|
|
34
|
+
methods: { async onClick(e) {
|
|
33
35
|
this.isLoading = !0;
|
|
34
|
-
let {
|
|
35
|
-
if (t
|
|
36
|
-
await
|
|
37
|
-
} catch (
|
|
38
|
-
|
|
36
|
+
let { onClick: t } = this.$attrs;
|
|
37
|
+
if (r(t)) try {
|
|
38
|
+
await t(e);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
n.call(this, e);
|
|
39
41
|
}
|
|
40
42
|
this.isLoading = !1;
|
|
41
43
|
} },
|
|
42
|
-
render(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}, r && (r[0].tag || r[0].text) ? r : this.text);
|
|
44
|
+
render() {
|
|
45
|
+
let n = t("ElButton"), { text: r, ...i } = this.$props, { onClick: a, ...o } = this.$attrs;
|
|
46
|
+
return e(n, {
|
|
47
|
+
...o,
|
|
48
|
+
...i,
|
|
49
|
+
disabled: this.isLoading,
|
|
50
|
+
onClick: this.onClick
|
|
51
|
+
}, { default: this.$slots.default || (() => r) });
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { i as default };
|
package/chat/index.mjs
CHANGED
|
@@ -280,7 +280,7 @@ function K(e, t, b, x, K, q) {
|
|
|
280
280
|
"split-button": "",
|
|
281
281
|
class: "web__msg-submit",
|
|
282
282
|
type: "primary",
|
|
283
|
-
size: "
|
|
283
|
+
size: "default",
|
|
284
284
|
trigger: "click",
|
|
285
285
|
onClick: q.handleSend
|
|
286
286
|
}, {
|
|
@@ -299,7 +299,7 @@ function K(e, t, b, x, K, q) {
|
|
|
299
299
|
default: _(() => [c(J, {
|
|
300
300
|
modelValue: K.keys,
|
|
301
301
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => K.keys = e),
|
|
302
|
-
size: "
|
|
302
|
+
size: "default",
|
|
303
303
|
style: { "margin-bottom": "10px" },
|
|
304
304
|
rows: 3,
|
|
305
305
|
"show-word-limit": "",
|
|
@@ -307,7 +307,7 @@ function K(e, t, b, x, K, q) {
|
|
|
307
307
|
placeholder: "请输入快捷回复语",
|
|
308
308
|
type: "textarea"
|
|
309
309
|
}, null, 8, ["modelValue"]), o("div", B, [c(Y, {
|
|
310
|
-
size: "
|
|
310
|
+
size: "default",
|
|
311
311
|
type: "text",
|
|
312
312
|
onClick: t[5] || (t[5] = (e) => K.visible = !1)
|
|
313
313
|
}, {
|
|
@@ -315,7 +315,7 @@ function K(e, t, b, x, K, q) {
|
|
|
315
315
|
_: 1
|
|
316
316
|
}), c(Y, {
|
|
317
317
|
type: "primary",
|
|
318
|
-
size: "
|
|
318
|
+
size: "default",
|
|
319
319
|
onClick: q.addKey
|
|
320
320
|
}, {
|
|
321
321
|
default: _(() => [...t[14] || (t[14] = [s(" 确定 ", -1)])]),
|
|
@@ -354,14 +354,14 @@ function K(e, t, b, x, K, q) {
|
|
|
354
354
|
width: "30%"
|
|
355
355
|
}, {
|
|
356
356
|
footer: _(() => [c(Y, {
|
|
357
|
-
size: "
|
|
357
|
+
size: "default",
|
|
358
358
|
onClick: t[8] || (t[8] = (e) => K.upload.box = !1)
|
|
359
359
|
}, {
|
|
360
360
|
default: _(() => [...t[16] || (t[16] = [s("取 消", -1)])]),
|
|
361
361
|
_: 1
|
|
362
362
|
}), c(Y, {
|
|
363
363
|
type: "primary",
|
|
364
|
-
size: "
|
|
364
|
+
size: "default",
|
|
365
365
|
onClick: q.uploadSubmit
|
|
366
366
|
}, {
|
|
367
367
|
default: _(() => [...t[17] || (t[17] = [s("确 定", -1)])]),
|
|
@@ -381,7 +381,7 @@ function K(e, t, b, x, K, q) {
|
|
|
381
381
|
default: _(() => [c(J, {
|
|
382
382
|
modelValue: K.upload.src,
|
|
383
383
|
"onUpdate:modelValue": t[7] || (t[7] = (e) => K.upload.src = e),
|
|
384
|
-
size: "
|
|
384
|
+
size: "default",
|
|
385
385
|
style: { "margin-bottom": "10px" },
|
|
386
386
|
rows: 4,
|
|
387
387
|
"show-word-limit": "",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { o as t, s as n } from "./util.
|
|
3
|
-
import
|
|
4
|
-
import { computePosition as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import { addResizeListener as
|
|
2
|
+
import { o as t, s as n } from "./util.Ce4MHRmD.mjs";
|
|
3
|
+
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, openBlock as p, renderSlot as m, resolveComponent as h, toDisplayString as g, toHandlers as _, vShow as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
|
|
4
|
+
import { computePosition as S, delay as C, fastClone as w, findTreeChildren as T, hasOwn as E, isFunction as D, isNotEmpty as O, isPlainObject as k, isUndefined as A, isVerticalScrollbarVisible as j, scrollbarWidth as M } from "@web-utils/core";
|
|
5
|
+
import { cloneDeep as N } from "@web-utils/integrations/lodash";
|
|
6
|
+
import { addResizeListener as P, removeResizeListener as F } from "@web-utils/integrations/resize";
|
|
7
7
|
//#region src/util/reactive.js
|
|
8
|
-
function
|
|
9
|
-
for (let n in t)
|
|
8
|
+
function I(e, t) {
|
|
9
|
+
for (let n in t) e[n] = t[n];
|
|
10
10
|
return e;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/EditableTree.vue
|
|
14
|
-
var
|
|
14
|
+
var L = {
|
|
15
15
|
name: "EditableTree",
|
|
16
16
|
props: {
|
|
17
17
|
label: {
|
|
@@ -56,7 +56,7 @@ var R = {
|
|
|
56
56
|
default: () => ({
|
|
57
57
|
children: "children",
|
|
58
58
|
label: "name",
|
|
59
|
-
isLeaf: (e) =>
|
|
59
|
+
isLeaf: (e) => E(e, "hasChildren") ? !e.hasChildren : E(e, "hasChild") ? !e.hasChild : E(e, "children") && e.children ? e.children.length === 0 : !0
|
|
60
60
|
})
|
|
61
61
|
},
|
|
62
62
|
menuLabel: {
|
|
@@ -138,10 +138,10 @@ var R = {
|
|
|
138
138
|
this.tryFetch();
|
|
139
139
|
},
|
|
140
140
|
mounted() {
|
|
141
|
-
|
|
141
|
+
P(this.$refs.tree.$el, this.resize), P(this.$refs.treeWrapper, this.resize);
|
|
142
142
|
},
|
|
143
143
|
beforeUnmount() {
|
|
144
|
-
|
|
144
|
+
F(this.$refs.tree.$el, this.resize), F(this.$refs.treeWrapper, this.resize);
|
|
145
145
|
},
|
|
146
146
|
methods: {
|
|
147
147
|
filterTreeProperties: n,
|
|
@@ -153,10 +153,10 @@ var R = {
|
|
|
153
153
|
this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((t) => t !== e[this.nodeKey]));
|
|
154
154
|
},
|
|
155
155
|
resize() {
|
|
156
|
-
|
|
156
|
+
j(this.$refs.treeWrapper) ? this.right = 4 + M : this.right = 4;
|
|
157
157
|
},
|
|
158
158
|
async showContextMenu(e, t, n) {
|
|
159
|
-
t.contextmenu === !1 || t.id === -1 || t.id === 0 || t.edit === !0 || this.contextMenu && (this.curNode = n, this.curData = t, this.showMenu = !0, this.$refs.tree.setCurrentKey(t.id), await this.$nextTick(), this.position =
|
|
159
|
+
t.contextmenu === !1 || t.id === -1 || t.id === 0 || t.edit === !0 || this.contextMenu && (this.curNode = n, this.curData = t, this.showMenu = !0, this.$refs.tree.setCurrentKey(t.id), await this.$nextTick(), this.position = S(e, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
|
|
160
160
|
},
|
|
161
161
|
hideContextMenu() {
|
|
162
162
|
this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
|
|
@@ -165,12 +165,12 @@ var R = {
|
|
|
165
165
|
if (this.lazy === !1 && this.fetchApi) {
|
|
166
166
|
var e;
|
|
167
167
|
let t = await this.fetchApi(((e = this.rootNode) == null ? void 0 : e.id) ?? -1, {});
|
|
168
|
-
if (
|
|
169
|
-
let e =
|
|
168
|
+
if (k(t.data) && (t.data = [t.data]), t.data = t.data || [], this.empty = t.data.length === 0, k(this.customRootNode)) {
|
|
169
|
+
let e = N(this.customRootNode);
|
|
170
170
|
e[this.treeProps.children || "children"] = t.data, this.treeData = [e];
|
|
171
|
-
} else if (
|
|
171
|
+
} else if (D(this.customRootNode)) {
|
|
172
172
|
let e = this.customRootNode(t.data);
|
|
173
|
-
e[this.treeProps.children || "children"] = t.data, this.treeData =
|
|
173
|
+
e[this.treeProps.children || "children"] = t.data, this.treeData = k(e) ? [e] : e;
|
|
174
174
|
} else this.treeData = t.data;
|
|
175
175
|
}
|
|
176
176
|
},
|
|
@@ -178,12 +178,12 @@ var R = {
|
|
|
178
178
|
if (e.level === 0) {
|
|
179
179
|
var n;
|
|
180
180
|
let a = await this.fetchApi(((n = this.rootNode) == null ? void 0 : n.id) ?? -1, e);
|
|
181
|
-
if (this.empty = a.data.length === 0,
|
|
182
|
-
let e =
|
|
181
|
+
if (this.empty = a.data.length === 0, k(this.customRootNode)) {
|
|
182
|
+
let e = N(this.customRootNode);
|
|
183
183
|
e[this.treeProps.children || "children"] = a.data, t([e]);
|
|
184
|
-
} else if (
|
|
184
|
+
} else if (D(this.customRootNode)) {
|
|
185
185
|
let e = this.customRootNode(a.data);
|
|
186
|
-
e[this.treeProps.children || "children"] = a.data, this.treeData =
|
|
186
|
+
e[this.treeProps.children || "children"] = a.data, this.treeData = k(e) ? [e] : e;
|
|
187
187
|
} else t(a.data);
|
|
188
188
|
if (await this.$nextTick(), this.$emit("root-node-loaded", a.data), this.defaultExpandedKeys) {
|
|
189
189
|
var r;
|
|
@@ -208,10 +208,10 @@ var R = {
|
|
|
208
208
|
this.newChild && this.newChild.id === -1 && (console.log(this.newChild), this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
|
|
209
209
|
},
|
|
210
210
|
cancelEdit() {
|
|
211
|
-
this.editData && (
|
|
211
|
+
this.editData && (A(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
|
|
212
212
|
},
|
|
213
213
|
async editNode(e, t) {
|
|
214
|
-
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = t, this.text = t[this.treeProps.label],
|
|
214
|
+
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = t, this.text = t[this.treeProps.label], A(t.edit) ? this.$set(t, "edit", !0) : t.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await this.$prompt(`请输入新的${this.label}名:`, {
|
|
215
215
|
...this.defaultOptions,
|
|
216
216
|
inputValue: t[this.treeProps.label],
|
|
217
217
|
beforeClose: async (e, t, n) => {
|
|
@@ -234,7 +234,7 @@ var R = {
|
|
|
234
234
|
try {
|
|
235
235
|
this.createNewChild(-1), t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...";
|
|
236
236
|
let e = await this.saveApi(this.newNodeBuilder(t.inputValue, { id: -1 }));
|
|
237
|
-
this.newChild[this.treeProps.label] = t.inputValue, this.newChild.edit = !1,
|
|
237
|
+
this.newChild[this.treeProps.label] = t.inputValue, this.newChild.edit = !1, I(this.newChild, e.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), n();
|
|
238
238
|
} catch {
|
|
239
239
|
t.confirmButtonText = "确定";
|
|
240
240
|
}
|
|
@@ -254,7 +254,7 @@ var R = {
|
|
|
254
254
|
try {
|
|
255
255
|
this.createNewChild(e.data.id), n.confirmButtonLoading = !0, n.confirmButtonText = "处理中...";
|
|
256
256
|
let t = await this.saveApi(this.newNodeBuilder(n.inputValue, e.data));
|
|
257
|
-
this.newChild[this.treeProps.label] = n.inputValue, this.newChild.edit = !1,
|
|
257
|
+
this.newChild[this.treeProps.label] = n.inputValue, this.newChild.edit = !1, I(this.newChild, t.data), this.$refs.tree.append(this.newChild, e), await this.locateView(), r();
|
|
258
258
|
} catch {
|
|
259
259
|
n.confirmButtonText = "确定";
|
|
260
260
|
}
|
|
@@ -343,15 +343,15 @@ var R = {
|
|
|
343
343
|
} catch {}
|
|
344
344
|
},
|
|
345
345
|
async onConfirm(e, t) {
|
|
346
|
-
if (t[this.treeProps.label] === this.text || !
|
|
346
|
+
if (t[this.treeProps.label] === this.text || !O(this.text)) {
|
|
347
347
|
this.clear();
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
A(t.loading) ? this.$set(t, "loading", !0) : t.loading = !0;
|
|
351
351
|
try {
|
|
352
352
|
if (this.loading = !0, t.id === -1) {
|
|
353
|
-
let n = await this.saveApi(this.newNodeBuilder(this.text, e.parent.data || { id: -1 })), r =
|
|
354
|
-
|
|
353
|
+
let n = await this.saveApi(this.newNodeBuilder(this.text, e.parent.data || { id: -1 })), r = w(t);
|
|
354
|
+
I(t, {
|
|
355
355
|
...n.data,
|
|
356
356
|
isTempNode: !1
|
|
357
357
|
}), this.$emit("node-added", t, r, e), this.registerNode(e);
|
|
@@ -367,7 +367,7 @@ var R = {
|
|
|
367
367
|
t.id === -1 ? this.$refs.tree.remove(e) : t.edit = !1, this.text = "";
|
|
368
368
|
},
|
|
369
369
|
nodeClick(e, t, n) {
|
|
370
|
-
this.hideContextMenu(), (
|
|
370
|
+
this.hideContextMenu(), (A(e.loading) || !e.loading) && (this.curNode = t, this.curData = e, this.$emit("on-node-click", e, t, n));
|
|
371
371
|
},
|
|
372
372
|
getCurrentNode() {
|
|
373
373
|
return this.$refs.tree.getCurrentNode();
|
|
@@ -379,7 +379,7 @@ var R = {
|
|
|
379
379
|
},
|
|
380
380
|
async scrollIntoView(e) {
|
|
381
381
|
var t;
|
|
382
|
-
await this.$nextTick(), e || await
|
|
382
|
+
await this.$nextTick(), e || await C(300), (t = this.$refs) == null || (t = t.labelTxt) == null || t.focus();
|
|
383
383
|
},
|
|
384
384
|
inputKeyup(e, t, n) {
|
|
385
385
|
e.keyCode === 13 && this.onConfirm(t, n), e.keyCode === 27 && this.clear();
|
|
@@ -406,7 +406,7 @@ var R = {
|
|
|
406
406
|
return this.$refs.tree.root;
|
|
407
407
|
},
|
|
408
408
|
findTreeNode(e) {
|
|
409
|
-
return
|
|
409
|
+
return T(this.$refs.tree.root.childNodes, (t) => t.data === e || t.data.id === e, "childNodes");
|
|
410
410
|
},
|
|
411
411
|
registerNode(e) {
|
|
412
412
|
e.store.registerNode(e), delete e.store.nodesMap[-1];
|
|
@@ -415,32 +415,32 @@ var R = {
|
|
|
415
415
|
this.lazy ? this.treeKey = Date.now() : await this.tryFetch();
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
},
|
|
418
|
+
}, R = { class: "editable-tree" }, z = {
|
|
419
419
|
ref: "treeWrapper",
|
|
420
420
|
class: "et-tree-wrapper"
|
|
421
|
-
},
|
|
421
|
+
}, B = {
|
|
422
422
|
key: 0,
|
|
423
423
|
style: { "padding-left": "24px" }
|
|
424
|
-
},
|
|
424
|
+
}, V = ["data-id"], H = { class: "node-label flex-row flex-item oh ellipsis-1" }, U = {
|
|
425
425
|
class: "flex-item-relative",
|
|
426
426
|
style: { height: "21px" }
|
|
427
|
-
},
|
|
427
|
+
}, W = ["title"], G = {
|
|
428
428
|
key: 0,
|
|
429
429
|
class: "handle-actions"
|
|
430
|
-
},
|
|
430
|
+
}, K = {
|
|
431
431
|
key: 1,
|
|
432
432
|
class: "handle-actions",
|
|
433
433
|
style: { display: "inline-block" }
|
|
434
|
-
},
|
|
435
|
-
function
|
|
436
|
-
let T =
|
|
437
|
-
return
|
|
438
|
-
|
|
439
|
-
!n.readonly && n.addRootNodeButtonStyle === "top-right" ? (
|
|
434
|
+
}, q = ["data-id"], J = { class: "menu-list" };
|
|
435
|
+
function Y(e, t, n, S, C, w) {
|
|
436
|
+
let T = h("ElButton"), E = h("ElPopconfirm"), D = h("ElInput"), O = h("ElTree");
|
|
437
|
+
return p(), o("div", R, [
|
|
438
|
+
a(" 添加根节点事件\r\n @event add-root-node "),
|
|
439
|
+
!n.readonly && n.addRootNodeButtonStyle === "top-right" ? (p(), i(T, {
|
|
440
440
|
key: 0,
|
|
441
441
|
type: "primary",
|
|
442
|
-
size: "
|
|
443
|
-
style:
|
|
442
|
+
size: "default",
|
|
443
|
+
style: f([{
|
|
444
444
|
position: "absolute",
|
|
445
445
|
top: "4px",
|
|
446
446
|
"z-index": "1"
|
|
@@ -448,19 +448,19 @@ function X(e, t, n, r, C, w) {
|
|
|
448
448
|
icon: "el-icon-plus",
|
|
449
449
|
circle: "",
|
|
450
450
|
plain: "",
|
|
451
|
-
onClick: t[0] || (t[0] =
|
|
452
|
-
}, null, 8, ["style"])) :
|
|
453
|
-
|
|
454
|
-
!n.readonly && n.addRootNodeButtonStyle === "top" ? (
|
|
451
|
+
onClick: t[0] || (t[0] = x((t) => e.$emit("add-root-node"), ["stop"]))
|
|
452
|
+
}, null, 8, ["style"])) : a("v-if", !0),
|
|
453
|
+
s("div", z, [
|
|
454
|
+
!n.readonly && n.addRootNodeButtonStyle === "top" ? (p(), o("div", B, [l(T, {
|
|
455
455
|
disabled: C.loading,
|
|
456
|
-
size: "
|
|
456
|
+
size: "default",
|
|
457
457
|
type: "text",
|
|
458
458
|
onClick: w.appendRootNode
|
|
459
459
|
}, {
|
|
460
|
-
default:
|
|
460
|
+
default: y(() => [t[8] || (t[8] = s("i", { class: "el-icon-lx-add" }, null, -1)), c(" " + g(n.addRootNodeLabel ? n.addRootNodeLabel : `添加${n.label}`), 1)]),
|
|
461
461
|
_: 1
|
|
462
|
-
}, 8, ["disabled", "onClick"])])) :
|
|
463
|
-
(
|
|
462
|
+
}, 8, ["disabled", "onClick"])])) : a("v-if", !0),
|
|
463
|
+
(p(), i(O, u(w.filterTreeProperties(e.$attrs), {
|
|
464
464
|
key: C.treeKey,
|
|
465
465
|
ref: "tree",
|
|
466
466
|
class: "flex-item",
|
|
@@ -472,123 +472,123 @@ function X(e, t, n, r, C, w) {
|
|
|
472
472
|
props: n.treeProps,
|
|
473
473
|
lazy: n.lazy,
|
|
474
474
|
"node-key": n.nodeKey
|
|
475
|
-
},
|
|
475
|
+
}, _(w.filterTreeEvents(e.$listeners)), {
|
|
476
476
|
onNodeClick: w.nodeClick,
|
|
477
477
|
onNodeContextmenu: w.showContextMenu,
|
|
478
478
|
onNodeExpand: w.addExpandKey,
|
|
479
479
|
onNodeCollapse: w.removeExpandKey
|
|
480
480
|
}), {
|
|
481
|
-
default:
|
|
482
|
-
node:
|
|
483
|
-
data:
|
|
484
|
-
}, () => [
|
|
485
|
-
"data-id":
|
|
481
|
+
default: y(({ node: i, data: u }) => [m(e.$slots, "default", {
|
|
482
|
+
node: i,
|
|
483
|
+
data: u
|
|
484
|
+
}, () => [a("非编辑模式"), u.edit ? (p(), o(r, { key: 1 }, [a("编辑模式"), s("span", {
|
|
485
|
+
"data-id": u.id,
|
|
486
486
|
class: "custom-tree-node flex-row flex-item oh"
|
|
487
487
|
}, [
|
|
488
|
-
n.icon ? (
|
|
488
|
+
n.icon ? (p(), o("i", {
|
|
489
489
|
key: 0,
|
|
490
|
-
class:
|
|
491
|
-
}, null, 2)) :
|
|
492
|
-
|
|
490
|
+
class: d([u.loading ? "el-icon-loading" : "el-icon-edit-outline", "node-icon shrink-0"])
|
|
491
|
+
}, null, 2)) : a("v-if", !0),
|
|
492
|
+
l(D, {
|
|
493
493
|
ref: "labelTxt",
|
|
494
494
|
modelValue: C.text,
|
|
495
495
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => C.text = e),
|
|
496
496
|
class: "node-input flex-item",
|
|
497
|
-
size: "
|
|
497
|
+
size: "default",
|
|
498
498
|
placeholder: w.defaultOptions.inputPlaceholder,
|
|
499
|
-
onKeyup: (e) => w.inputKeyup(e,
|
|
500
|
-
onBlur: (e) => w.inputBlur(e,
|
|
501
|
-
onClick: t[3] || (t[3] =
|
|
499
|
+
onKeyup: (e) => w.inputKeyup(e, i, u),
|
|
500
|
+
onBlur: (e) => w.inputBlur(e, i, u),
|
|
501
|
+
onClick: t[3] || (t[3] = x(() => {}, ["stop"]))
|
|
502
502
|
}, null, 8, [
|
|
503
503
|
"modelValue",
|
|
504
504
|
"placeholder",
|
|
505
505
|
"onKeyup",
|
|
506
506
|
"onBlur"
|
|
507
507
|
]),
|
|
508
|
-
n.confirmButton ? (
|
|
508
|
+
n.confirmButton ? (p(), o(r, { key: 1 }, [b(l(T, {
|
|
509
509
|
class: "shrink-0",
|
|
510
|
-
size: "
|
|
510
|
+
size: "default",
|
|
511
511
|
type: "text",
|
|
512
|
-
onClick:
|
|
512
|
+
onClick: x((e) => w.onConfirm(i, u), ["stop"])
|
|
513
513
|
}, {
|
|
514
|
-
default:
|
|
514
|
+
default: y(() => [...t[13] || (t[13] = [c("确定", -1)])]),
|
|
515
515
|
_: 1
|
|
516
|
-
}, 8, ["onClick"]), [[
|
|
516
|
+
}, 8, ["onClick"]), [[v, !u.loading]]), b(l(T, {
|
|
517
517
|
class: "shrink-0",
|
|
518
|
-
size: "
|
|
518
|
+
size: "default",
|
|
519
519
|
type: "text",
|
|
520
|
-
onClick:
|
|
520
|
+
onClick: x((e) => w.onCancel(i, u), ["stop"])
|
|
521
521
|
}, {
|
|
522
|
-
default:
|
|
522
|
+
default: y(() => [...t[14] || (t[14] = [c("取消", -1)])]),
|
|
523
523
|
_: 1
|
|
524
|
-
}, 8, ["onClick"]), [[
|
|
525
|
-
], 8,
|
|
524
|
+
}, 8, ["onClick"]), [[v, !u.loading]])], 64)) : a("v-if", !0)
|
|
525
|
+
], 8, q)], 64)) : (p(), o("span", {
|
|
526
526
|
key: 0,
|
|
527
|
-
"data-id":
|
|
527
|
+
"data-id": u.id,
|
|
528
528
|
class: "custom-tree-node"
|
|
529
529
|
}, [
|
|
530
|
-
|
|
531
|
-
n.icon ? (
|
|
530
|
+
s("span", H, [
|
|
531
|
+
n.icon ? (p(), o("i", {
|
|
532
532
|
key: 0,
|
|
533
|
-
class:
|
|
534
|
-
}, null, 2)) :
|
|
535
|
-
|
|
533
|
+
class: d([u.loading ? "el-icon-loading" : n.icon(u, i), "node-icon"])
|
|
534
|
+
}, null, 2)) : a("v-if", !0),
|
|
535
|
+
s("span", U, [s("span", {
|
|
536
536
|
class: "ellipsis-1 absolute-box et-tree-label",
|
|
537
|
-
title:
|
|
538
|
-
}, [
|
|
539
|
-
data:
|
|
540
|
-
node:
|
|
541
|
-
}, () => [
|
|
542
|
-
|
|
543
|
-
node:
|
|
544
|
-
data:
|
|
537
|
+
title: i.label
|
|
538
|
+
}, [m(e.$slots, "label", {
|
|
539
|
+
data: u,
|
|
540
|
+
node: i
|
|
541
|
+
}, () => [c(g(i.label), 1)])], 8, W)]),
|
|
542
|
+
m(e.$slots, "label-suffix", {
|
|
543
|
+
node: i,
|
|
544
|
+
data: u
|
|
545
545
|
})
|
|
546
546
|
]),
|
|
547
|
-
!n.contextMenu && !n.readonly ?
|
|
548
|
-
|
|
549
|
-
size: "
|
|
547
|
+
!n.contextMenu && !n.readonly ? b((p(), o("span", G, [
|
|
548
|
+
l(T, {
|
|
549
|
+
size: "default",
|
|
550
550
|
type: "text",
|
|
551
|
-
onClick:
|
|
551
|
+
onClick: x((e) => w.appendChildNode(i, u), ["stop"])
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
553
|
+
default: y(() => [...t[9] || (t[9] = [c("添加", -1)])]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["onClick"]),
|
|
556
|
-
|
|
557
|
-
size: "
|
|
556
|
+
l(T, {
|
|
557
|
+
size: "default",
|
|
558
558
|
type: "text",
|
|
559
|
-
onClick:
|
|
559
|
+
onClick: x((e) => w.editNode(i, u), ["stop"])
|
|
560
560
|
}, {
|
|
561
|
-
default:
|
|
561
|
+
default: y(() => [...t[10] || (t[10] = [c("修改", -1)])]),
|
|
562
562
|
_: 1
|
|
563
563
|
}, 8, ["onClick"]),
|
|
564
|
-
|
|
564
|
+
l(E, {
|
|
565
565
|
class: "pop-confirm",
|
|
566
566
|
"icon-color": "red",
|
|
567
567
|
title: "你确定要删除吗?",
|
|
568
|
-
onConfirm: (e) => w.removeNode(
|
|
568
|
+
onConfirm: (e) => w.removeNode(i, u)
|
|
569
569
|
}, {
|
|
570
|
-
reference:
|
|
571
|
-
size: "
|
|
570
|
+
reference: y(() => [b(l(T, {
|
|
571
|
+
size: "default",
|
|
572
572
|
style: { "margin-left": "4px" },
|
|
573
573
|
type: "text",
|
|
574
|
-
onClick: t[1] || (t[1] =
|
|
574
|
+
onClick: t[1] || (t[1] = x(() => {}, ["stop"]))
|
|
575
575
|
}, {
|
|
576
|
-
default:
|
|
576
|
+
default: y(() => [...t[11] || (t[11] = [c("删除", -1)])]),
|
|
577
577
|
_: 1
|
|
578
|
-
}, 512), [[
|
|
578
|
+
}, 512), [[v, i.isLeaf]])]),
|
|
579
579
|
_: 2
|
|
580
580
|
}, 1032, ["onConfirm"])
|
|
581
|
-
], 512)), [[
|
|
582
|
-
n.contextMenuIcon && n.contextMenu && !n.readonly ?
|
|
583
|
-
size: "
|
|
581
|
+
], 512)), [[v, !u.loading && !C.loading]]) : a("v-if", !0),
|
|
582
|
+
n.contextMenuIcon && n.contextMenu && !n.readonly ? b((p(), o("span", K, [l(T, {
|
|
583
|
+
size: "default",
|
|
584
584
|
style: { padding: "6px 10px 0" },
|
|
585
585
|
type: "text",
|
|
586
|
-
onClick:
|
|
586
|
+
onClick: x((e) => w.showContextMenu(e, u, i), ["stop"])
|
|
587
587
|
}, {
|
|
588
|
-
default:
|
|
588
|
+
default: y(() => [...t[12] || (t[12] = [c(". . .", -1)])]),
|
|
589
589
|
_: 1
|
|
590
|
-
}, 8, ["onClick"])], 512)), [[
|
|
591
|
-
], 8,
|
|
590
|
+
}, 8, ["onClick"])], 512)), [[v, !u.loading && !C.loading]]) : a("v-if", !0)
|
|
591
|
+
], 8, V))])]),
|
|
592
592
|
_: 3
|
|
593
593
|
}, 16, [
|
|
594
594
|
"default-expanded-keys",
|
|
@@ -602,47 +602,47 @@ function X(e, t, n, r, C, w) {
|
|
|
602
602
|
"onNodeExpand",
|
|
603
603
|
"onNodeCollapse"
|
|
604
604
|
])),
|
|
605
|
-
n.contextMenu && !n.readonly ?
|
|
605
|
+
n.contextMenu && !n.readonly ? b((p(), o("div", {
|
|
606
606
|
key: 1,
|
|
607
607
|
ref: "contextMenu",
|
|
608
|
-
style:
|
|
608
|
+
style: f(C.position),
|
|
609
609
|
class: "menu"
|
|
610
|
-
}, [
|
|
610
|
+
}, [s("ul", J, [m(e.$slots, "context-menu", {
|
|
611
611
|
curNode: C.curNode,
|
|
612
612
|
curData: C.curData
|
|
613
613
|
}, () => [
|
|
614
|
-
|
|
614
|
+
b(s("li", {
|
|
615
615
|
class: "menu-item",
|
|
616
616
|
onClick: t[4] || (t[4] = (e) => w.appendPeerNode(C.curNode, C.curData))
|
|
617
|
-
}, [t[15] || (t[15] =
|
|
617
|
+
}, [t[15] || (t[15] = s("i", {
|
|
618
618
|
class: "menu-item-icon el-icon-lx-add",
|
|
619
619
|
style: { color: "#228b22" }
|
|
620
|
-
}, null, -1)),
|
|
621
|
-
|
|
620
|
+
}, null, -1)), c(g(n.menuLabel.appendPeer), 1)], 512), [[v, C.curData.id > -1]]),
|
|
621
|
+
s("li", {
|
|
622
622
|
class: "menu-item",
|
|
623
623
|
onClick: t[5] || (t[5] = (e) => w.appendChildNode(C.curNode, C.curData))
|
|
624
|
-
}, [t[16] || (t[16] =
|
|
624
|
+
}, [t[16] || (t[16] = s("i", {
|
|
625
625
|
class: "menu-item-icon el-icon-lx-add",
|
|
626
626
|
style: { color: "#228b22" }
|
|
627
|
-
}, null, -1)),
|
|
628
|
-
|
|
627
|
+
}, null, -1)), c(g(n.menuLabel.appendChild), 1)]),
|
|
628
|
+
b(s("li", {
|
|
629
629
|
class: "menu-item",
|
|
630
630
|
onClick: t[6] || (t[6] = (e) => w.editNode(C.curNode, C.curData))
|
|
631
|
-
}, [t[17] || (t[17] =
|
|
631
|
+
}, [t[17] || (t[17] = s("i", {
|
|
632
632
|
class: "menu-item-icon el-icon-edit-outline",
|
|
633
633
|
style: { color: "#ffa500" }
|
|
634
|
-
}, null, -1)),
|
|
635
|
-
|
|
634
|
+
}, null, -1)), c(g(n.menuLabel.editNode), 1)], 512), [[v, C.curData.id > -1]]),
|
|
635
|
+
b(s("li", {
|
|
636
636
|
class: "menu-item",
|
|
637
637
|
onClick: t[7] || (t[7] = (e) => w.removeNodeModal(C.curNode, C.curData))
|
|
638
|
-
}, [t[18] || (t[18] =
|
|
638
|
+
}, [t[18] || (t[18] = s("i", {
|
|
639
639
|
class: "menu-item-icon el-icon-delete",
|
|
640
640
|
style: { color: "#f00" }
|
|
641
|
-
}, null, -1)),
|
|
642
|
-
])])], 4)), [[
|
|
641
|
+
}, null, -1)), c(g(n.menuLabel.removeNode), 1)], 512), [[v, C.curNode.isLeaf]])
|
|
642
|
+
])])], 4)), [[v, C.showMenu]]) : a("v-if", !0)
|
|
643
643
|
], 512)
|
|
644
644
|
]);
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var X = /* @__PURE__ */ e(L, [["render", Y]]);
|
|
647
647
|
//#endregion
|
|
648
|
-
export {
|
|
648
|
+
export { X as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { i as t, n } from "./utils.
|
|
2
|
+
import { i as t, n } from "./utils.BGJfM4oG.mjs";
|
|
3
3
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, openBlock as c, renderList as l, resolveComponent as u, withCtx as d, withModifiers as f } from "vue";
|
|
4
4
|
import { fastClone as p } from "@web-utils/core";
|
|
5
5
|
//#region src/components/bpmn-process-designer/components/penal/base/ElementBaseInfo.vue
|
|
@@ -74,7 +74,7 @@ var m = {
|
|
|
74
74
|
function g(e, t, n, p, m, g) {
|
|
75
75
|
let _ = u("ElInput"), v = u("ElFormItem"), y = u("ElSwitch"), b = u("ElOption"), x = u("ElSelect"), S = u("ElForm");
|
|
76
76
|
return c(), o("div", h, [s(S, {
|
|
77
|
-
size: "
|
|
77
|
+
size: "default",
|
|
78
78
|
"label-width": "90px",
|
|
79
79
|
onSubmit: t[22] || (t[22] = f(() => {}, ["prevent"]))
|
|
80
80
|
}, {
|