@web-utils/component 4.0.15 → 4.0.16
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 +13 -15
- package/card/index.mjs +18 -20
- package/carousel/index.mjs +10 -12
- package/chat/index.mjs +45 -56
- package/chunk-file-uploader/index.mjs +36 -378
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
- package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
- package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
- package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
- package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
- package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
- package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
- package/chunks/core.0Exl13Mz.mjs +54 -0
- package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
- package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
- package/chunks/dictionary.DGt59Ir7.mjs +68 -0
- package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
- package/chunks/form-item.LWjePsPa.mjs +233 -0
- package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
- package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
- package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/color-picker/index.mjs +22 -101
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +12 -15
- package/data-card/index.mjs +10 -12
- package/data-card-text/index.mjs +10 -12
- package/data-display/index.mjs +15 -17
- package/data-icons/index.mjs +13 -16
- package/data-imgtext/index.mjs +15 -18
- package/data-operatext/index.mjs +14 -16
- package/data-panel/index.mjs +13 -16
- package/data-pay/index.mjs +16 -20
- package/data-price/index.mjs +14 -16
- package/data-progress/index.mjs +13 -17
- package/data-rotate/index.mjs +12 -15
- package/data-table-picker/index.mjs +15 -18
- package/data-tabs/index.mjs +12 -15
- package/dialog-form/index.mjs +16 -18
- package/dynamic-table/index.mjs +25 -30
- package/editable-progress/index.mjs +9 -11
- package/editable-tree/index.mjs +52 -56
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +22 -23
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +10 -11
- package/flow-designer/index.mjs +699 -1973
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +32 -34
- package/form-cascader/index.mjs +23 -24
- package/form-checkbox/index.mjs +16 -17
- package/form-checkbox-group/index.mjs +20 -23
- package/form-date-picker/index.mjs +18 -20
- package/form-holder/index.mjs +13 -14
- package/form-input/index.mjs +14 -15
- package/form-input-cron-expression/index.mjs +19 -22
- package/form-input-email/index.mjs +15 -16
- package/form-input-id-card/index.mjs +12 -13
- package/form-input-number/index.mjs +16 -17
- package/form-input-phone-number/index.mjs +21 -22
- package/form-input-tag/index.mjs +14 -15
- package/form-input-time/index.mjs +14 -15
- package/form-item/index.mjs +140 -3
- package/form-item-group/index.mjs +28 -31
- package/form-radio-group/index.mjs +27 -28
- package/form-select/index.mjs +21 -23
- package/form-switch/index.mjs +16 -17
- package/form-table/index.mjs +16 -17
- package/form-table-plus/index.mjs +21 -22
- package/form-textarea/index.mjs +15 -16
- package/form-tree-select/index.mjs +14 -15
- package/form-tree-select-multiple/index.mjs +14 -15
- package/form-view/index.mjs +35 -39
- package/fy-array/index.mjs +33 -37
- package/fy-cascader/index.mjs +16 -17
- package/fy-checkbox/index.mjs +11 -13
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1128 -1152
- package/fy-date/index.mjs +10 -11
- package/fy-draggable/index.mjs +9 -10
- package/fy-dynamic/index.mjs +22 -25
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +638 -15
- package/fy-form-design/index.mjs +1307 -1345
- package/fy-from/crud/zh.d.ts +6 -6
- package/fy-input/index.mjs +12 -14
- package/fy-input-color/index.mjs +13 -15
- package/fy-input-icon/index.mjs +20 -23
- package/fy-input-map/index.mjs +28 -31
- package/fy-input-number/index.mjs +9 -10
- package/fy-input-table/index.mjs +18 -22
- package/fy-input-tree/index.mjs +33 -37
- package/fy-progress/index.mjs +9 -10
- package/fy-radio/index.mjs +15 -16
- package/fy-rate/index.mjs +10 -11
- package/fy-select/index.mjs +25 -29
- package/fy-slider/index.mjs +11 -12
- package/fy-switch/index.mjs +9 -10
- package/fy-tabs/index.mjs +15 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +18 -24
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +11 -13
- package/iframe-window/index.mjs +9 -10
- package/image-cropper/index.mjs +28 -30
- package/image-preview/index.mjs +12 -14
- package/index.mjs +72 -72
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +11 -12
- package/license/index.mjs +1 -1
- package/login/index.mjs +21 -26
- package/nav-bar/index.mjs +9 -10
- package/notice/index.mjs +9 -10
- package/package.json +1 -1
- package/page-index/index.mjs +12 -13
- package/page-index-top/index.mjs +23 -28
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +8 -9
- package/pageable-table/index.mjs +172 -182
- package/pageable-view/index.mjs +15 -16
- package/picker-table-view/index.mjs +49 -58
- package/present-view/index.mjs +35 -39
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +20 -22
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +9 -10
- package/split-pane/index.mjs +36 -37
- package/static-pageable-table/index.mjs +11 -13
- package/sub-table/index.mjs +36 -49
- package/sub-table-plus/index.mjs +229 -18
- package/swiper/index.mjs +11 -12
- package/table-column/index.mjs +223 -3
- package/table-view/index.mjs +52 -60
- package/tabs-view/index.mjs +17 -19
- package/tag-render/index.mjs +16 -18
- package/text-ellipsis/index.mjs +9 -10
- package/toolbar/index.mjs +13 -14
- package/toolbar-button/index.mjs +13 -14
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +259 -267
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +21 -24
- package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
- package/chunks/FyForm.DriwCJ7b.mjs +0 -765
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
- package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
- package/chunks/TableColumn.BzivvXMF.mjs +0 -337
package/editable-tree/index.mjs
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import r from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { c as k, d as B } from "../chunks/index.Cn7aq-Et.mjs";
|
|
9
|
-
import T from "vue";
|
|
10
|
-
import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
11
|
-
function h(t, e) {
|
|
1
|
+
import { findTreeChildren as m, delay as y, isUndefined as l, isNotEmpty as x, fastClone as w, isPlainObject as r, isFunction as h, computePosition as N, isVerticalScrollbarVisible as C, scrollbarWidth as g, hasOwn as d } from "@web-utils/core";
|
|
2
|
+
import { removeResizeListener as u, addResizeListener as p } from "@web-utils/integrations/resize";
|
|
3
|
+
import { cloneDeep as f } from "@web-utils/integrations/lodash";
|
|
4
|
+
import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import b from "vue";
|
|
6
|
+
import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
+
function c(t, e) {
|
|
12
8
|
for (const i in e)
|
|
13
|
-
|
|
9
|
+
b.set(t, i, e[i]);
|
|
14
10
|
return t;
|
|
15
11
|
}
|
|
16
|
-
const
|
|
12
|
+
const B = {
|
|
17
13
|
name: "EditableTree",
|
|
18
14
|
props: {
|
|
19
15
|
label: {
|
|
@@ -72,7 +68,7 @@ const M = {
|
|
|
72
68
|
default: () => ({
|
|
73
69
|
children: "children",
|
|
74
70
|
label: "name",
|
|
75
|
-
isLeaf: (t) =>
|
|
71
|
+
isLeaf: (t) => d(t, "hasChildren") ? !t.hasChildren : d(t, "hasChild") ? !t.hasChild : d(t, "children") && t.children ? t.children.length === 0 : !0
|
|
76
72
|
})
|
|
77
73
|
},
|
|
78
74
|
menuLabel: {
|
|
@@ -146,14 +142,14 @@ const M = {
|
|
|
146
142
|
this.tryFetch();
|
|
147
143
|
},
|
|
148
144
|
mounted() {
|
|
149
|
-
|
|
145
|
+
p(this.$refs.tree.$el, this.resize), p(this.$refs.treeWrapper, this.resize);
|
|
150
146
|
},
|
|
151
147
|
beforeDestroy() {
|
|
152
|
-
|
|
148
|
+
u(this.$refs.tree.$el, this.resize), u(this.$refs.treeWrapper, this.resize);
|
|
153
149
|
},
|
|
154
150
|
methods: {
|
|
155
|
-
filterTreeProperties:
|
|
156
|
-
filterTreeEvents:
|
|
151
|
+
filterTreeProperties: $,
|
|
152
|
+
filterTreeEvents: v,
|
|
157
153
|
addExpandKey(t) {
|
|
158
154
|
this.reserveExpandKey && this.expandedKeys.push(t[this.nodeKey]);
|
|
159
155
|
},
|
|
@@ -161,10 +157,10 @@ const M = {
|
|
|
161
157
|
this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((e) => e !== t[this.nodeKey]));
|
|
162
158
|
},
|
|
163
159
|
resize() {
|
|
164
|
-
|
|
160
|
+
C(this.$refs.treeWrapper) ? this.right = 4 + g : this.right = 4;
|
|
165
161
|
},
|
|
166
162
|
async showContextMenu(t, e, i) {
|
|
167
|
-
e.contextmenu === !1 || e.id === -1 || e.id === 0 || e.edit === !0 || this.contextMenu && (this.curNode = i, this.curData = e, this.showMenu = !0, this.$refs.tree.setCurrentKey(e.id), await this.$nextTick(), this.position =
|
|
163
|
+
e.contextmenu === !1 || e.id === -1 || e.id === 0 || e.edit === !0 || this.contextMenu && (this.curNode = i, this.curData = e, this.showMenu = !0, this.$refs.tree.setCurrentKey(e.id), await this.$nextTick(), this.position = N(t, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
|
|
168
164
|
},
|
|
169
165
|
hideContextMenu() {
|
|
170
166
|
this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
|
|
@@ -173,12 +169,12 @@ const M = {
|
|
|
173
169
|
var t;
|
|
174
170
|
if (this.lazy === !1 && this.fetchApi) {
|
|
175
171
|
const e = await this.fetchApi(((t = this.rootNode) == null ? void 0 : t.id) ?? -1, {});
|
|
176
|
-
if (
|
|
177
|
-
const i =
|
|
172
|
+
if (r(e.data) && (e.data = [e.data]), e.data = e.data || [], this.empty = e.data.length === 0, r(this.customRootNode)) {
|
|
173
|
+
const i = f(this.customRootNode);
|
|
178
174
|
i[this.treeProps.children || "children"] = e.data, this.treeData = [i];
|
|
179
|
-
} else if (
|
|
175
|
+
} else if (h(this.customRootNode)) {
|
|
180
176
|
const i = this.customRootNode(e.data);
|
|
181
|
-
i[this.treeProps.children || "children"] = e.data, this.treeData =
|
|
177
|
+
i[this.treeProps.children || "children"] = e.data, this.treeData = r(i) ? [i] : i;
|
|
182
178
|
} else
|
|
183
179
|
this.treeData = e.data;
|
|
184
180
|
}
|
|
@@ -187,12 +183,12 @@ const M = {
|
|
|
187
183
|
var i, s, n;
|
|
188
184
|
if (t.level === 0) {
|
|
189
185
|
const o = await this.fetchApi(((i = this.rootNode) == null ? void 0 : i.id) ?? -1, t);
|
|
190
|
-
if (this.empty = o.data.length === 0,
|
|
191
|
-
const a =
|
|
186
|
+
if (this.empty = o.data.length === 0, r(this.customRootNode)) {
|
|
187
|
+
const a = f(this.customRootNode);
|
|
192
188
|
a[this.treeProps.children || "children"] = o.data, e([a]);
|
|
193
|
-
} else if (
|
|
189
|
+
} else if (h(this.customRootNode)) {
|
|
194
190
|
const a = this.customRootNode(o.data);
|
|
195
|
-
a[this.treeProps.children || "children"] = o.data, this.treeData =
|
|
191
|
+
a[this.treeProps.children || "children"] = o.data, this.treeData = r(a) ? [a] : a;
|
|
196
192
|
} else
|
|
197
193
|
e(o.data);
|
|
198
194
|
await this.$nextTick(), this.$emit("root-node-loaded", o.data), this.defaultExpandedKeys ? this.expandedKeys = [(s = o == null ? void 0 : o.data[0]) == null ? void 0 : s.id, ...this.defaultExpandedKeys] : this.expandFirstNode && (this.expandedKeys = [(n = o == null ? void 0 : o.data[0]) == null ? void 0 : n.id]);
|
|
@@ -213,10 +209,10 @@ const M = {
|
|
|
213
209
|
this.newChild && this.newChild.id === -1 && (console.log(this.newChild), this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
|
|
214
210
|
},
|
|
215
211
|
cancelEdit() {
|
|
216
|
-
this.editData && (
|
|
212
|
+
this.editData && (l(this.editData.edit) ? this.$set(this.editData, "edit", !0) : this.editData.edit = !1);
|
|
217
213
|
},
|
|
218
214
|
async editNode(t, e) {
|
|
219
|
-
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = e, this.text = e[this.treeProps.label],
|
|
215
|
+
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = e, this.text = e[this.treeProps.label], l(e.edit) ? this.$set(e, "edit", !0) : e.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await this.$prompt(`请输入新的${this.label}名:`, {
|
|
220
216
|
...this.defaultOptions,
|
|
221
217
|
inputValue: e[this.treeProps.label],
|
|
222
218
|
beforeClose: async (i, s, n) => {
|
|
@@ -240,7 +236,7 @@ const M = {
|
|
|
240
236
|
try {
|
|
241
237
|
this.createNewChild(-1), e.confirmButtonLoading = !0, e.confirmButtonText = "处理中...";
|
|
242
238
|
const s = await this.saveApi(this.newNodeBuilder(e.inputValue, { id: -1 }));
|
|
243
|
-
this.newChild[this.treeProps.label] = e.inputValue, this.newChild.edit = !1,
|
|
239
|
+
this.newChild[this.treeProps.label] = e.inputValue, this.newChild.edit = !1, c(this.newChild, s.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), i();
|
|
244
240
|
} catch {
|
|
245
241
|
e.confirmButtonText = "确定";
|
|
246
242
|
}
|
|
@@ -261,7 +257,7 @@ const M = {
|
|
|
261
257
|
try {
|
|
262
258
|
this.createNewChild(t.data.id), s.confirmButtonLoading = !0, s.confirmButtonText = "处理中...";
|
|
263
259
|
const o = await this.saveApi(this.newNodeBuilder(s.inputValue, t.data));
|
|
264
|
-
this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1,
|
|
260
|
+
this.newChild[this.treeProps.label] = s.inputValue, this.newChild.edit = !1, c(this.newChild, o.data), this.$refs.tree.append(this.newChild, t), await this.locateView(), n();
|
|
265
261
|
} catch {
|
|
266
262
|
s.confirmButtonText = "确定";
|
|
267
263
|
}
|
|
@@ -359,15 +355,15 @@ const M = {
|
|
|
359
355
|
}
|
|
360
356
|
},
|
|
361
357
|
async onConfirm(t, e) {
|
|
362
|
-
if (e[this.treeProps.label] === this.text || !
|
|
358
|
+
if (e[this.treeProps.label] === this.text || !x(this.text)) {
|
|
363
359
|
this.clear();
|
|
364
360
|
return;
|
|
365
361
|
}
|
|
366
|
-
|
|
362
|
+
l(e.loading) ? this.$set(e, "loading", !0) : e.loading = !0;
|
|
367
363
|
try {
|
|
368
364
|
if (this.loading = !0, e.id === -1) {
|
|
369
|
-
const i = await this.saveApi(this.newNodeBuilder(this.text, t.parent.data || { id: -1 })), s =
|
|
370
|
-
|
|
365
|
+
const i = await this.saveApi(this.newNodeBuilder(this.text, t.parent.data || { id: -1 })), s = w(e);
|
|
366
|
+
c(e, { ...i.data, isTempNode: !1 }), this.$emit("node-added", e, s, t), this.registerNode(t);
|
|
371
367
|
} else
|
|
372
368
|
await this.updateApi({ ...e, [this.treeProps.label]: this.text });
|
|
373
369
|
e[this.treeProps.label] = this.text, e.edit = !1, this.$emit("node-updated", e, t), this.text = "";
|
|
@@ -379,7 +375,7 @@ const M = {
|
|
|
379
375
|
e.id === -1 ? this.$refs.tree.remove(t) : e.edit = !1, this.text = "";
|
|
380
376
|
},
|
|
381
377
|
nodeClick(t, e, i) {
|
|
382
|
-
this.hideContextMenu(), (
|
|
378
|
+
this.hideContextMenu(), (l(t.loading) || !t.loading) && (this.curNode = e, this.curData = t, this.$emit("on-node-click", t, e, i));
|
|
383
379
|
},
|
|
384
380
|
getCurrentNode() {
|
|
385
381
|
return this.$refs.tree.getCurrentNode();
|
|
@@ -391,7 +387,7 @@ const M = {
|
|
|
391
387
|
},
|
|
392
388
|
async scrollIntoView(t) {
|
|
393
389
|
var e, i;
|
|
394
|
-
await this.$nextTick(), t || await
|
|
390
|
+
await this.$nextTick(), t || await y(300), (i = (e = this.$refs) == null ? void 0 : e.labelTxt) == null || i.focus();
|
|
395
391
|
},
|
|
396
392
|
inputKeyup(t, e, i) {
|
|
397
393
|
t.keyCode === 13 && this.onConfirm(e, i), t.keyCode === 27 && this.clear();
|
|
@@ -418,7 +414,7 @@ const M = {
|
|
|
418
414
|
return this.$refs.tree.root;
|
|
419
415
|
},
|
|
420
416
|
findTreeNode(t) {
|
|
421
|
-
return
|
|
417
|
+
return m(this.$refs.tree.root.childNodes, (e) => e.data === t || e.data.id === t, "childNodes");
|
|
422
418
|
},
|
|
423
419
|
registerNode(t) {
|
|
424
420
|
t.store.registerNode(t), delete t.store.nodesMap[-1];
|
|
@@ -428,35 +424,35 @@ const M = {
|
|
|
428
424
|
}
|
|
429
425
|
}
|
|
430
426
|
};
|
|
431
|
-
var
|
|
427
|
+
var _ = function() {
|
|
432
428
|
var e = this, i = e._self._c;
|
|
433
|
-
return i("div", { staticClass: "editable-tree" }, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? i(
|
|
429
|
+
return i("div", { staticClass: "editable-tree" }, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? i("ElButton", { staticStyle: { position: "absolute", top: "4px", "z-index": "1" }, style: { right: `${e.right}px` }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus", circle: "", plain: "" }, on: { click: function(s) {
|
|
434
430
|
return s.stopPropagation(), e.$emit("add-root-node");
|
|
435
|
-
} } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i(
|
|
431
|
+
} } }) : e._e(), i("div", { ref: "treeWrapper", staticClass: "et-tree-wrapper" }, [!e.readonly && e.addRootNodeButtonStyle === "top" ? i("div", { staticStyle: { "padding-left": "24px" } }, [i("ElButton", { attrs: { disabled: e.loading, size: "mini", type: "text" }, on: { click: e.appendRootNode } }, [i("i", { staticClass: "el-icon-lx-add" }), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), i("ElTree", e._g(e._b({ key: e.treeKey, ref: "tree", staticClass: "flex-item", attrs: { "default-expanded-keys": e.expandedKeys, "expand-on-click-node": !1, "highlight-current": "", load: e.loadNode, data: e.innerTreeData, props: e.treeProps, lazy: e.lazy, "node-key": e.nodeKey }, on: { "node-click": e.nodeClick, "node-contextmenu": e.showContextMenu, "node-expand": e.addExpandKey, "node-collapse": e.removeExpandKey }, scopedSlots: e._u([{ key: "default", fn: function({ node: s, data: n }) {
|
|
436
432
|
return [e._t("default", function() {
|
|
437
|
-
return [n.edit ? [i("span", { staticClass: "custom-tree-node flex-row flex-item oh", attrs: { "data-id": n.id } }, [e.icon ? i("i", { staticClass: "node-icon shrink-0", class: n.loading ? "el-icon-loading" : "el-icon-edit-outline" }) : e._e(), i(
|
|
433
|
+
return [n.edit ? [i("span", { staticClass: "custom-tree-node flex-row flex-item oh", attrs: { "data-id": n.id } }, [e.icon ? i("i", { staticClass: "node-icon shrink-0", class: n.loading ? "el-icon-loading" : "el-icon-edit-outline" }) : e._e(), i("ElInput", { ref: "labelTxt", staticClass: "node-input flex-item", attrs: { size: "mini", placeholder: e.defaultOptions.inputPlaceholder }, on: { blur: (o) => e.inputBlur(o, s, n) }, nativeOn: { keyup: function(o) {
|
|
438
434
|
return ((a) => e.inputKeyup(a, s, n)).apply(null, arguments);
|
|
439
435
|
}, click: function(o) {
|
|
440
436
|
o.stopPropagation();
|
|
441
437
|
} }, model: { value: e.text, callback: function(o) {
|
|
442
438
|
e.text = o;
|
|
443
|
-
}, expression: "text" } }), e.confirmButton ? [i(
|
|
439
|
+
}, expression: "text" } }), e.confirmButton ? [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
444
440
|
return o.stopPropagation(), e.onConfirm(s, n);
|
|
445
|
-
} } }, [e._v("确定")]), i(
|
|
441
|
+
} } }, [e._v("确定")]), i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!data.loading" }], staticClass: "shrink-0", attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
446
442
|
return o.stopPropagation(), e.onCancel(s, n);
|
|
447
443
|
} } }, [e._v("取消")])] : e._e()], 2)] : [i("span", { staticClass: "custom-tree-node", attrs: { "data-id": n.id } }, [i("span", { staticClass: "node-label flex-row flex-item oh ellipsis-1" }, [e.icon ? i("i", { staticClass: "node-icon", class: n.loading ? "el-icon-loading" : e.icon(n, s) }) : e._e(), i("span", { staticClass: "flex-item-relative", staticStyle: { height: "21px" } }, [i("span", { staticClass: "ellipsis-1 absolute-box et-tree-label", attrs: { title: s.label } }, [e._t("label", function() {
|
|
448
444
|
return [e._v(e._s(s.label))];
|
|
449
|
-
}, { data: n, node: s })], 2)]), e._t("label-suffix", null, { node: s, data: n })], 2), !e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions" }, [i(
|
|
445
|
+
}, { data: n, node: s })], 2)]), e._t("label-suffix", null, { node: s, data: n })], 2), !e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions" }, [i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
450
446
|
return o.stopPropagation(), e.appendChildNode(s, n);
|
|
451
|
-
} } }, [e._v("添加")]), i(
|
|
447
|
+
} } }, [e._v("添加")]), i("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
452
448
|
return o.stopPropagation(), e.editNode(s, n);
|
|
453
|
-
} } }, [e._v("修改")]), i(
|
|
449
|
+
} } }, [e._v("修改")]), i("ElPopconfirm", { staticClass: "pop-confirm", attrs: { "icon-color": "red", title: "你确定要删除吗?" }, on: { confirm: function(o) {
|
|
454
450
|
return e.removeNode(s, n);
|
|
455
451
|
} }, scopedSlots: e._u([{ key: "reference", fn: function() {
|
|
456
|
-
return [i(
|
|
452
|
+
return [i("ElButton", { directives: [{ name: "show", rawName: "v-show", value: s.isLeaf, expression: "node.isLeaf" }], staticStyle: { "margin-left": "4px" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
457
453
|
o.stopPropagation();
|
|
458
454
|
} } }, [e._v("删除")])];
|
|
459
|
-
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions", staticStyle: { display: "inline-block" } }, [i(
|
|
455
|
+
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? i("span", { directives: [{ name: "show", rawName: "v-show", value: !n.loading && !e.loading, expression: "!data.loading && !loading" }], staticClass: "handle-actions", staticStyle: { display: "inline-block" } }, [i("ElButton", { staticStyle: { padding: "6px 10px 0" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
|
|
460
456
|
return o.stopPropagation(), e.showContextMenu(o, n, s);
|
|
461
457
|
} } }, [e._v(". . .")])], 1) : e._e()])]];
|
|
462
458
|
}, { node: s, data: n })];
|
|
@@ -471,15 +467,15 @@ var P = function() {
|
|
|
471
467
|
return e.removeNodeModal(e.curNode, e.curData);
|
|
472
468
|
} } }, [i("i", { staticClass: "menu-item-icon el-icon-delete", staticStyle: { color: "#f00" } }), e._v(e._s(e.menuLabel.removeNode) + " ")])];
|
|
473
469
|
}, { curNode: e.curNode, curData: e.curData })], 2)]) : e._e()], 1)], 1);
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
470
|
+
}, T = [], K = /* @__PURE__ */ k(
|
|
471
|
+
B,
|
|
472
|
+
_,
|
|
473
|
+
T,
|
|
478
474
|
!1,
|
|
479
475
|
null,
|
|
480
476
|
null
|
|
481
477
|
);
|
|
482
|
-
const
|
|
478
|
+
const z = K.exports;
|
|
483
479
|
export {
|
|
484
|
-
|
|
480
|
+
z as default
|
|
485
481
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import s from "element-ui/
|
|
2
|
-
import a from "element-ui/src/mixins/emitter";
|
|
1
|
+
import s from "element-ui/src/mixins/emitter";
|
|
3
2
|
import { generateId as l } from "element-ui/src/utils/util";
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import a from "element-ui/lib/transitions/collapse-transition";
|
|
4
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const c = {
|
|
6
6
|
name: "EgdCollapseItem",
|
|
7
|
-
components: { ElCollapseTransition:
|
|
7
|
+
components: { ElCollapseTransition: a },
|
|
8
8
|
componentName: "EgdCollapseItem",
|
|
9
|
-
mixins: [
|
|
9
|
+
mixins: [s],
|
|
10
10
|
inject: ["collapse"],
|
|
11
11
|
props: {
|
|
12
12
|
title: {
|
|
@@ -57,9 +57,9 @@ var o = function() {
|
|
|
57
57
|
e.focusing = !1;
|
|
58
58
|
} } }, [i("i", { staticClass: "el-collapse-item__arrow el-icon-arrow-right", class: { "is-active": e.isActive }, staticStyle: { margin: "0 4px 0 0" } }), e._t("title", function() {
|
|
59
59
|
return [e._v(" " + e._s(e.title) + " ")];
|
|
60
|
-
}, { title: e.title })], 2)]), i(
|
|
61
|
-
}, r = [], d = /* @__PURE__ */
|
|
62
|
-
|
|
60
|
+
}, { title: e.title })], 2)]), i("ElCollapseTransition", [i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], staticClass: "el-collapse-item__wrap", attrs: { id: `el-collapse-content-${e.id}`, role: "tabpanel", "aria-hidden": !e.isActive, "aria-labelledby": `el-collapse-head-${e.id}` } }, [i("div", { staticClass: "el-collapse-item__content" }, [e._t("default")], 2)])])], 1);
|
|
61
|
+
}, r = [], d = /* @__PURE__ */ n(
|
|
62
|
+
c,
|
|
63
63
|
o,
|
|
64
64
|
r,
|
|
65
65
|
!1,
|
package/element-dialog/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const u = {
|
|
1
|
+
import s from "element-ui/lib/dialog";
|
|
2
|
+
import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
|
|
3
|
+
import { getComputedHeight as r, isDef as n } from "@web-utils/core";
|
|
4
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import { g as d } from "../chunks/index.B2TRddqf.mjs";
|
|
6
|
+
const p = {
|
|
8
7
|
name: "EmulateForm",
|
|
9
8
|
provide() {
|
|
10
9
|
return {
|
|
@@ -16,16 +15,16 @@ const u = {
|
|
|
16
15
|
render() {
|
|
17
16
|
return this.$slots.default;
|
|
18
17
|
}
|
|
19
|
-
},
|
|
20
|
-
var
|
|
18
|
+
}, c = null, u = null;
|
|
19
|
+
var f = /* @__PURE__ */ i(
|
|
20
|
+
p,
|
|
21
|
+
c,
|
|
21
22
|
u,
|
|
22
|
-
f,
|
|
23
|
-
h,
|
|
24
23
|
!1,
|
|
25
24
|
null,
|
|
26
25
|
null
|
|
27
26
|
);
|
|
28
|
-
const
|
|
27
|
+
const h = f.exports, m = {
|
|
29
28
|
props: {
|
|
30
29
|
/**
|
|
31
30
|
* 对话框是否可见
|
|
@@ -93,13 +92,13 @@ const a = m.exports, g = {
|
|
|
93
92
|
default: "76vh"
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
|
-
},
|
|
95
|
+
}, g = {
|
|
97
96
|
name: "ElementDialog",
|
|
98
|
-
components: { EmulateForm:
|
|
97
|
+
components: { EmulateForm: h },
|
|
99
98
|
directives: {
|
|
100
|
-
dialogDrag:
|
|
99
|
+
dialogDrag: a
|
|
101
100
|
},
|
|
102
|
-
mixins: [...
|
|
101
|
+
mixins: [...d(s).mixins, m],
|
|
103
102
|
props: {
|
|
104
103
|
/**
|
|
105
104
|
* 对话框标题
|
|
@@ -238,7 +237,7 @@ const a = m.exports, g = {
|
|
|
238
237
|
},
|
|
239
238
|
methods: {
|
|
240
239
|
async computeTop() {
|
|
241
|
-
await this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight -
|
|
240
|
+
await this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - r(this.$refs.dialog)) / 2 + (n(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
|
|
242
241
|
},
|
|
243
242
|
toggleFullScreen() {
|
|
244
243
|
this.fullScreen = !this.fullScreen;
|
|
@@ -292,16 +291,16 @@ var y = function() {
|
|
|
292
291
|
e.customClass
|
|
293
292
|
], style: e.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [l("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
|
|
294
293
|
return [l("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
|
|
295
|
-
}), l(
|
|
296
|
-
},
|
|
297
|
-
|
|
294
|
+
}), l("EmulateForm", [l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { disabled: !1, type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { disabled: !1, "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)])], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
|
|
295
|
+
}, _ = [], v = /* @__PURE__ */ i(
|
|
296
|
+
g,
|
|
298
297
|
y,
|
|
299
|
-
|
|
298
|
+
_,
|
|
300
299
|
!1,
|
|
301
300
|
null,
|
|
302
301
|
null
|
|
303
302
|
);
|
|
304
|
-
const
|
|
303
|
+
const x = v.exports;
|
|
305
304
|
export {
|
|
306
|
-
|
|
305
|
+
x as default
|
|
307
306
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.element-listeners-drawer .el-drawer__header{margin-bottom:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.element-multi-instance .el-select{display:block}.flow-tips-list-item{list-style:inside square}.flow-tips-title{padding-top:10px;padding-bottom:10px}.flow-tips-keyword{font-weight:700}
|
package/flex-column/index.mjs
CHANGED
package/flex-item/index.mjs
CHANGED
package/flex-row/index.mjs
CHANGED
package/flow/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import r from "../
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const u = {
|
|
1
|
+
import { r, s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const c = {
|
|
5
4
|
name: "Flow",
|
|
6
5
|
props: {
|
|
7
6
|
value: {
|
|
@@ -100,7 +99,7 @@ const u = {
|
|
|
100
99
|
}
|
|
101
100
|
},
|
|
102
101
|
created() {
|
|
103
|
-
this.id =
|
|
102
|
+
this.id = r(), this.jsplumbSetting.Container = this.id;
|
|
104
103
|
},
|
|
105
104
|
mounted() {
|
|
106
105
|
this.init();
|
|
@@ -225,24 +224,24 @@ const u = {
|
|
|
225
224
|
}
|
|
226
225
|
}
|
|
227
226
|
};
|
|
228
|
-
var
|
|
227
|
+
var u = function() {
|
|
229
228
|
var t = this, i = t._self._c;
|
|
230
229
|
return i("div", { staticClass: "avue-flow", style: t.styleName }, [i("div", { style: t.styleName, attrs: { id: t.id } }, [i("div", { staticClass: "avue-grid" }), t._l(t.option.nodeList, function(n, o) {
|
|
231
|
-
return [n.display ? t._e() : i(
|
|
230
|
+
return [n.display ? t._e() : i("FlowNode", { key: o, attrs: { id: n.id, node: n, index: o, active: t.active }, on: { changeNodeSite: t.changeNodeSite }, nativeOn: { click: function(s) {
|
|
232
231
|
return t.handleClick(n);
|
|
233
232
|
} }, scopedSlots: t._u([{ key: "header", fn: function({ node: s }) {
|
|
234
233
|
return [t._t("header", null, { node: s })];
|
|
235
234
|
} }], null, !0) }, [t._t("default", null, { node: n })], 2)];
|
|
236
235
|
})], 2)]);
|
|
237
|
-
},
|
|
236
|
+
}, h = [], d = /* @__PURE__ */ a(
|
|
237
|
+
c,
|
|
238
238
|
u,
|
|
239
239
|
h,
|
|
240
|
-
d,
|
|
241
240
|
!1,
|
|
242
241
|
null,
|
|
243
242
|
null
|
|
244
243
|
);
|
|
245
|
-
const
|
|
244
|
+
const f = d.exports;
|
|
246
245
|
export {
|
|
247
|
-
|
|
246
|
+
f as default
|
|
248
247
|
};
|