super-page-designer 2.2.22 → 2.2.24
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/es/components/design/utils/page-explore-util.js +10 -10
- package/dist/es/components/design/utils/page-permission-util.js +35 -33
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
- package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
- package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
- package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
- package/dist/es/stores/event-undo-redo-store.js +5 -2
- package/dist/es/style.css +13 -13
- package/package.json +3 -3
|
@@ -1,203 +1,207 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a,
|
|
2
|
-
import { Plus as
|
|
3
|
-
import { getUuidv4 as
|
|
4
|
-
import { ElMessage as
|
|
5
|
-
import { getTopGroupHeaderList as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, onUnmounted as u, resolveComponent as t, createElementBlock as n, openBlock as i, createElementVNode as d, createCommentVNode as o, createTextVNode as r, createVNode as p, createBlock as s, withCtx as v, withDirectives as c, toDisplayString as f, unref as m, vShow as y, Fragment as g, renderList as h } from "vue";
|
|
2
|
+
import { Plus as b, EditPen as x, Document as U, Delete as _ } from "@element-plus/icons-vue";
|
|
3
|
+
import { getUuidv4 as k } from "../../../../utils/common-util.js";
|
|
4
|
+
import { ElMessage as O, ElMessageBox as T } from "element-plus";
|
|
5
|
+
import { getTopGroupHeaderList as C, setGroupHeaderDataDisplayOrder as V, addColumnToGroupHeaders as H, isLeafNode as N } from "../../../../utils/data-table-util.js";
|
|
6
|
+
import w from "../../../../utils/eventBus.js";
|
|
7
|
+
const E = { key: 0 }, L = { style: { display: "flex", margin: "8px 0" } }, G = { key: 0 }, $ = { key: 1 }, R = { key: 0, id: "menu", ref: "headerMenu", class: "context-menu" }, S = { key: 5, id: "menu-4994-1-6", tabindex: "-1" }, D = { class: "dialog-footer" }, j = { class: "dialog-footer" }, M = e({ __name: "composite-header", props: { configure: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
8
|
+
const M2 = e2, B = l(false), P = l({}), q = l(null), I = l(false), J = l(null);
|
|
9
|
+
let F = {};
|
|
10
|
+
const X = l([]), Y = l(false), z = l([]);
|
|
11
11
|
l(null);
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
!e3 ||
|
|
12
|
+
const A = l([]), K = l({}), Q = l(false), W = l(null), Z = l(M2.configure.props.groupHeaders), ee = l(null);
|
|
13
|
+
function le(e3) {
|
|
14
|
+
!e3 || M2.configure.props.groupHeaders && 0 !== M2.configure.props.groupHeaders.length || (F = M2.configure.items, te(), ue());
|
|
15
15
|
}
|
|
16
16
|
a(() => {
|
|
17
|
-
|
|
17
|
+
z.value = C(Z.value);
|
|
18
18
|
});
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const ae = l([]);
|
|
20
|
+
function ue() {
|
|
21
21
|
let e3 = 1;
|
|
22
|
-
|
|
22
|
+
M2.configure.props.groupHeaders = [], F.forEach((l2) => {
|
|
23
23
|
if ("$selection" !== l2.props.base.prop && "$index" !== l2.props.base.prop && "operation" !== l2.props.base.prop) {
|
|
24
|
-
let a2 = { uuid:
|
|
25
|
-
|
|
24
|
+
let a2 = { uuid: k(), columnUuid: l2.uuid, titleText: l2.props.base.name, isLeaf: true, prop: l2.props.base.prop, displayOrder: e3++ };
|
|
25
|
+
M2.configure.props.groupHeaders.push(a2);
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), Z.value = M2.configure.props.groupHeaders, de(), z.value = C(Z.value);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function te() {
|
|
30
|
+
X.value = [], F.forEach((e3) => {
|
|
31
31
|
if ("$selection" !== e3.props.base.prop && "$index" !== e3.props.base.prop && "operation" !== e3.props.base.prop) {
|
|
32
|
-
const l2 =
|
|
33
|
-
l2 && 0 !== l2.length ||
|
|
32
|
+
const l2 = Z.value.filter((l3) => l3.columnUuid && l3.columnUuid === e3.uuid);
|
|
33
|
+
l2 && 0 !== l2.length || X.value.push(e3);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function ne() {
|
|
38
|
+
q.value.validate((e3) => {
|
|
39
39
|
if (e3) {
|
|
40
40
|
let e4;
|
|
41
|
-
|
|
41
|
+
P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), de(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he();
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
let ie;
|
|
46
|
+
function de() {
|
|
47
|
+
ie && clearTimeout(ie), M2.configure.props.isChangeGroupHeader = false, ie = setTimeout(() => {
|
|
48
|
+
M2.configure.props.isChangeGroupHeader = true;
|
|
48
49
|
}, 1);
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
if (!
|
|
52
|
-
const e3 =
|
|
51
|
+
function oe() {
|
|
52
|
+
if (!P.value.columnUuid) return false;
|
|
53
|
+
const e3 = F.filter((e4) => e4.uuid === P.value.columnUuid);
|
|
53
54
|
return !!(e3 && e3.length > 0);
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
56
|
+
function re(e3, l2) {
|
|
57
|
+
I.value = false, K.value = l2;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
59
|
+
function pe(e3, l2) {
|
|
60
|
+
I.value = true;
|
|
60
61
|
const a2 = document.querySelector("#menu"), u2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
61
62
|
a2.style.display = "block", a2.style.left = e3.clientX + 30 + "px", a2.style.top = e3.clientY + u2 - 22 + "px";
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
"updateCombinedHeader" === e3 ? (
|
|
65
|
-
const e4 =
|
|
66
|
-
e4 && (e4.parentUuid = null,
|
|
67
|
-
|
|
68
|
-
}(),
|
|
69
|
-
const l2 =
|
|
64
|
+
function se(e3) {
|
|
65
|
+
"updateCombinedHeader" === e3 ? (P.value = K.value.data, P.value.id = 1, B.value = true, I.value = false) : "createCombinedHeader" === e3 ? (P.value = {}, P.value.parentUuid = K.value.data.uuid, B.value = true, I.value = false) : "addListColumn" === e3 ? (te(), A.value = [], Y.value = true, I.value = false) : "moveToRootNode" === e3 ? (!function() {
|
|
66
|
+
const e4 = ge(K.value.data.uuid);
|
|
67
|
+
e4 && (e4.parentUuid = null, K.value.parentUuid = null);
|
|
68
|
+
z.value = C(Z.value), de();
|
|
69
|
+
}(), I.value = false) : "childMoveToRootNode" === e3 ? (K.value.childNodes.forEach((e4) => {
|
|
70
|
+
const l2 = ge(e4.data.uuid);
|
|
70
71
|
l2 && (l2.parentUuid = null, e4.parentUuid = null);
|
|
71
|
-
}),
|
|
72
|
-
const e4 =
|
|
73
|
-
if (t2 && t2.length > 0) return void
|
|
74
|
-
|
|
75
|
-
const t3 =
|
|
76
|
-
if (null != t3 && t3 >= 0 && (
|
|
77
|
-
const e5 =
|
|
72
|
+
}), z.value = C(Z.value), de(), I.value = false) : "deleteNode" === e3 ? (K.value && K.value.data && function() {
|
|
73
|
+
const e4 = K.value, l2 = K.value.data, a2 = l2.parentUuid, u2 = K.value.parent, t2 = Z.value.filter((e5) => e5.parentUuid === l2.uuid);
|
|
74
|
+
if (t2 && t2.length > 0) return void O({ showClose: true, type: "warning", message: "请先删除子节点" });
|
|
75
|
+
T.confirm("确认删除节点[" + l2.titleText + "]吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
76
|
+
const t3 = Z.value.findIndex((e5) => e5.uuid === l2.uuid);
|
|
77
|
+
if (null != t3 && t3 >= 0 && (Z.value.splice(t3, 1), de()), u2) {
|
|
78
|
+
const e5 = Z.value.filter((e6) => e6.uuid === a2);
|
|
78
79
|
e5 && e5.length > 0 ? u2.data.isLeaf = false : u2.data.isLeaf = true, u2.loaded = false, u2.expand();
|
|
79
80
|
}
|
|
80
|
-
if (
|
|
81
|
-
const a3 =
|
|
81
|
+
if (O({ showClose: true, type: "success", message: "删除成功" }), l2.columnUuid) {
|
|
82
|
+
const a3 = F.filter((e5) => e5.uuid === l2.columnUuid);
|
|
82
83
|
if (a3 && a3.length > 0) {
|
|
83
84
|
const l3 = a3[0];
|
|
84
|
-
|
|
85
|
+
H(l3, null, Z.value), de();
|
|
85
86
|
const u3 = function(e5) {
|
|
86
|
-
return
|
|
87
|
+
return ye(e5);
|
|
87
88
|
}(e4);
|
|
88
89
|
u3.loaded = false, u3.expand();
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
|
-
}(),
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
e3.length > 0 && (
|
|
96
|
-
}),
|
|
97
|
-
|
|
93
|
+
}(), I.value = false) : "mobileNode" === e3 && (ve.value = true);
|
|
94
|
+
}
|
|
95
|
+
w.$on("setFieldGroup", (e3) => {
|
|
96
|
+
e3.length > 0 && (ae.value = e3);
|
|
97
|
+
}), w.$on("synchroGroupHeadersData", () => {
|
|
98
|
+
z.value = C(Z.value);
|
|
99
|
+
}), u(() => {
|
|
100
|
+
ie && clearTimeout(ie), _e && clearTimeout(_e);
|
|
98
101
|
});
|
|
99
|
-
const
|
|
100
|
-
function
|
|
101
|
-
if (!e3 &&
|
|
102
|
-
const e4 =
|
|
103
|
-
e4 && (e4.parentUuid =
|
|
102
|
+
const ve = l(false), ce = l([]);
|
|
103
|
+
function fe(e3) {
|
|
104
|
+
if (!e3 && ce.value.length > 0) {
|
|
105
|
+
const e4 = ge(K.value.data.uuid);
|
|
106
|
+
e4 && (e4.parentUuid = ce.value[ce.value.length - 1], K.value.parentUuid = ce.value[ce.value.length - 1]), z.value = C(Z.value), de(), ve.value = false;
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
108
|
-
const l2 =
|
|
109
|
+
function me() {
|
|
110
|
+
A.value.forEach((e3) => {
|
|
111
|
+
const l2 = X.value.filter((l3) => l3.uuid === e3);
|
|
109
112
|
if (l2 && l2.length > 0) {
|
|
110
113
|
const e4 = l2[0];
|
|
111
|
-
|
|
114
|
+
H(e4, K.value.data.uuid, Z.value), de();
|
|
112
115
|
}
|
|
113
|
-
}),
|
|
116
|
+
}), K.value && (K.value.loaded = false, K.value.expand()), Q.value && he(), Y.value = false;
|
|
114
117
|
}
|
|
115
|
-
function
|
|
116
|
-
return e3.parent ?
|
|
118
|
+
function ye(e3) {
|
|
119
|
+
return e3.parent ? ye(e3.parent) : e3;
|
|
117
120
|
}
|
|
118
|
-
function
|
|
119
|
-
const l2 =
|
|
121
|
+
function ge(e3) {
|
|
122
|
+
const l2 = Z.value.filter((l3) => l3.uuid === e3);
|
|
120
123
|
if (l2 && l2.length > 0) return l2[0];
|
|
121
124
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
const e3 =
|
|
125
|
+
function he() {
|
|
126
|
+
I.value = false, Q.value = true;
|
|
127
|
+
const e3 = J.value;
|
|
125
128
|
if (e3) {
|
|
126
|
-
const l2 =
|
|
129
|
+
const l2 = Z.value.filter((l3) => l3.titleText.indexOf(e3) >= 0);
|
|
127
130
|
let a2 = JSON.parse(JSON.stringify(l2));
|
|
128
131
|
a2.forEach((e4) => {
|
|
129
|
-
e4.isTheLeaf =
|
|
130
|
-
}),
|
|
131
|
-
} else
|
|
132
|
+
e4.isTheLeaf = N(e4, Z.value), be(e4, e4, e4.titleText);
|
|
133
|
+
}), z.value = a2;
|
|
134
|
+
} else Q.value = false, z.value = C(Z.value);
|
|
132
135
|
}
|
|
133
|
-
function
|
|
136
|
+
function be(e3, l2, a2) {
|
|
134
137
|
const u2 = l2.parentUuid;
|
|
135
138
|
if (u2) {
|
|
136
|
-
const l3 =
|
|
139
|
+
const l3 = Z.value.filter((e4) => e4.uuid === u2);
|
|
137
140
|
if (l3 && l3.length > 0) {
|
|
138
141
|
const u3 = l3[0];
|
|
139
|
-
|
|
142
|
+
be(e3, u3, a2 = a2 ? u3.titleText + "/" + a2 : u3.titleText);
|
|
140
143
|
}
|
|
141
144
|
} else e3.fullPath = a2;
|
|
142
145
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
146
|
+
function xe(e3, l2) {
|
|
147
|
+
w.$emit("hadleDragging", true), W.value = e3;
|
|
145
148
|
}
|
|
146
|
-
function
|
|
149
|
+
function Ue(e3, l2, a2) {
|
|
147
150
|
let u2 = true;
|
|
148
151
|
return l2.data.columnUuid && "inner" === a2 && (u2 = false), u2;
|
|
149
152
|
}
|
|
150
|
-
|
|
153
|
+
let _e;
|
|
154
|
+
function ke(e3, l2, a2, u2) {
|
|
151
155
|
let t2 = l2.data;
|
|
152
156
|
let n2;
|
|
153
|
-
const
|
|
157
|
+
const i2 = ge(e3.data.uuid);
|
|
154
158
|
if ("after" === a2) !function(e4, l3) {
|
|
155
159
|
const a3 = e4.parentUuid;
|
|
156
160
|
let u3 = e4.displayOrder;
|
|
157
161
|
null == u3 && (u3 = 0);
|
|
158
|
-
let t3 =
|
|
162
|
+
let t3 = Z.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
|
|
159
163
|
t3 && t3.length > 0 ? (t3 = t3.sort((e5, l4) => e5.displayOrder - l4.displayOrder), l3.displayOrder = t3[0].displayOrder + 1, t3.forEach((e5) => {
|
|
160
164
|
e5.displayOrder = e5.displayOrder + 1;
|
|
161
165
|
})) : l3.displayOrder = u3 + 1;
|
|
162
|
-
|
|
163
|
-
}(t2,
|
|
166
|
+
de();
|
|
167
|
+
}(t2, i2), n2 = t2.parentUuid, i2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (W.value = null, z.value = C(Z.value));
|
|
164
168
|
else if ("before" === a2) !function(e4, l3) {
|
|
165
169
|
const a3 = e4.parentUuid;
|
|
166
170
|
let u3 = e4.displayOrder;
|
|
167
171
|
null == u3 && (u3 = 0);
|
|
168
172
|
l3.displayOrder = u3, e4.displayOrder = u3 + 1;
|
|
169
|
-
let t3 =
|
|
173
|
+
let t3 = Z.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
|
|
170
174
|
t3 && t3.length > 0 && (t3 = t3.sort((e5, l4) => e5.displayOrder - l4.displayOrder), t3.forEach((e5) => {
|
|
171
175
|
e5.displayOrder = e5.displayOrder + 1;
|
|
172
176
|
}));
|
|
173
|
-
|
|
174
|
-
}(t2,
|
|
177
|
+
de();
|
|
178
|
+
}(t2, i2), n2 = t2.parentUuid, i2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (W.value = null, z.value = C(Z.value));
|
|
175
179
|
else if ("inner" === a2 && !t2.columnUuid) {
|
|
176
180
|
!function(e5, l3) {
|
|
177
181
|
let a3;
|
|
178
182
|
e5 && (a3 = e5.uuid);
|
|
179
|
-
|
|
180
|
-
}(t2,
|
|
181
|
-
const e4 =
|
|
182
|
-
e4.isLeaf =
|
|
183
|
+
V(a3, l3, Z.value), de();
|
|
184
|
+
}(t2, i2), n2 = t2.uuid, i2.parentUuid = n2;
|
|
185
|
+
const e4 = ge(n2);
|
|
186
|
+
e4.isLeaf = N(e4, Z.value), l2.loaded = false, l2.expand();
|
|
183
187
|
}
|
|
184
|
-
if (
|
|
185
|
-
const e4 =
|
|
188
|
+
if (W.value && !t2.columnUuid) {
|
|
189
|
+
const e4 = W.value.parent;
|
|
186
190
|
e4 && (e4.loaded = false, e4.expand());
|
|
187
191
|
}
|
|
188
192
|
if (t2.columnUuid) {
|
|
189
193
|
const e4 = l2.parent;
|
|
190
194
|
e4 && (e4.loaded = false, e4.expand());
|
|
191
195
|
}
|
|
192
|
-
setTimeout(() => {
|
|
193
|
-
|
|
196
|
+
_e && clearTimeout(_e), _e = setTimeout(() => {
|
|
197
|
+
w.$emit("hadleDragging", false);
|
|
194
198
|
}, 50);
|
|
195
199
|
}
|
|
196
200
|
return (l2, a2) => {
|
|
197
|
-
const
|
|
198
|
-
return
|
|
201
|
+
const u2 = t("el-switch"), k2 = t("el-button"), O2 = t("el-input"), T2 = t("el-tree"), C2 = t("el-icon"), V2 = t("el-cascader"), H2 = t("el-form-item"), N2 = t("el-form"), w2 = t("el-dialog"), M3 = t("el-checkbox"), F2 = t("el-col"), W2 = t("el-row"), Z2 = t("el-checkbox-group");
|
|
202
|
+
return i(), n("div", null, [d("div", null, [a2[19] || (a2[19] = r(" 是否启用")), p(u2, { modelValue: e2.configure.props.base.isEnableGroupHeader, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.props.base.isEnableGroupHeader = l3), onChange: le }, null, 8, ["modelValue"]), e2.configure.props.base.isEnableGroupHeader ? (i(), s(k2, { key: 0, style: { "margin-left": "10px" }, type: "primary", onClick: ue }, { default: v(() => a2[17] || (a2[17] = [r("重置")])), _: 1 })) : o("", true), e2.configure.props.base.isEnableGroupHeader ? (i(), s(k2, { key: 1, type: "primary", onClick: a2[1] || (a2[1] = (e3) => (P.value = {}, void (B.value = true))) }, { default: v(() => a2[18] || (a2[18] = [r("添加顶级菜单")])), _: 1 })) : o("", true)]), e2.configure.props.base.isEnableGroupHeader ? (i(), n("div", E, [d("div", L, [p(O2, { modelValue: J.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => J.value = e3), placeholder: "Search...", clearable: "", class: "input-with-select", onInput: he }, null, 8, ["modelValue"])]), p(T2, { ref_key: "groupTreeRef", ref: ee, style: { "max-width": "600px" }, data: z.value, draggable: !Q.value, props: { isLeaf: "isLeaf", children: "children", label: "titleText" }, "node-key": "uuid", onNodeClick: re, onNodeContextmenu: pe, onNodeDrop: ke, onNodeDragStart: xe, "allow-drop": Ue }, { default: v(({ data: e3 }) => [Q.value && e3.fullPath ? (i(), n("span", G, f(e3.fullPath), 1)) : (i(), n("span", $, f(e3.titleText), 1))]), _: 1 }, 8, ["data", "draggable"]), c(d("div", null, [K.value.data ? (i(), n("ul", R, [K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 0, id: "menu-4994-1-0", class: "menu__item", tabindex: "-1", onClick: a2[3] || (a2[3] = () => se("createCombinedHeader")) }, [p(C2, null, { default: v(() => [p(m(b))]), _: 1 }), a2[20] || (a2[20] = r(" 创建节点 "))])), K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 1, id: "menu-4994-1-1", class: "menu__item", tabindex: "-1", onClick: a2[4] || (a2[4] = () => se("updateCombinedHeader")) }, [p(C2, null, { default: v(() => [p(m(x))]), _: 1 }), a2[21] || (a2[21] = r(" 修改节点 "))])), K.value.data.parentUuid && !ve.value ? (i(), n("li", { key: 2, id: "menu-4994-1-3", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[5] || (a2[5] = () => se("moveToRootNode")) }, [p(C2, null, { default: v(() => [p(m(U))]), _: 1 }), a2[22] || (a2[22] = r(" 移至根节点 "))])) : o("", true), K.value.isLeaf || K.value.isTheLeaf || K.value.data.columnUuid || ve.value ? o("", true) : (i(), n("li", { key: 3, id: "menu-4994-1-4", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[6] || (a2[6] = () => se("childMoveToRootNode")) }, [p(C2, null, { default: v(() => [p(m(U))]), _: 1 }), a2[23] || (a2[23] = r(" 子节点移至根节点 "))])), ve.value ? o("", true) : (i(), n("li", { key: 4, id: "menu-4994-1-5", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[7] || (a2[7] = () => se("mobileNode")) }, [p(C2, null, { default: v(() => [p(m(_))]), _: 1 }), a2[24] || (a2[24] = r(" 移动节点 "))])), ve.value ? (i(), n("li", S, [p(V2, { props: { value: "uuid", label: "titleText", children: "children", checkStrictly: true }, modelValue: ce.value, "onUpdate:modelValue": a2[8] || (a2[8] = (e3) => ce.value = e3), options: ae.value, onVisibleChange: fe }, null, 8, ["modelValue", "options"])])) : o("", true), K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 6, id: "menu-4994-1-7", class: "menu__item", tabindex: "-1", onClick: a2[9] || (a2[9] = () => se("deleteNode")) }, [p(C2, null, { default: v(() => [p(m(_))]), _: 1 }), a2[25] || (a2[25] = r(" 删除节点 "))]))], 512)) : o("", true)], 512), [[y, I.value]]), B.value ? (i(), s(w2, { key: 0, modelValue: B.value, "onUpdate:modelValue": a2[13] || (a2[13] = (e3) => B.value = e3), title: "组合表头", width: "500" }, { footer: v(() => [d("div", D, [p(k2, { onClick: a2[12] || (a2[12] = (e3) => B.value = false) }, { default: v(() => a2[26] || (a2[26] = [r("取消")])), _: 1 }), p(k2, { type: "primary", onClick: ne }, { default: v(() => a2[27] || (a2[27] = [r(" 确认 ")])), _: 1 })])]), default: v(() => [p(N2, { ref_key: "formRef", ref: q, model: P.value, "label-width": "auto", style: { "max-width": "600px" } }, { default: v(() => [p(H2, { label: "名称", required: "" }, { default: v(() => [p(O2, { modelValue: P.value.titleText, "onUpdate:modelValue": a2[10] || (a2[10] = (e3) => P.value.titleText = e3), disabled: oe() }, null, 8, ["modelValue", "disabled"])]), _: 1 }), p(H2, { label: "显示顺序" }, { default: v(() => [p(O2, { modelValue: P.value.displayOrder, "onUpdate:modelValue": a2[11] || (a2[11] = (e3) => P.value.displayOrder = e3), modelModifiers: { number: true } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue"])) : o("", true), Y.value ? (i(), s(w2, { key: 1, modelValue: Y.value, "onUpdate:modelValue": a2[16] || (a2[16] = (e3) => Y.value = e3), title: "请选择字段", width: "500" }, { footer: v(() => [d("div", j, [p(k2, { onClick: a2[15] || (a2[15] = (e3) => Y.value = false) }, { default: v(() => a2[28] || (a2[28] = [r("取消")])), _: 1 }), p(k2, { type: "primary", onClick: me }, { default: v(() => a2[29] || (a2[29] = [r(" 确认 ")])), _: 1 })])]), default: v(() => [p(Z2, { modelValue: A.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e3) => A.value = e3) }, { default: v(() => [p(W2, null, { default: v(() => [(i(true), n(g, null, h(X.value, (e3) => (i(), s(F2, { span: 6, key: e3.uuid }, { default: v(() => [p(M3, { label: e3.props.base.name, value: e3.uuid }, null, 8, ["label", "value"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : o("", true)])) : o("", true)]);
|
|
199
203
|
};
|
|
200
204
|
} });
|
|
201
205
|
export {
|
|
202
|
-
|
|
206
|
+
M as default
|
|
203
207
|
};
|
package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import { defineComponent as e, ref as s,
|
|
2
|
-
import { columnCustomTittleClass as
|
|
3
|
-
import { VueDraggable as
|
|
4
|
-
import
|
|
5
|
-
import { deepCopy as
|
|
6
|
-
import
|
|
7
|
-
import { ElMessage as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as e, ref as s, onUnmounted as n, resolveComponent as l, createBlock as o, openBlock as t, createSlots as i, withCtx as u, createElementBlock as r, createCommentVNode as a, Fragment as p, renderList as m, normalizeClass as c, normalizeStyle as g, unref as d, toDisplayString as b, reactive as C } from "vue";
|
|
2
|
+
import { columnCustomTittleClass as f, columnTittleStyle as y } from "../../../../utils/form-design-util.js";
|
|
3
|
+
import { VueDraggable as h } from "vue-draggable-plus";
|
|
4
|
+
import x from "../../../../utils/eventBus.js";
|
|
5
|
+
import { deepCopy as O, getUuidv4 as k } from "../../../../utils/common-util.js";
|
|
6
|
+
import j from "../../object-design.vue.js";
|
|
7
|
+
import { ElMessage as W, ElMessageBox as D } from "element-plus";
|
|
8
|
+
const v = ["onClick", "onMouseout", "onMouseover"], L = { key: 2 }, M = e({ __name: "table-children-column", props: { listColumns: { type: Object, default: () => {
|
|
9
9
|
} }, selectWidget: { type: Object, default: () => {
|
|
10
10
|
} }, indexObj: { type: Object, default: () => {
|
|
11
11
|
} }, designProperty: { type: Object, default: () => {
|
|
12
12
|
} }, configure: { type: Object, default: () => {
|
|
13
13
|
} }, pageDesign: { type: Object, default: () => {
|
|
14
|
-
} } }, emits: ["selectColumn", "onSelectWidget", "setHeaderLabel", "setColumnData", "closeMenuVisible"], setup(e2, { emit:
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
if (!e3.props.base) return
|
|
14
|
+
} } }, emits: ["selectColumn", "onSelectWidget", "setHeaderLabel", "setColumnData", "closeMenuVisible"], setup(e2, { emit: S }) {
|
|
15
|
+
const B = e2, T = S;
|
|
16
|
+
function w(e3, s2) {
|
|
17
|
+
if (!e3.props.base) return W.warning("组合表头顶级菜单不能进行列配置");
|
|
18
18
|
{
|
|
19
|
-
|
|
20
|
-
let n2 = { columnData: e3, tableConfigure:
|
|
21
|
-
|
|
19
|
+
$(e3);
|
|
20
|
+
let n2 = { columnData: e3, tableConfigure: B.configure };
|
|
21
|
+
T("closeMenuVisible"), x.$emit("selectColumn", n2), P(s2.label);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function $(e3) {
|
|
25
|
+
T("setColumnData", e3);
|
|
26
26
|
}
|
|
27
27
|
function P(e3) {
|
|
28
|
-
|
|
28
|
+
T("setHeaderLabel", e3);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function V(e3) {
|
|
31
31
|
let s2 = "";
|
|
32
32
|
return s2 = e3.props && e3.props.base && e3.props.base.name && e3.props.base.name.length > 0 ? e3.props.base.name : e3.titleText, s2;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function _(e3, s2) {
|
|
35
35
|
for (var n2 = document.getElementsByClassName(s2.id), l2 = 0; l2 < n2.length; l2++) n2[l2].style.backgroundColor = "";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function H(e3, s2) {
|
|
38
38
|
for (var n2 = document.getElementsByClassName(s2.id), l2 = 0; l2 < n2.length; l2++) n2[l2].style.backgroundColor = "rgba(88, 147, 239,.1)";
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
|
|
40
|
+
const E = s(false);
|
|
41
|
+
function F(e3, s2, n2) {
|
|
42
|
+
B.pageDesign.currentTableConfig = B.configure, E.value || T("onSelectWidget", e3, s2, n2), n2 && n2.label && P(n2.label);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const s2 =
|
|
44
|
+
function N(e3) {
|
|
45
|
+
const s2 = B.configure.btnList.indexOf(e3);
|
|
46
46
|
if (-1 == s2) return void alert("无可复制对象!");
|
|
47
|
-
const n2 =
|
|
48
|
-
n2.uuid =
|
|
47
|
+
const n2 = C(O(e3));
|
|
48
|
+
n2.uuid = k(), B.configure.btnList.splice(s2, 0, n2);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
e3.items && e3.items.length > 0 ?
|
|
52
|
-
const s2 =
|
|
50
|
+
function z(e3) {
|
|
51
|
+
e3.items && e3.items.length > 0 ? D.confirm("还有子元素,确定要删除吗?", "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
52
|
+
const s2 = B.configure.btnList, n2 = s2.indexOf(e3);
|
|
53
53
|
n2 > -1 && s2.splice(n2, 1);
|
|
54
54
|
}).catch((e4) => {
|
|
55
|
-
}) :
|
|
56
|
-
const s2 =
|
|
55
|
+
}) : B.listColumns && B.listColumns.props && B.listColumns.props.base && "operation" === B.listColumns.props.base.prop && D.confirm(`确定要删除${e3.label}吗?`, "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
56
|
+
const s2 = B.configure.btnList, n2 = s2.indexOf(e3);
|
|
57
57
|
n2 > -1 && s2.splice(n2, 1);
|
|
58
58
|
}).catch((e4) => {
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
}), (
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
return x.$on("hadleDragging", (e3) => {
|
|
62
|
+
E.value = e3;
|
|
63
|
+
}), n(() => {
|
|
64
|
+
x.$off("hadleDragging");
|
|
65
|
+
}), (s2, n2) => {
|
|
66
|
+
const C2 = l("el-checkbox"), x2 = l("el-table-column");
|
|
67
|
+
return t(), o(x2, { fixed: !(!e2.listColumns.props || !e2.listColumns.props.base || "false" === e2.listColumns.props.base.listColumnFixed) && e2.listColumns.props.base.listColumnFixed, "column-key": e2.listColumns.uuid, width: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.columnWidth ? e2.listColumns.props.base.columnWidth : 200, label: V(e2.listColumns), align: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignContent ? e2.listColumns.props.base.alignContent : e2.designProperty.alignContent, "header-align": e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignTitle ? e2.listColumns.props.base.alignTitle : e2.designProperty.alignTitle, resizable: "" }, i({ default: u(() => [e2.listColumns.children && e2.listColumns.children.length > 0 ? (t(true), r(p, { key: 0 }, m(e2.listColumns.children, (s3, n3) => (t(), o(M, { key: n3, listColumns: s3, designProperty: e2.designProperty, configure: e2.configure, pageDesign: e2.pageDesign, indexObj: e2.indexObj, onSetHeaderLabel: P, onOnSelectWidget: F, onSetColumnData: $, selectWidget: e2.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128)) : a("", true)]), _: 2 }, [e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "header", fn: u((s3) => [e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), o(C2, { key: 0, style: g(d(y)(e2.listColumns)), class: c(d(f)(e2.listColumns)), onClick: (n3) => w(e2.listColumns, s3.column), onMouseout: (e3) => _(0, s3.column), onMouseover: (e3) => H(0, s3.column) }, null, 8, ["style", "class", "onClick", "onMouseout", "onMouseover"])) : (t(), r("div", { key: 1, style: g(d(y)(e2.listColumns)), class: c(d(f)(e2.listColumns)), onClick: (n3) => w(e2.listColumns, s3.column), onMouseout: (e3) => _(0, s3.column), onMouseover: (e3) => H(0, s3.column) }, b(V(e2.listColumns)), 47, v))]), key: "0" }, e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "default", fn: u((s3) => [e2.listColumns.props && e2.listColumns.props.base && "operation" === e2.listColumns.props.base.prop ? (t(), o(d(h), { key: 0, modelValue: B.configure.btnList, "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => B.configure.btnList = e3), animation: 300, style: { width: "100%", height: "100%", display: "inline-flex" }, group: "amb-assembly-item", ghostClass: "amb-item-ghost" }, { default: u(() => [(t(true), r(p, null, m(B.configure.btnList, (n3) => (t(), o(j, { key: n3, pageDesign: e2.pageDesign, configure: n3, selectWidget: e2.selectWidget, indexObj: e2.indexObj, errorBlank: true, onOnSelectWidget: (e3, n4) => F(e3, n4, s3.column), onOnCopy: N, onOnDelete: z }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnSelectWidget"]))), 128))]), _: 2 }, 1032, ["modelValue"])) : e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), o(C2, { key: 1 })) : e2.listColumns.props && e2.listColumns.props.base && "$index" === e2.listColumns.props.base.prop ? (t(), r("span", L, "1")) : (t(), o(j, { key: 3, configure: e2.listColumns, pageDesign: e2.pageDesign, errorBlank: true, selectWidget: e2.selectWidget, indexObj: e2.indexObj, onOnSelectWidget: (e3, n3) => F(e3, n3, s3.column), showSelectedClass: false }, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj", "onOnSelectWidget"]))]), key: "1" }]), 1032, ["fixed", "column-key", "width", "label", "align", "header-align"]);
|
|
66
68
|
};
|
|
67
69
|
} });
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
M as default
|
|
70
72
|
};
|
|
@@ -4,17 +4,19 @@ const h = e({ __name: "checkbox-design", props: { configure: { type: Object, req
|
|
|
4
4
|
const h2 = e2;
|
|
5
5
|
h2.configure.runtime || (h2.configure.runtime = {});
|
|
6
6
|
const x = l([]), k = l({}), S = l(""), V = l({}), _ = l({}), w = l({});
|
|
7
|
-
|
|
7
|
+
u(h2.configure.style, () => {
|
|
8
|
+
p(h2.configure, k, S, V), h2.configure.runtime.style = k.value, h2.configure.runtime.class = S.value, h2.configure.runtime.headerStyle = V.value;
|
|
9
|
+
}, { immediate: true });
|
|
10
|
+
let z = setTimeout(() => {
|
|
11
|
+
j();
|
|
12
|
+
}, 10);
|
|
13
|
+
function j() {
|
|
8
14
|
y(h2.configure, _, w), h2.configure.props.preSuffix && h2.configure.props, h2.configure.runtime.props = _.value, h2.configure.runtime.titleExceedStyle = w.value, x.value = _.value.options, null != x.value && 0 != x.value.length || (x.value = [{ label: "选项1", value: "1" }, { label: "选项2", value: "2" }]);
|
|
9
15
|
}
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
}, { immediate: true }), setTimeout(() => {
|
|
13
|
-
z();
|
|
14
|
-
}, 10), a(() => {
|
|
15
|
-
b(h2.configure);
|
|
16
|
+
return a(() => {
|
|
17
|
+
b(h2.configure), z && clearTimeout(z);
|
|
16
18
|
}), u(h2.configure.props, () => {
|
|
17
|
-
|
|
19
|
+
j();
|
|
18
20
|
}), (e3, l2) => {
|
|
19
21
|
const u2 = t("el-checkbox"), a2 = t("el-checkbox-group"), p2 = t("el-form-item");
|
|
20
22
|
return o(), i(p2, { class: n([S.value, "remove-formLabel-formContent-blankStyle"]), "label-width": _.value.labelWidth, style: r(k.value) }, { label: s(() => [_.value.tittleShow ? (o(), v("div", { key: 0, style: r({ ...V.value, ...w.value, "padding-right": "12px" }) }, g(_.value.title), 5)) : m("", true)]), default: s(() => [c(a2, { disabled: "disabled" === _.value.state, size: _.value.size, modelValue: _.value.defaultValue, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => _.value.defaultValue = e4) }, { default: s(() => [(o(true), v(f, null, d(x.value, (e4) => (o(), i(u2, { key: e4.value, value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["disabled", "size", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
2
|
-
import { Plus as
|
|
1
|
+
import { defineComponent as e, onUnmounted as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as r, createElementVNode as t, createVNode as a, unref as u } from "vue";
|
|
2
|
+
import { Plus as s, Delete as c } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 as p } from "../../../../utils/common-util.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import f from "../../common/common-variable-bind.vue.js";
|
|
5
|
+
const d = { style: { padding: "8px 0px 0px 0px" } }, m = e({ __name: "data-linkage", props: { configureProps: {} }, setup(e2) {
|
|
6
|
+
const m2 = e2;
|
|
7
7
|
function g(e3) {
|
|
8
8
|
let o2 = -1;
|
|
9
|
-
const l2 =
|
|
10
|
-
for (let
|
|
11
|
-
o2 =
|
|
9
|
+
const l2 = m2.configureProps.linkages.length;
|
|
10
|
+
for (let i2 = 0; i2 < l2; i2++) if (m2.configureProps.linkages[i2].uuid == e3.uuid) {
|
|
11
|
+
o2 = i2;
|
|
12
12
|
break;
|
|
13
13
|
}
|
|
14
14
|
return o2;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function k(e3) {
|
|
17
17
|
let o2 = -1;
|
|
18
18
|
e3 && (o2 = g(e3));
|
|
19
19
|
const l2 = { uuid: p(), fieldName: "" };
|
|
20
|
-
|
|
20
|
+
m2.configureProps.linkages.splice(o2 + 1, 0, l2);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
let P;
|
|
23
|
+
return m2.configureProps.linkages || (m2.configureProps.linkages = []), 0 == m2.configureProps.linkages.length && k(null), o(() => {
|
|
24
|
+
P && clearTimeout(P);
|
|
25
|
+
}), (e3, o2) => {
|
|
26
|
+
const p2 = l("el-table-column"), b = l("el-icon"), _ = l("el-table"), h = l("el-collapse-item");
|
|
27
|
+
return n(), i(h, { title: "联动", name: "linkage", class: "amb-design-attr-group-header" }, { default: r(() => [t("div", d, [a(_, { data: e3.configureProps.linkages }, { default: r(() => [a(p2, { prop: "fieldName", label: "联动变量" }, { default: r((e4) => [a(f, { modelValue: e4.row.fieldName, paramTypes: "['data','page']", "onUpdate:modelValue": (o3) => {
|
|
28
|
+
return l2 = o3, void ((i2 = e4.row) && (i2.fieldName = l2));
|
|
29
|
+
var l2, i2;
|
|
30
|
+
} }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), a(p2, { label: "操作", width: "60" }, { default: r((e4) => [a(b, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => k(e4.row) }, { default: r(() => [a(u(s))]), _: 2 }, 1032, ["onClick"]), a(b, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
|
|
31
|
+
P && clearTimeout(P);
|
|
32
|
+
let o4 = g(e5);
|
|
33
|
+
o4 > -1 && (m2.configureProps.linkages.splice(o4, 1), 0 == m2.configureProps.linkages.length && (P = setTimeout(function() {
|
|
34
|
+
k(null);
|
|
35
|
+
}, 0)));
|
|
36
|
+
}(e4.row) }, { default: r(() => [a(u(c))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
|
|
33
37
|
};
|
|
34
38
|
} });
|
|
35
39
|
export {
|
|
36
|
-
|
|
40
|
+
m as default
|
|
37
41
|
};
|