@web-utils/component 2.8.0 → 2.8.2
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/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/json-beautifier.21cfffea.mjs +126 -0
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/dynamic-table/index.mjs +8 -8
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-input-tag/index.mjs +99 -0
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2596 -2893
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +62 -38
- package/index.css +1 -1
- package/index.mjs +17121 -16215
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +196 -0
- package/package.json +3 -2
- package/present-view/index.mjs +360 -0
- package/present-view/style.css +1 -0
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/swiper/index.mjs +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/style.css +1 -1
- package/tinymce-wrapper/index.mjs +290 -97
- package/verify/index.mjs +1 -1
- package/web-types.json +829 -320
- package/x-input-tag/index.mjs +182 -0
- package/x-input-tag/style.css +1 -0
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/comment/index.mjs
CHANGED
|
@@ -45,10 +45,6 @@ const r = {
|
|
|
45
45
|
props: {
|
|
46
46
|
type: Object,
|
|
47
47
|
default: () => r
|
|
48
|
-
},
|
|
49
|
-
option: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default: () => ({})
|
|
52
48
|
}
|
|
53
49
|
},
|
|
54
50
|
computed: {
|
|
@@ -72,23 +68,23 @@ const r = {
|
|
|
72
68
|
}
|
|
73
69
|
}
|
|
74
70
|
}, o = {};
|
|
75
|
-
var
|
|
71
|
+
var v = /* @__PURE__ */ s(
|
|
76
72
|
_,
|
|
77
73
|
n,
|
|
78
74
|
u,
|
|
79
75
|
!1,
|
|
80
|
-
|
|
76
|
+
c,
|
|
81
77
|
null,
|
|
82
78
|
null,
|
|
83
79
|
null
|
|
84
80
|
);
|
|
85
|
-
function
|
|
81
|
+
function c(t) {
|
|
86
82
|
for (let a in o)
|
|
87
83
|
this[a] = o[a];
|
|
88
84
|
}
|
|
89
|
-
const
|
|
90
|
-
return
|
|
85
|
+
const m = /* @__PURE__ */ function() {
|
|
86
|
+
return v.exports;
|
|
91
87
|
}();
|
|
92
88
|
export {
|
|
93
|
-
|
|
89
|
+
m as default
|
|
94
90
|
};
|
package/data-pay/index.mjs
CHANGED
|
@@ -86,16 +86,19 @@ var c = function() {
|
|
|
86
86
|
effect: "dark",
|
|
87
87
|
disabled: !n.tip,
|
|
88
88
|
placement: "top"
|
|
89
|
-
}
|
|
90
|
-
}, [s("div", {
|
|
91
|
-
attrs: {
|
|
92
|
-
slot: "content"
|
|
93
89
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
scopedSlots: t._u([{
|
|
91
|
+
key: "content",
|
|
92
|
+
fn: function() {
|
|
93
|
+
return [s("div", {
|
|
94
|
+
domProps: {
|
|
95
|
+
innerHTML: t._s(n.tip)
|
|
96
|
+
}
|
|
97
|
+
})];
|
|
98
|
+
},
|
|
99
|
+
proxy: !0
|
|
100
|
+
}], null, !0)
|
|
101
|
+
}, [s("span", {
|
|
99
102
|
class: {
|
|
100
103
|
"list-item--link": n.href
|
|
101
104
|
}
|
|
@@ -103,7 +106,7 @@ var c = function() {
|
|
|
103
106
|
}), 0)])]);
|
|
104
107
|
}), 1)], 1);
|
|
105
108
|
}, _ = [];
|
|
106
|
-
const
|
|
109
|
+
const u = {
|
|
107
110
|
name: "DataPay",
|
|
108
111
|
props: {
|
|
109
112
|
option: {
|
|
@@ -128,16 +131,16 @@ const d = {
|
|
|
128
131
|
}
|
|
129
132
|
}, l = {};
|
|
130
133
|
var p = /* @__PURE__ */ r(
|
|
131
|
-
|
|
134
|
+
u,
|
|
132
135
|
c,
|
|
133
136
|
_,
|
|
134
137
|
!1,
|
|
135
|
-
|
|
138
|
+
d,
|
|
136
139
|
null,
|
|
137
140
|
null,
|
|
138
141
|
null
|
|
139
142
|
);
|
|
140
|
-
function
|
|
143
|
+
function d(t) {
|
|
141
144
|
for (let o in l)
|
|
142
145
|
this[o] = l[o];
|
|
143
146
|
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var a = function() {
|
|
1
|
+
import { f as n } from "../chunks/index.57f871af.mjs";
|
|
2
|
+
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var r = function() {
|
|
5
4
|
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
6
5
|
return l("ElementDialog", {
|
|
6
|
+
ref: "dialog",
|
|
7
7
|
attrs: {
|
|
8
|
-
visible: e.
|
|
8
|
+
visible: e.visible,
|
|
9
9
|
title: e.title,
|
|
10
10
|
width: e.width,
|
|
11
11
|
height: e.height,
|
|
12
|
+
embed: "",
|
|
12
13
|
"flex-column": ""
|
|
13
14
|
},
|
|
14
15
|
on: {
|
|
15
|
-
|
|
16
|
-
e.show = n;
|
|
17
|
-
},
|
|
18
|
-
close: e.close,
|
|
19
|
-
closed: e.closed
|
|
16
|
+
close: e.close
|
|
20
17
|
},
|
|
21
18
|
scopedSlots: e._u([{
|
|
22
19
|
key: "default",
|
|
@@ -66,11 +63,11 @@ var a = function() {
|
|
|
66
63
|
proxy: !0
|
|
67
64
|
}], null, !0)
|
|
68
65
|
});
|
|
69
|
-
},
|
|
70
|
-
const
|
|
66
|
+
}, s = [];
|
|
67
|
+
const a = {
|
|
71
68
|
name: "DataTablePicker",
|
|
72
|
-
mixins: [o],
|
|
73
69
|
props: {
|
|
70
|
+
visible: Boolean,
|
|
74
71
|
api: Function,
|
|
75
72
|
columns: Array,
|
|
76
73
|
title: String,
|
|
@@ -99,7 +96,7 @@ const u = {
|
|
|
99
96
|
};
|
|
100
97
|
},
|
|
101
98
|
methods: {
|
|
102
|
-
filterTableColumnProperties:
|
|
99
|
+
filterTableColumnProperties: n,
|
|
103
100
|
selectionChange(e) {
|
|
104
101
|
this.selectedRows = e;
|
|
105
102
|
},
|
|
@@ -109,29 +106,32 @@ const u = {
|
|
|
109
106
|
toggleRowSelection(e) {
|
|
110
107
|
this.$refs.pageableTable.$refs.table.toggleRowSelection(e);
|
|
111
108
|
},
|
|
109
|
+
close() {
|
|
110
|
+
this.$refs.dialog.hide();
|
|
111
|
+
},
|
|
112
112
|
confirm() {
|
|
113
113
|
var e;
|
|
114
114
|
this.multiple ? (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("请选择") : this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : this.$message.warning("请选择");
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}, i = {};
|
|
118
|
-
var
|
|
119
|
-
u,
|
|
118
|
+
var c = /* @__PURE__ */ o(
|
|
120
119
|
a,
|
|
121
|
-
|
|
120
|
+
r,
|
|
121
|
+
s,
|
|
122
122
|
!1,
|
|
123
|
-
|
|
123
|
+
u,
|
|
124
124
|
null,
|
|
125
125
|
null,
|
|
126
126
|
null
|
|
127
127
|
);
|
|
128
|
-
function
|
|
128
|
+
function u(e) {
|
|
129
129
|
for (let t in i)
|
|
130
130
|
this[t] = i[t];
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
return
|
|
132
|
+
const f = /* @__PURE__ */ function() {
|
|
133
|
+
return c.exports;
|
|
134
134
|
}();
|
|
135
135
|
export {
|
|
136
|
-
|
|
136
|
+
f as default
|
|
137
137
|
};
|
package/dialog-excel/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { d as a } from "../chunks/util.
|
|
3
|
-
import { n as
|
|
1
|
+
import { d as p } from "../chunks/detail.6e46de33.mjs";
|
|
2
|
+
import { d as a } from "../chunks/util.505913d9.mjs";
|
|
3
|
+
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
4
|
var d = function() {
|
|
5
5
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
6
6
|
return t.box ? e("div", [e("ElementDialog", {
|
|
@@ -85,8 +85,8 @@ const m = {
|
|
|
85
85
|
return this.form.params.includes("data") && e.forEach((o) => {
|
|
86
86
|
const i = a(o);
|
|
87
87
|
r.forEach((n) => {
|
|
88
|
-
const c = n.parentProp ? (this.crud.cascaderDIC[
|
|
89
|
-
i[n.prop] =
|
|
88
|
+
const c = n.parentProp ? (this.crud.cascaderDIC[n.$index] || {})[n.prop] : this.crud.DIC[n.prop];
|
|
89
|
+
i[n.prop] = p(i, n, t, c);
|
|
90
90
|
}), s.push(i);
|
|
91
91
|
}), this.form.params.includes("sum") && t.showSummary && s.push(this.crud.sumsList), s;
|
|
92
92
|
},
|
|
@@ -110,7 +110,7 @@ const m = {
|
|
|
110
110
|
value: !0
|
|
111
111
|
}, {
|
|
112
112
|
label: "选中的数据(当前页选中的数据)",
|
|
113
|
-
disabled: this.crud.tableOption.selection
|
|
113
|
+
disabled: this.crud.tableOption.selection !== !0,
|
|
114
114
|
value: !1
|
|
115
115
|
}]
|
|
116
116
|
},
|
|
@@ -156,7 +156,7 @@ const m = {
|
|
|
156
156
|
})())
|
|
157
157
|
}
|
|
158
158
|
]
|
|
159
|
-
}, this.form.type = this.crud.selectLen
|
|
159
|
+
}, this.form.type = this.crud.selectLen === 0;
|
|
160
160
|
},
|
|
161
161
|
getColumnOption() {
|
|
162
162
|
const t = a(this.crud.columnOption), r = [], e = (s = []) => {
|
|
@@ -189,7 +189,7 @@ const m = {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
}, l = {};
|
|
192
|
-
var f = /* @__PURE__ */
|
|
192
|
+
var f = /* @__PURE__ */ u(
|
|
193
193
|
m,
|
|
194
194
|
d,
|
|
195
195
|
h,
|
package/dialog-filter/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as u } from "../chunks/util.
|
|
1
|
+
import { d as u } from "../chunks/util.505913d9.mjs";
|
|
2
2
|
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
@@ -203,7 +203,9 @@ const d = {
|
|
|
203
203
|
this.list = [];
|
|
204
204
|
},
|
|
205
205
|
handleValueClear() {
|
|
206
|
-
this.list.forEach((e) =>
|
|
206
|
+
this.list.forEach((e) => {
|
|
207
|
+
e.value = "";
|
|
208
|
+
});
|
|
207
209
|
},
|
|
208
210
|
handleSubmit() {
|
|
209
211
|
const e = [];
|
package/dialog-form/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isEmpty as
|
|
2
|
-
import { d as l } from "../chunks/util.
|
|
1
|
+
import { isEmpty as a } from "@web-utils/core";
|
|
2
|
+
import { d as l } from "../chunks/util.505913d9.mjs";
|
|
3
3
|
import r from "vue";
|
|
4
4
|
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
5
|
var d = function() {
|
|
@@ -94,7 +94,7 @@ const i = {
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
methods: {
|
|
97
|
-
isEmpty:
|
|
97
|
+
isEmpty: a,
|
|
98
98
|
deepClone: l,
|
|
99
99
|
submit() {
|
|
100
100
|
this.$refs.form.submit();
|
|
@@ -125,7 +125,7 @@ i.showForm = (e) => {
|
|
|
125
125
|
const t = r.extend(i), o = new t().$mount();
|
|
126
126
|
return document.body.appendChild(o.$el), o.show(e), o;
|
|
127
127
|
};
|
|
128
|
-
const u = i,
|
|
128
|
+
const u = i, n = {};
|
|
129
129
|
var p = /* @__PURE__ */ c(
|
|
130
130
|
u,
|
|
131
131
|
d,
|
|
@@ -137,8 +137,8 @@ var p = /* @__PURE__ */ c(
|
|
|
137
137
|
null
|
|
138
138
|
);
|
|
139
139
|
function b(e) {
|
|
140
|
-
for (let t in
|
|
141
|
-
this[t] =
|
|
140
|
+
for (let t in n)
|
|
141
|
+
this[t] = n[t];
|
|
142
142
|
}
|
|
143
143
|
const v = /* @__PURE__ */ function() {
|
|
144
144
|
return p.exports;
|
package/dynamic-table/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ var h = function() {
|
|
|
13
13
|
data: e.value
|
|
14
14
|
}
|
|
15
15
|
}, [e._l(e.columns, function(a) {
|
|
16
|
-
return t("
|
|
16
|
+
return t("TableColumn", {
|
|
17
17
|
key: a.prop,
|
|
18
18
|
attrs: {
|
|
19
19
|
prop: a.prop,
|
|
@@ -22,8 +22,8 @@ var h = function() {
|
|
|
22
22
|
},
|
|
23
23
|
scopedSlots: e._u([{
|
|
24
24
|
key: "default",
|
|
25
|
-
fn: function(
|
|
26
|
-
var
|
|
25
|
+
fn: function(n) {
|
|
26
|
+
var l = n.row, r = n.$index;
|
|
27
27
|
return [t("ElFormItem", {
|
|
28
28
|
style: {
|
|
29
29
|
marginBottom: e.inputDisabled ? "0px" : "16px"
|
|
@@ -40,9 +40,9 @@ var h = function() {
|
|
|
40
40
|
placeholder: e.inputDisabled ? "" : `请输入${a.label}!`
|
|
41
41
|
},
|
|
42
42
|
model: {
|
|
43
|
-
value:
|
|
43
|
+
value: l[a.prop],
|
|
44
44
|
callback: function(s) {
|
|
45
|
-
e.$set(
|
|
45
|
+
e.$set(l, a.prop, s);
|
|
46
46
|
},
|
|
47
47
|
expression: "row[column.prop]"
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ var h = function() {
|
|
|
50
50
|
}
|
|
51
51
|
}], null, !0)
|
|
52
52
|
});
|
|
53
|
-
}), e.inputDisabled ? e._e() : t("
|
|
53
|
+
}), e.inputDisabled ? e._e() : t("TableColumn", {
|
|
54
54
|
attrs: {
|
|
55
55
|
label: "操作",
|
|
56
56
|
width: "60",
|
|
@@ -59,7 +59,7 @@ var h = function() {
|
|
|
59
59
|
scopedSlots: e._u([{
|
|
60
60
|
key: "default",
|
|
61
61
|
fn: function(a) {
|
|
62
|
-
var
|
|
62
|
+
var n = a.row, l = a.column, r = a.$index;
|
|
63
63
|
return [t("i", {
|
|
64
64
|
staticClass: "el-icon-minus dynamic-table-action-icon",
|
|
65
65
|
staticStyle: {
|
|
@@ -72,7 +72,7 @@ var h = function() {
|
|
|
72
72
|
},
|
|
73
73
|
on: {
|
|
74
74
|
click: function(s) {
|
|
75
|
-
return s.stopPropagation(), e.removeRow(
|
|
75
|
+
return s.stopPropagation(), e.removeRow(n, r, l);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
})];
|
package/editable-tree/index.mjs
CHANGED
|
@@ -30,8 +30,8 @@ import { hasOwn as m, isVerticalScrollbarVisible as M, scrollbarWidth as K, comp
|
|
|
30
30
|
import { addResizeListener as C, removeResizeListener as v } from "@web-utils/integrations/resize";
|
|
31
31
|
import { cloneDeep as g } from "@web-utils/integrations/lodash";
|
|
32
32
|
import { a as z, b as S, c as y } from "../chunks/index.57f871af.mjs";
|
|
33
|
-
import { n as
|
|
34
|
-
var
|
|
33
|
+
import { n as V } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
34
|
+
var A = function() {
|
|
35
35
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
36
36
|
return t("div", {
|
|
37
37
|
staticClass: "editable-tree"
|
|
@@ -378,7 +378,7 @@ var V = function() {
|
|
|
378
378
|
curNode: e.curNode,
|
|
379
379
|
curData: e.curData
|
|
380
380
|
})], 2)]) : e._e()], 1)], 1);
|
|
381
|
-
},
|
|
381
|
+
}, I = [];
|
|
382
382
|
const O = {
|
|
383
383
|
name: "EditableTree",
|
|
384
384
|
props: {
|
|
@@ -822,10 +822,10 @@ const O = {
|
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}, $ = {};
|
|
825
|
-
var F = /* @__PURE__ */
|
|
825
|
+
var F = /* @__PURE__ */ V(
|
|
826
826
|
O,
|
|
827
|
-
V,
|
|
828
827
|
A,
|
|
828
|
+
I,
|
|
829
829
|
!1,
|
|
830
830
|
j,
|
|
831
831
|
null,
|
package/flow/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as l, r as c } from "../chunks/util.
|
|
1
|
+
import { s as l, r as c } from "../chunks/util.505913d9.mjs";
|
|
2
2
|
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
@@ -43,7 +43,7 @@ var h = function() {
|
|
|
43
43
|
})], 2)];
|
|
44
44
|
})], 2)]);
|
|
45
45
|
}, d = [];
|
|
46
|
-
const
|
|
46
|
+
const f = {
|
|
47
47
|
name: "Flow",
|
|
48
48
|
props: {
|
|
49
49
|
value: {
|
|
@@ -138,7 +138,7 @@ const m = {
|
|
|
138
138
|
},
|
|
139
139
|
methods: {
|
|
140
140
|
init() {
|
|
141
|
-
this.jsPlumb = jsPlumb.getInstance(), this.$nextTick(() => {
|
|
141
|
+
this.jsPlumb = window.jsPlumb.getInstance(), this.$nextTick(() => {
|
|
142
142
|
this.jsPlumbInit();
|
|
143
143
|
});
|
|
144
144
|
},
|
|
@@ -204,15 +204,15 @@ const m = {
|
|
|
204
204
|
});
|
|
205
205
|
},
|
|
206
206
|
loadEasyFlow() {
|
|
207
|
-
for (
|
|
207
|
+
for (let t = 0; t < this.option.nodeList.length; t++) {
|
|
208
208
|
const e = this.option.nodeList[t];
|
|
209
209
|
this.jsPlumb.makeSource(e.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(e.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(e.id);
|
|
210
210
|
}
|
|
211
|
-
for (
|
|
212
|
-
const
|
|
211
|
+
for (let t = 0; t < this.option.lineList.length; t++) {
|
|
212
|
+
const e = this.option.lineList[t];
|
|
213
213
|
this.jsPlumb.connect({
|
|
214
|
-
source:
|
|
215
|
-
target:
|
|
214
|
+
source: e.from,
|
|
215
|
+
target: e.to
|
|
216
216
|
}, this.jsplumbConnectOptions);
|
|
217
217
|
}
|
|
218
218
|
this.$nextTick(function() {
|
|
@@ -255,8 +255,8 @@ const m = {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}, r = {};
|
|
258
|
-
var
|
|
259
|
-
|
|
258
|
+
var m = /* @__PURE__ */ u(
|
|
259
|
+
f,
|
|
260
260
|
h,
|
|
261
261
|
d,
|
|
262
262
|
!1,
|
|
@@ -270,7 +270,7 @@ function p(t) {
|
|
|
270
270
|
this[e] = r[e];
|
|
271
271
|
}
|
|
272
272
|
const j = /* @__PURE__ */ function() {
|
|
273
|
-
return
|
|
273
|
+
return m.exports;
|
|
274
274
|
}();
|
|
275
275
|
export {
|
|
276
276
|
j as default
|
package/flow/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-flow{position:relative}.avue-flow .avue-draggable{padding:0}.avue-flow__node{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:200px;height:80px;overflow:hidden;border:1px solid #eee;border-radius:5px;box-shadow
|
|
1
|
+
.avue-flow{position:relative}.avue-flow .avue-draggable{padding:0}.avue-flow__node{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:200px;height:80px;overflow:hidden;border:1px solid #eee;border-radius:5px;box-shadow:#66a6e0 0 0 12px}.avue-flow__node--active{border-color:#f56c6c;border-width:2px}.avue-flow__node-drag{display:inline-block;margin:0 5px}.avue-flow__node-header{flex:1;background-color:#66a6e0}.avue-flow__node-body{display:flex;flex:1.5;align-items:center;justify-content:center;text-align:center;background:#fff}
|
package/flow-node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as n } from "../chunks/util.
|
|
1
|
+
import { s as n } from "../chunks/util.505913d9.mjs";
|
|
2
2
|
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
3
|
var l = function() {
|
|
4
4
|
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
@@ -72,7 +72,7 @@ const i = {
|
|
|
72
72
|
},
|
|
73
73
|
// 鼠标移动后抬起
|
|
74
74
|
changeNodeSite() {
|
|
75
|
-
this.node.left
|
|
75
|
+
this.node.left === this.$refs.node.style.left && this.node.top === this.$refs.node.style.top || this.$emit("changeNodeSite", {
|
|
76
76
|
index: this.index,
|
|
77
77
|
left: Number(this.$refs.node.style.left.replace("px", "")),
|
|
78
78
|
top: Number(this.$refs.node.style.top.replace("px", ""))
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], c = {
|
|
3
|
+
name: "FormBlock",
|
|
4
|
+
inject: {
|
|
5
|
+
elForm: {
|
|
6
|
+
default: {}
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
provide() {
|
|
10
|
+
return {
|
|
11
|
+
elForm: this.formConfig
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
active: Boolean,
|
|
17
|
+
enabled: Boolean,
|
|
18
|
+
disabled: Boolean,
|
|
19
|
+
wrapRow: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !0
|
|
22
|
+
},
|
|
23
|
+
gutter: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 20
|
|
26
|
+
},
|
|
27
|
+
collapse: Boolean
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
const e = {};
|
|
31
|
+
return l.forEach((t) => {
|
|
32
|
+
e[t] = null;
|
|
33
|
+
}), {
|
|
34
|
+
expand: !0,
|
|
35
|
+
formConfig: e
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
formCfg() {
|
|
40
|
+
const e = {
|
|
41
|
+
enabled: this.enabled,
|
|
42
|
+
forbidden: this.disabled
|
|
43
|
+
};
|
|
44
|
+
return l.forEach((t) => {
|
|
45
|
+
e[t] = this.elForm[t];
|
|
46
|
+
}), e;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
collapse: {
|
|
51
|
+
immediate: !0,
|
|
52
|
+
handler(e) {
|
|
53
|
+
this.expand = !e;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
formCfg: {
|
|
57
|
+
immediate: !0,
|
|
58
|
+
handler() {
|
|
59
|
+
this.formConfig.disabled = this.available(), l.forEach((e) => {
|
|
60
|
+
var t;
|
|
61
|
+
e !== "disabled" && (d.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
mounted() {
|
|
67
|
+
this.dispatch("FormView", "FormView.addTab", [this]);
|
|
68
|
+
},
|
|
69
|
+
beforeDestroy() {
|
|
70
|
+
this.dispatch("FormView", "FormView.removeTab", [this]);
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
available() {
|
|
74
|
+
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
75
|
+
},
|
|
76
|
+
dispatch(e, t, a) {
|
|
77
|
+
let o = this.$parent || this.$root, i = o.$options.name;
|
|
78
|
+
for (; o && (!i || i !== e); )
|
|
79
|
+
o = o.$parent, o && (i = o.$options.name);
|
|
80
|
+
o && o.$emit.apply(o, [t].concat(a));
|
|
81
|
+
},
|
|
82
|
+
renderDefault() {
|
|
83
|
+
const e = this.$createElement, {
|
|
84
|
+
wrapRow: t,
|
|
85
|
+
gutter: a,
|
|
86
|
+
formConfig: o,
|
|
87
|
+
$scopedSlots: i
|
|
88
|
+
} = this;
|
|
89
|
+
return t ? e("ElRow", {
|
|
90
|
+
attrs: {
|
|
91
|
+
gutter: a
|
|
92
|
+
}
|
|
93
|
+
}, [i.default({
|
|
94
|
+
disabled: o.disabled
|
|
95
|
+
})]) : i.default({
|
|
96
|
+
disabled: o.disabled
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
toggle() {
|
|
100
|
+
this.expand = !this.expand;
|
|
101
|
+
},
|
|
102
|
+
open() {
|
|
103
|
+
this.expand = !0;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
render() {
|
|
107
|
+
const e = arguments[0], {
|
|
108
|
+
renderDefault: t,
|
|
109
|
+
blockTitle: a,
|
|
110
|
+
active: o,
|
|
111
|
+
expand: i,
|
|
112
|
+
toggle: r
|
|
113
|
+
} = this;
|
|
114
|
+
return e("div", {
|
|
115
|
+
class: ["form-block", {
|
|
116
|
+
"default-active": o
|
|
117
|
+
}]
|
|
118
|
+
}, [e("div", {
|
|
119
|
+
class: "form-block-title",
|
|
120
|
+
on: {
|
|
121
|
+
click: r
|
|
122
|
+
}
|
|
123
|
+
}, [e("span", {
|
|
124
|
+
class: "flex-item"
|
|
125
|
+
}, [a]), " ", e("i", {
|
|
126
|
+
class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
127
|
+
})]), e("ElCollapseTransition", [e("div", {
|
|
128
|
+
directives: [{
|
|
129
|
+
name: "show",
|
|
130
|
+
value: i
|
|
131
|
+
}]
|
|
132
|
+
}, [t()])])]);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
let m, h;
|
|
136
|
+
const s = {};
|
|
137
|
+
var f = /* @__PURE__ */ n(
|
|
138
|
+
c,
|
|
139
|
+
m,
|
|
140
|
+
h,
|
|
141
|
+
!1,
|
|
142
|
+
u,
|
|
143
|
+
null,
|
|
144
|
+
null,
|
|
145
|
+
null
|
|
146
|
+
);
|
|
147
|
+
function u(e) {
|
|
148
|
+
for (let t in s)
|
|
149
|
+
this[t] = s[t];
|
|
150
|
+
}
|
|
151
|
+
const b = /* @__PURE__ */ function() {
|
|
152
|
+
return f.exports;
|
|
153
|
+
}();
|
|
154
|
+
export {
|
|
155
|
+
b as default
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-block{padding-bottom:10px;background-color:#fff}.form-block-title{display:flex;flex-direction:row;align-items:center;height:30px;margin:0 0 10px;padding:0 10px;color:#333;font-weight:700;font-size:14px;line-height:30px;background-color:#f3f5fb;cursor:pointer}
|