@web-utils/component 2.7.12 → 2.7.14
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/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
- package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
- package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
- package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.d3cd0479.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
- package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
- package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.47789aae.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
- package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.30625146.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +4 -3
- package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
- package/dist/chunks/detail.d67573b1.js +28 -0
- package/dist/chunks/dic.70feb9b4.js +135 -0
- package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
- package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
- package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
- package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
- package/dist/chunks/slot.4b391395.js +27 -0
- package/dist/chunks/util.23fe58fb.js +261 -0
- package/dist/components/afd-column/index.js +1 -1
- package/dist/components/affix/index.js +2 -2
- package/dist/components/base.css +1 -1
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/chat/index.js +9 -9
- package/dist/components/column/index.js +25 -25
- package/dist/components/column-default/index.js +3 -2
- package/dist/components/column-dynamic/index.js +1 -1
- package/dist/components/column-menu/index.js +11 -11
- package/dist/components/column-slot/index.js +54 -53
- package/dist/components/config-custom/index.js +3 -3
- package/dist/components/config-event/index.js +5 -5
- package/dist/components/config-rate/index.js +1 -1
- package/dist/components/config-rate/style.css +1 -1
- package/dist/components/config-select/index.js +3 -3
- package/dist/components/config-switch/index.js +5 -5
- package/dist/components/config-switch/style.css +1 -1
- package/dist/components/config-table/index.js +3 -3
- package/dist/components/config-tree/index.js +3 -3
- package/dist/components/config-tree/style.css +1 -1
- package/dist/components/config-upload/index.js +1 -1
- package/dist/components/dialog-excel/index.js +37 -40
- package/dist/components/dialog-filter/index.js +19 -19
- package/dist/components/dialog-form/index.js +1 -1
- package/dist/components/element-dialog/index.js +2 -2
- package/dist/components/element-dialog/style.css +1 -1
- package/dist/components/flow/index.js +17 -18
- package/dist/components/flow-node/index.js +1 -1
- package/dist/components/form-temp/index.js +3 -3
- package/dist/components/fy-array/index.js +2 -2
- package/dist/components/fy-cascader/index.js +13 -13
- package/dist/components/fy-checkbox/index.js +4 -4
- package/dist/components/fy-code/index.js +1 -1
- package/dist/components/fy-curd/index.js +68 -69
- package/dist/components/fy-date/index.js +1 -1
- package/dist/components/fy-dialog-form/index.js +11 -11
- package/dist/components/fy-draggable/index.js +5 -7
- package/dist/components/fy-dynamic/index.js +32 -28
- package/dist/components/fy-empty/index.js +1 -1
- package/dist/components/fy-form/index.js +153 -141
- package/dist/components/fy-form-design/index.js +31 -31
- package/dist/components/fy-input/index.js +60 -46
- package/dist/components/fy-input-color/index.js +34 -29
- package/dist/components/fy-input-icon/index.js +1 -1
- package/dist/components/fy-input-map/index.js +14 -14
- package/dist/components/fy-input-number/index.js +1 -1
- package/dist/components/fy-input-table/index.js +2 -2
- package/dist/components/fy-input-tree/index.js +12 -12
- package/dist/components/fy-radio/index.js +1 -1
- package/dist/components/fy-rate/index.js +1 -1
- package/dist/components/fy-select/index.js +3 -3
- package/dist/components/fy-slider/index.js +2 -2
- package/dist/components/fy-switch/index.js +1 -1
- package/dist/components/fy-tabs/index.js +2 -2
- package/dist/components/fy-time/index.js +2 -2
- package/dist/components/fy-title/index.js +1 -1
- package/dist/components/fy-tree/index.js +3 -3
- package/dist/components/fy-u-editor/index.js +26 -24
- package/dist/components/fy-upload/index.js +198 -312
- package/dist/components/header-menu/index.js +2 -2
- package/dist/components/header-search/index.js +16 -15
- package/dist/components/image-cropper/index.js +299 -0
- package/dist/components/image-cropper/style.css +1 -0
- package/dist/components/image-preview/index.js +346 -0
- package/dist/components/image-preview/style.css +1 -0
- package/dist/components/keyboard/index.js +58 -63
- package/dist/components/license/index.js +7 -7
- package/dist/components/login/index.js +37 -32
- package/dist/components/name-avatar/index.js +1 -1
- package/dist/components/pageable-table/index.js +1 -1
- package/dist/components/pageable-view/index.js +26 -26
- package/dist/components/photo-swipe/index.js +71 -166
- package/dist/components/queue/index.js +6 -6
- package/dist/components/record-video/index.js +18 -18
- package/dist/components/search/index.js +3 -3
- package/dist/components/sign/index.js +64 -59
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/table-page/index.js +5 -5
- package/dist/components/text-ellipsis/index.js +11 -10
- package/dist/components/verify/index.js +25 -25
- package/dist/components/widget-config/index.js +8 -8
- package/dist/components/widget-form/index.js +7 -7
- package/dist/components/widget-form-group/index.js +8 -8
- package/dist/components/widget-form-item/index.js +14 -13
- package/dist/components/widget-form-table/index.js +14 -14
- package/dist/index.css +109 -40
- package/dist/index.es.js +4069 -3731
- package/package.json +6 -56
- package/web-types.json +28 -10
- package/dist/chunks/detail.ac4d421a.js +0 -28
- package/dist/chunks/dic.79d9f595.js +0 -133
- package/dist/chunks/slot.1b8d2b1b.js +0 -27
- package/dist/chunks/util.80e28481.js +0 -250
- package/dist/components/photo-swipe/style.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MonacoEditor } from "../../chunks/monaco.
|
|
1
|
+
import { M as MonacoEditor } from "../../chunks/monaco.cefcb9f5.js";
|
|
2
2
|
import { s as staticRenderFns, r as render } from "../../chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
|
|
3
3
|
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
const __vue2_script = {
|
|
@@ -25,13 +25,13 @@ const __vue2_script = {
|
|
|
25
25
|
"data.prop": {
|
|
26
26
|
handler() {
|
|
27
27
|
const { change: n, click: t, focus: s, blur: o } = this.data;
|
|
28
|
-
this.$set(this, "change", n ? n
|
|
28
|
+
this.$set(this, "change", n ? `${n}` : `({value}) => {\r
|
|
29
29
|
\r
|
|
30
|
-
}`), this.$set(this, "click", t ? t
|
|
30
|
+
}`), this.$set(this, "click", t ? `${t}` : `({value}) => {\r
|
|
31
31
|
\r
|
|
32
|
-
}`), this.$set(this, "focus", s ? s
|
|
32
|
+
}`), this.$set(this, "focus", s ? `${s}` : `({value}) => {\r
|
|
33
33
|
\r
|
|
34
|
-
}`), this.$set(this, "blur", o ? o
|
|
34
|
+
}`), this.$set(this, "blur", o ? `${o}` : `({value}) => {\r
|
|
35
35
|
\r
|
|
36
36
|
}`);
|
|
37
37
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-tag[data-v-
|
|
1
|
+
.el-tag[data-v-64e64f97]{vertical-align:top}.el-tag+.el-tag[data-v-64e64f97]{margin-left:5px}.input-new-tag[data-v-64e64f97]{width:90px;margin-left:5px;vertical-align:bottom}.color-picker[data-v-64e64f97]{left:10px;vertical-align:top}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Draggable from "vuedraggable";
|
|
2
|
-
import { M as MonacoEditor } from "../../chunks/monaco.
|
|
3
|
-
import { s as staticRenderFns, r as render } from "../../chunks/ConfigSelect.vue_vue_type_template_lang.
|
|
2
|
+
import { M as MonacoEditor } from "../../chunks/monaco.cefcb9f5.js";
|
|
3
|
+
import { s as staticRenderFns, r as render } from "../../chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js";
|
|
4
4
|
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
const __vue2_script = {
|
|
6
6
|
name: "ConfigSelect",
|
|
@@ -34,7 +34,7 @@ const __vue2_script = {
|
|
|
34
34
|
"data.prop": {
|
|
35
35
|
handler() {
|
|
36
36
|
const { dicFormatter: e } = this.data;
|
|
37
|
-
this.dicFormatter = e ? e
|
|
37
|
+
this.dicFormatter = e ? `${e}` : `(res) => {\r
|
|
38
38
|
return res.data\r
|
|
39
39
|
}`;
|
|
40
40
|
},
|
|
@@ -11,22 +11,22 @@ const s = {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}, e = {};
|
|
14
|
-
var
|
|
14
|
+
var c = /* @__PURE__ */ a(
|
|
15
15
|
s,
|
|
16
16
|
o,
|
|
17
17
|
n,
|
|
18
18
|
!1,
|
|
19
|
-
|
|
20
|
-
"
|
|
19
|
+
l,
|
|
20
|
+
"2c9c8280",
|
|
21
21
|
null,
|
|
22
22
|
null
|
|
23
23
|
);
|
|
24
|
-
function r
|
|
24
|
+
function l(r) {
|
|
25
25
|
for (let t in e)
|
|
26
26
|
this[t] = e[t];
|
|
27
27
|
}
|
|
28
28
|
const u = /* @__PURE__ */ function() {
|
|
29
|
-
return
|
|
29
|
+
return c.exports;
|
|
30
30
|
}();
|
|
31
31
|
export {
|
|
32
32
|
u as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-
|
|
1
|
+
.dic[data-v-2c9c8280]{display:flex;margin-bottom:5px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MonacoEditor } from "../../chunks/monaco.
|
|
2
|
-
import { s as staticRenderFns, r as render, A as AfdColumn } from "../../chunks/ConfigTable.vue_vue_type_template_lang.
|
|
1
|
+
import { M as MonacoEditor } from "../../chunks/monaco.cefcb9f5.js";
|
|
2
|
+
import { s as staticRenderFns, r as render, A as AfdColumn } from "../../chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js";
|
|
3
3
|
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
const __vue2_script = {
|
|
5
5
|
name: "ConfigTable",
|
|
@@ -23,7 +23,7 @@ const __vue2_script = {
|
|
|
23
23
|
"data.prop": {
|
|
24
24
|
handler() {
|
|
25
25
|
const { onLoad: e, formatter: t } = this.data;
|
|
26
|
-
this.onLoad = e ? e
|
|
26
|
+
this.onLoad = e ? `${e}` : "", this.formatter = t ? `${t}` : "";
|
|
27
27
|
},
|
|
28
28
|
immediate: !0
|
|
29
29
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as MonacoEditor } from "../../chunks/monaco.
|
|
1
|
+
import { M as MonacoEditor } from "../../chunks/monaco.cefcb9f5.js";
|
|
2
2
|
import Draggable from "vuedraggable";
|
|
3
3
|
import { s as staticRenderFns, r as render } from "../../chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js";
|
|
4
4
|
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
@@ -44,7 +44,7 @@ const __vue2_script = {
|
|
|
44
44
|
handler() {
|
|
45
45
|
this.$set(this.data, "cascader", this.data.cascaderItem), this.$delete(this.data, "cascaderItem");
|
|
46
46
|
const { dicFormatter: e } = this.data;
|
|
47
|
-
this.dicFormatter = e ? e
|
|
47
|
+
this.dicFormatter = e ? `${e}` : `(res) => {\r
|
|
48
48
|
return res.data\r
|
|
49
49
|
}`;
|
|
50
50
|
},
|
|
@@ -106,7 +106,7 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
|
106
106
|
staticRenderFns,
|
|
107
107
|
!1,
|
|
108
108
|
__vue2_injectStyles,
|
|
109
|
-
"
|
|
109
|
+
"42ed5e40",
|
|
110
110
|
null,
|
|
111
111
|
null
|
|
112
112
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-tree-node[data-v-
|
|
1
|
+
.custom-tree-node[data-v-42ed5e40]{flex:1;display:flex;align-items:center;justify-content:space-between;font-size:14px;padding-right:8px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as n, r as o } from "../../chunks/ConfigUpload.vue_vue_type_template_lang.
|
|
1
|
+
import { s as n, r as o } from "../../chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js";
|
|
2
2
|
import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
const i = {
|
|
4
4
|
name: "ConfigUpload",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { d as a } from "../../chunks/util.
|
|
3
|
-
import { n as
|
|
1
|
+
import { d as u } from "../../chunks/detail.d67573b1.js";
|
|
2
|
+
import { d as a } from "../../chunks/util.23fe58fb.js";
|
|
3
|
+
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var d = function() {
|
|
5
|
-
var t = this,
|
|
5
|
+
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
6
6
|
return t.box ? e("div", [e("ElementDialog", {
|
|
7
7
|
staticClass: "avue-dialog",
|
|
8
8
|
attrs: {
|
|
@@ -12,8 +12,8 @@ var d = function() {
|
|
|
12
12
|
width: t.crud.isMobile ? "100%" : "30%"
|
|
13
13
|
},
|
|
14
14
|
on: {
|
|
15
|
-
"update:visible": function(
|
|
16
|
-
t.box =
|
|
15
|
+
"update:visible": function(s) {
|
|
16
|
+
t.box = s;
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
scopedSlots: t._u([{
|
|
@@ -34,7 +34,7 @@ var d = function() {
|
|
|
34
34
|
size: t.crud.isMediumSize
|
|
35
35
|
},
|
|
36
36
|
on: {
|
|
37
|
-
click: function(
|
|
37
|
+
click: function(s) {
|
|
38
38
|
t.box = !1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -48,8 +48,8 @@ var d = function() {
|
|
|
48
48
|
},
|
|
49
49
|
model: {
|
|
50
50
|
value: t.form,
|
|
51
|
-
callback: function(
|
|
52
|
-
t.form =
|
|
51
|
+
callback: function(s) {
|
|
52
|
+
t.form = s;
|
|
53
53
|
},
|
|
54
54
|
expression: "form"
|
|
55
55
|
}
|
|
@@ -79,17 +79,16 @@ const m = {
|
|
|
79
79
|
data: this.handleSum()
|
|
80
80
|
}), this.box = !1;
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
// 计算统计
|
|
83
83
|
handleSum() {
|
|
84
|
-
const t = this.crud.tableOption,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}), this.form.params.includes("sum") && t.showSummary && r.push(this.crud.sumsList), r;
|
|
84
|
+
const t = this.crud.tableOption, r = this.crud.propOption, e = this.form.type ? this.crud.list : this.crud.tableSelect, s = [];
|
|
85
|
+
return this.form.params.includes("data") && e.forEach((o) => {
|
|
86
|
+
const i = a(o);
|
|
87
|
+
r.forEach((n) => {
|
|
88
|
+
const c = n.parentProp ? (this.crud.cascaderDIC[row.$index] || {})[n.prop] : this.crud.DIC[n.prop];
|
|
89
|
+
i[n.prop] = u(i, n, t, c);
|
|
90
|
+
}), s.push(i);
|
|
91
|
+
}), this.form.params.includes("sum") && t.showSummary && s.push(this.crud.sumsList), s;
|
|
93
92
|
},
|
|
94
93
|
getOption() {
|
|
95
94
|
this.option = {
|
|
@@ -133,7 +132,7 @@ const m = {
|
|
|
133
132
|
type: "checkbox",
|
|
134
133
|
span: 24,
|
|
135
134
|
value: ["header", "data"].concat((() => {
|
|
136
|
-
|
|
135
|
+
const t = [];
|
|
137
136
|
return this.crud.isHeader && t.push("headers"), this.crud.isShowSummary && t.push("sum"), t;
|
|
138
137
|
})()),
|
|
139
138
|
dicData: [{
|
|
@@ -144,7 +143,7 @@ const m = {
|
|
|
144
143
|
label: "数据源",
|
|
145
144
|
value: "data"
|
|
146
145
|
}].concat((() => {
|
|
147
|
-
|
|
146
|
+
const t = [];
|
|
148
147
|
return t.push({
|
|
149
148
|
label: "复杂表头",
|
|
150
149
|
value: "headers",
|
|
@@ -160,39 +159,37 @@ const m = {
|
|
|
160
159
|
}, this.form.type = this.crud.selectLen == 0;
|
|
161
160
|
},
|
|
162
161
|
getColumnOption() {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
l && !Array.isArray(l) ? delete i.children : i.showColumn === !1 ? r.splice(o, 1) : (s.push(i.prop), i.children && e(l));
|
|
162
|
+
const t = a(this.crud.columnOption), r = [], e = (s = []) => {
|
|
163
|
+
s.forEach((o, i) => {
|
|
164
|
+
const n = o.children;
|
|
165
|
+
n && !Array.isArray(n) ? delete o.children : o.showColumn === !1 ? s.splice(i, 1) : (r.push(o.prop), o.children && e(n));
|
|
168
166
|
});
|
|
169
167
|
};
|
|
170
|
-
e(t), this.columnOption = t, this.form.prop =
|
|
168
|
+
e(t), this.columnOption = t, this.form.prop = r;
|
|
171
169
|
},
|
|
172
170
|
getColumn() {
|
|
173
|
-
|
|
171
|
+
const t = a(this.columnOption), r = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
|
|
174
172
|
if (!this.form.params)
|
|
175
173
|
return [];
|
|
176
174
|
if (this.form.params.includes("headers")) {
|
|
177
|
-
const e = (
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
const e = (s = []) => {
|
|
176
|
+
s.forEach((o, i) => {
|
|
177
|
+
r.includes(o.prop) ? o.children && e(o.children) : s.splice(i, 1);
|
|
180
178
|
});
|
|
181
179
|
};
|
|
182
180
|
return e(t), t;
|
|
183
181
|
} else {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
o.children ? r(o.children) : s.includes(o.prop) && e.push(o);
|
|
182
|
+
const e = [], s = (o = []) => {
|
|
183
|
+
o.forEach((i) => {
|
|
184
|
+
i.children ? s(i.children) : r.includes(i.prop) && e.push(i);
|
|
188
185
|
});
|
|
189
186
|
};
|
|
190
|
-
return
|
|
187
|
+
return s(t), e;
|
|
191
188
|
}
|
|
192
189
|
}
|
|
193
190
|
}
|
|
194
|
-
},
|
|
195
|
-
var f = /* @__PURE__ */
|
|
191
|
+
}, l = {};
|
|
192
|
+
var f = /* @__PURE__ */ p(
|
|
196
193
|
m,
|
|
197
194
|
d,
|
|
198
195
|
h,
|
|
@@ -203,8 +200,8 @@ var f = /* @__PURE__ */ c(
|
|
|
203
200
|
null
|
|
204
201
|
);
|
|
205
202
|
function b(t) {
|
|
206
|
-
for (let
|
|
207
|
-
this[
|
|
203
|
+
for (let r in l)
|
|
204
|
+
this[r] = l[r];
|
|
208
205
|
}
|
|
209
206
|
const x = /* @__PURE__ */ function() {
|
|
210
207
|
return f.exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as u } from "../../chunks/util.23fe58fb.js";
|
|
2
2
|
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
@@ -47,9 +47,9 @@ var r = function() {
|
|
|
47
47
|
on: {
|
|
48
48
|
click: e.handleValueClear
|
|
49
49
|
}
|
|
50
|
-
}, [e._v(" 清空数据 ")])], 1)], 1), e._l(e.list, function(i,
|
|
50
|
+
}, [e._v(" 清空数据 ")])], 1)], 1), e._l(e.list, function(i, a) {
|
|
51
51
|
return t("ElCol", {
|
|
52
|
-
key:
|
|
52
|
+
key: a,
|
|
53
53
|
staticClass: "avue-crud__filter-item",
|
|
54
54
|
attrs: {
|
|
55
55
|
md: 12,
|
|
@@ -64,14 +64,14 @@ var r = function() {
|
|
|
64
64
|
size: e.crud.isMediumSize
|
|
65
65
|
},
|
|
66
66
|
on: {
|
|
67
|
-
change: function(
|
|
68
|
-
return e.handleChange(
|
|
67
|
+
change: function(s) {
|
|
68
|
+
return e.handleChange(a);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
model: {
|
|
72
72
|
value: i.text,
|
|
73
|
-
callback: function(
|
|
74
|
-
e.$set(i, "text",
|
|
73
|
+
callback: function(s) {
|
|
74
|
+
e.$set(i, "text", s);
|
|
75
75
|
},
|
|
76
76
|
expression: "column.text"
|
|
77
77
|
}
|
|
@@ -84,8 +84,8 @@ var r = function() {
|
|
|
84
84
|
},
|
|
85
85
|
model: {
|
|
86
86
|
value: i.symbol,
|
|
87
|
-
callback: function(
|
|
88
|
-
e.$set(i, "symbol",
|
|
87
|
+
callback: function(s) {
|
|
88
|
+
e.$set(i, "symbol", s);
|
|
89
89
|
},
|
|
90
90
|
expression: "column.symbol"
|
|
91
91
|
}
|
|
@@ -96,8 +96,8 @@ var r = function() {
|
|
|
96
96
|
},
|
|
97
97
|
model: {
|
|
98
98
|
value: i.value,
|
|
99
|
-
callback: function(
|
|
100
|
-
e.$set(i, "value",
|
|
99
|
+
callback: function(s) {
|
|
100
|
+
e.$set(i, "value", s);
|
|
101
101
|
},
|
|
102
102
|
expression: "column.value"
|
|
103
103
|
}
|
|
@@ -110,8 +110,8 @@ var r = function() {
|
|
|
110
110
|
icon: "el-icon-minus"
|
|
111
111
|
},
|
|
112
112
|
on: {
|
|
113
|
-
click: function(
|
|
114
|
-
return e.handleDelete(
|
|
113
|
+
click: function(s) {
|
|
114
|
+
return e.handleDelete(a);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
})], 1);
|
|
@@ -189,8 +189,8 @@ const d = {
|
|
|
189
189
|
this.getColumnOption(), this.box = !0;
|
|
190
190
|
},
|
|
191
191
|
getColumnOption() {
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
const e = [];
|
|
193
|
+
u(this.crud.propOption).forEach((t) => {
|
|
194
194
|
t.showColumn !== !1 && e.push(Object.assign(t, {
|
|
195
195
|
value: t.prop
|
|
196
196
|
}));
|
|
@@ -206,7 +206,7 @@ const d = {
|
|
|
206
206
|
this.list.forEach((e) => e.value = "");
|
|
207
207
|
},
|
|
208
208
|
handleSubmit() {
|
|
209
|
-
|
|
209
|
+
const e = [];
|
|
210
210
|
this.list.forEach((l) => {
|
|
211
211
|
e.push([l.text, l.symbol, l.value]);
|
|
212
212
|
}), this.crud.$emit("filter", e), this.box = !1;
|
|
@@ -223,7 +223,7 @@ const d = {
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, n = {};
|
|
227
227
|
var m = /* @__PURE__ */ o(
|
|
228
228
|
d,
|
|
229
229
|
r,
|
|
@@ -235,8 +235,8 @@ var m = /* @__PURE__ */ o(
|
|
|
235
235
|
null
|
|
236
236
|
);
|
|
237
237
|
function v(e) {
|
|
238
|
-
for (let l in
|
|
239
|
-
this[l] =
|
|
238
|
+
for (let l in n)
|
|
239
|
+
this[l] = n[l];
|
|
240
240
|
}
|
|
241
241
|
const _ = /* @__PURE__ */ function() {
|
|
242
242
|
return m.exports;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c } from "../../chunks/config.46422d7f.js";
|
|
2
|
-
import { d as l, o as r, u, j as a } from "../../chunks/util.
|
|
2
|
+
import { d as l, o as r, u, j as a } from "../../chunks/util.23fe58fb.js";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
var p = function() {
|
|
@@ -23,7 +23,7 @@ var r = function() {
|
|
|
23
23
|
value: {
|
|
24
24
|
onMove: e.updatePopper
|
|
25
25
|
},
|
|
26
|
-
expression: "{onMove:updatePopper}",
|
|
26
|
+
expression: "{ onMove: updatePopper }",
|
|
27
27
|
arg: e.fullScreen
|
|
28
28
|
}],
|
|
29
29
|
staticClass: "el-dialog__wrapper",
|
|
@@ -67,7 +67,7 @@ var r = function() {
|
|
|
67
67
|
click: e.toggleFullScreen
|
|
68
68
|
}
|
|
69
69
|
}) : e._e(), e.showClose ? t("ElButton", {
|
|
70
|
-
staticClass: "header-button",
|
|
70
|
+
staticClass: "header-button header-dialog-close",
|
|
71
71
|
attrs: {
|
|
72
72
|
"aria-label": "Close",
|
|
73
73
|
type: "text",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.element-dialog.el-dialog.el-dialog-resizeable{display:flex;flex-direction:column}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;flex:1 1 auto;padding:0}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__header{position:relative;font-size:18px}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__footer{padding-bottom:10px;text-align:right}.element-dialog.el-dialog.el-dialog-resizeable .
|
|
1
|
+
.element-dialog.el-dialog.el-dialog-resizeable{display:flex;flex-direction:column}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body{position:relative;flex:1 1 auto;padding:0}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__header{position:relative;font-size:18px}.element-dialog.el-dialog.el-dialog-resizeable .el-dialog__footer{padding-bottom:10px;text-align:right}.element-dialog.el-dialog.el-dialog-resizeable .dialog-head-group{position:absolute;top:50%;right:14px;transform:translateY(-50%)}.element-dialog.el-dialog.is-fullscreen{position:absolute;top:0!important;left:0!important;width:100%!important;height:100%!important}.element-dialog.el-dialog.el-dialog--center .el-dialog__header{justify-content:center}.element-dialog.el-dialog.el-dialog--flex-column .el-dialog__body{display:flex;flex-direction:column}.element-dialog.el-dialog.el-dialog--flex-row .el-dialog__body{display:flex;flex-direction:row}.element-dialog.el-dialog.el-dialog__body-padding .el-dialog__body{padding:10px}.element-dialog.el-dialog .el-dialog__body{padding:0}.element-dialog.el-dialog .el-dialog__header{display:flex;flex-direction:row;position:relative;align-items:center;padding:4px 10px;font-size:16px;background-color:#409eff}.element-dialog.el-dialog .el-dialog__header .el-dialog__title{color:#fff;font-weight:400;font-size:16px}.element-dialog.el-dialog .header-button-wrapper{position:absolute;top:50%;right:10px;display:flex;transform:translateY(-50%)}.element-dialog.el-dialog .header-button{padding:2px;color:#fff;border:none;outline:0;cursor:pointer}.element-dialog.el-dialog .header-button.header-dialog-close:hover{background:#e34e55}.element-dialog.el-dialog .header-button:hover{background:rgba(0,0,0,.3)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as l, r as
|
|
2
|
-
import { n as
|
|
1
|
+
import { s as l, r as c } from "../../chunks/util.23fe58fb.js";
|
|
2
|
+
import { n as u } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
5
|
return n("div", {
|
|
@@ -98,14 +98,14 @@ const m = {
|
|
|
98
98
|
},
|
|
99
99
|
jsplumbSourceOptions: {
|
|
100
100
|
filter: ".avue-flow__node-drag",
|
|
101
|
-
/* "span"表示标签,".className"表示类,"#id"表示元素id*/
|
|
101
|
+
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
102
102
|
filterExclude: !1,
|
|
103
103
|
anchor: "Continuous",
|
|
104
104
|
allowLoopback: !1
|
|
105
105
|
},
|
|
106
106
|
jsplumbTargetOptions: {
|
|
107
107
|
filter: ".avue-flow__node-drag",
|
|
108
|
-
/*"span"表示标签,".className"表示类,"#id"表示元素id */
|
|
108
|
+
/* "span"表示标签,".className"表示类,"#id"表示元素id */
|
|
109
109
|
filterExclude: !1,
|
|
110
110
|
anchor: "Continuous",
|
|
111
111
|
allowLoopback: !1
|
|
@@ -131,7 +131,7 @@ const m = {
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
created() {
|
|
134
|
-
this.id =
|
|
134
|
+
this.id = c(), this.jsplumbSetting.Container = this.id;
|
|
135
135
|
},
|
|
136
136
|
mounted() {
|
|
137
137
|
this.init();
|
|
@@ -147,8 +147,8 @@ const m = {
|
|
|
147
147
|
},
|
|
148
148
|
// 是否具有该线
|
|
149
149
|
hasLine(t, e) {
|
|
150
|
-
for (
|
|
151
|
-
|
|
150
|
+
for (let n = 0; n < this.data.lineList.length; n++) {
|
|
151
|
+
const i = this.data.lineList[n];
|
|
152
152
|
if (i.from === t && i.to === e)
|
|
153
153
|
return !0;
|
|
154
154
|
}
|
|
@@ -170,12 +170,12 @@ const m = {
|
|
|
170
170
|
},
|
|
171
171
|
// 改变节点的位置
|
|
172
172
|
changeNodeSite({ index: t, left: e, top: n }) {
|
|
173
|
-
for (
|
|
173
|
+
for (let i = 0; i < this.option.nodeList.length; i++)
|
|
174
174
|
i === t && (this.$set(this.option.nodeList[i], "left", e), this.$set(this.option.nodeList[i], "top", n));
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
// 删除节点
|
|
177
177
|
deleteNode(t) {
|
|
178
|
-
return this.$confirm(
|
|
178
|
+
return this.$confirm(`确定要删除节点${t}?`, "提示", {
|
|
179
179
|
confirmButtonText: "确定",
|
|
180
180
|
cancelButtonText: "取消",
|
|
181
181
|
type: "warning",
|
|
@@ -191,10 +191,9 @@ const m = {
|
|
|
191
191
|
},
|
|
192
192
|
// 添加新的节点
|
|
193
193
|
addNode(t) {
|
|
194
|
-
const e = this.option.nodeList.length
|
|
195
|
-
let n = "node" + e;
|
|
194
|
+
const e = this.option.nodeList.length, n = `node${e}`;
|
|
196
195
|
this.option.nodeList.push({
|
|
197
|
-
id:
|
|
196
|
+
id: `node${e}`,
|
|
198
197
|
name: t,
|
|
199
198
|
left: 0,
|
|
200
199
|
top: 0
|
|
@@ -206,11 +205,11 @@ const m = {
|
|
|
206
205
|
},
|
|
207
206
|
loadEasyFlow() {
|
|
208
207
|
for (var t = 0; t < this.option.nodeList.length; t++) {
|
|
209
|
-
|
|
208
|
+
const e = this.option.nodeList[t];
|
|
210
209
|
this.jsPlumb.makeSource(e.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(e.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(e.id);
|
|
211
210
|
}
|
|
212
211
|
for (var t = 0; t < this.option.lineList.length; t++) {
|
|
213
|
-
|
|
212
|
+
const n = this.option.lineList[t];
|
|
214
213
|
this.jsPlumb.connect({
|
|
215
214
|
source: n.from,
|
|
216
215
|
target: n.to
|
|
@@ -234,7 +233,7 @@ const m = {
|
|
|
234
233
|
});
|
|
235
234
|
}), t.jsPlumb.bind("connection", function(e) {
|
|
236
235
|
console.log("connection", e);
|
|
237
|
-
|
|
236
|
+
const n = e.source.id, i = e.target.id;
|
|
238
237
|
t.loadEasyFlowFinish && t.option.lineList.push({
|
|
239
238
|
from: n,
|
|
240
239
|
to: i
|
|
@@ -247,7 +246,7 @@ const m = {
|
|
|
247
246
|
console.log("contextmenu", e);
|
|
248
247
|
}), t.jsPlumb.bind("beforeDrop", function(e) {
|
|
249
248
|
console.log("beforeDrop", e);
|
|
250
|
-
|
|
249
|
+
const n = e.sourceId, i = e.targetId;
|
|
251
250
|
return n === i ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, i) ? (t.$message.error("不能重复连线"), !1) : t.hashOppositeLine(n, i) ? (t.$message.error("不能回环哦"), !1) : !0;
|
|
252
251
|
}), t.jsPlumb.bind("beforeDetach", function(e) {
|
|
253
252
|
console.log("beforeDetach", e);
|
|
@@ -256,7 +255,7 @@ const m = {
|
|
|
256
255
|
}
|
|
257
256
|
}
|
|
258
257
|
}, r = {};
|
|
259
|
-
var f = /* @__PURE__ */
|
|
258
|
+
var f = /* @__PURE__ */ u(
|
|
260
259
|
m,
|
|
261
260
|
h,
|
|
262
261
|
d,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as a, a as u } from "../../chunks/dataformat.
|
|
2
|
-
import { s as p } from "../../chunks/slot.
|
|
3
|
-
import { u as s } from "../../chunks/util.
|
|
1
|
+
import { g as a, a as u } from "../../chunks/dataformat.65b92bfe.js";
|
|
2
|
+
import { s as p } from "../../chunks/slot.4b391395.js";
|
|
3
|
+
import { u as s } from "../../chunks/util.23fe58fb.js";
|
|
4
4
|
import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
var i = function() {
|
|
6
6
|
var e = this, n = e.$createElement, o = e._self._c || n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as a, e as o } from "../../chunks/event.
|
|
2
|
-
import { x as c } from "../../chunks/util.
|
|
1
|
+
import { p as a, e as o } from "../../chunks/event.dd6f522d.js";
|
|
2
|
+
import { x as c } from "../../chunks/util.23fe58fb.js";
|
|
3
3
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var u = function() {
|
|
5
5
|
var t = this, s = t.$createElement, e = t._self._c || s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as d, e as u } from "../../chunks/event.
|
|
1
|
+
import { p as d, e as u } from "../../chunks/event.dd6f522d.js";
|
|
2
2
|
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
|
-
var e = this,
|
|
4
|
+
var e = this, l = e.$createElement, s = e._self._c || l;
|
|
5
5
|
return s("ElCascader", {
|
|
6
6
|
attrs: {
|
|
7
7
|
options: e.dic,
|
|
@@ -21,14 +21,14 @@ var h = function() {
|
|
|
21
21
|
blur: e.handleBlur
|
|
22
22
|
},
|
|
23
23
|
nativeOn: {
|
|
24
|
-
click: function(
|
|
24
|
+
click: function(t) {
|
|
25
25
|
return e.handleClick.apply(null, arguments);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
scopedSlots: e._u([{
|
|
29
29
|
key: "default",
|
|
30
|
-
fn: function(
|
|
31
|
-
var a =
|
|
30
|
+
fn: function(t) {
|
|
31
|
+
var a = t.data, n = t.node;
|
|
32
32
|
return [e.$scopedSlots.default ? e._t("default", null, {
|
|
33
33
|
data: a,
|
|
34
34
|
node: n
|
|
@@ -37,8 +37,8 @@ var h = function() {
|
|
|
37
37
|
}], null, !0),
|
|
38
38
|
model: {
|
|
39
39
|
value: e.text,
|
|
40
|
-
callback: function(
|
|
41
|
-
e.text =
|
|
40
|
+
callback: function(t) {
|
|
41
|
+
e.text = t;
|
|
42
42
|
},
|
|
43
43
|
expression: "text"
|
|
44
44
|
}
|
|
@@ -94,14 +94,14 @@ const y = {
|
|
|
94
94
|
multiple: this.multiple,
|
|
95
95
|
emitPath: this.emitPath,
|
|
96
96
|
lazy: this.lazy,
|
|
97
|
-
lazyLoad: (e,
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
lazyLoad: (e, l) => {
|
|
98
|
+
const s = (t) => {
|
|
99
|
+
const a = (n, i, c) => {
|
|
100
100
|
n.forEach((r) => {
|
|
101
101
|
r[this.valueKey] === i ? r[this.childrenKey] = c : r[this.childrenKey] && a(r[this.childrenKey]);
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
a(this.dic, e[this.valueKey],
|
|
104
|
+
a(this.dic, e[this.valueKey], t), l(t);
|
|
105
105
|
};
|
|
106
106
|
this.lazyLoad && this.lazyLoad(e, s);
|
|
107
107
|
},
|
|
@@ -121,8 +121,8 @@ var v = /* @__PURE__ */ p(
|
|
|
121
121
|
null
|
|
122
122
|
);
|
|
123
123
|
function _(e) {
|
|
124
|
-
for (let
|
|
125
|
-
this[
|
|
124
|
+
for (let l in o)
|
|
125
|
+
this[l] = o[l];
|
|
126
126
|
}
|
|
127
127
|
const g = /* @__PURE__ */ function() {
|
|
128
128
|
return v.exports;
|