yahee-components 0.0.52 → 0.0.53
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/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +240 -312
- package/es/complex-search/complex-search.vue2.js +148 -2
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +39 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/image-upload/image-upload.vue.js +76 -113
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +93 -210
- package/es/left-condition/left-condition.vue2.js +153 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/operation-log/operation-log-content.vue.js +78 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +186 -227
- package/es/operation-log/operation-log.vue2.js +135 -2
- package/es/packages/components/api/log-server.js +5 -5
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/utils/translate.js +19 -19
- package/package.json +1 -1
- package/types/src/installs.d.ts +3 -0
- package/types/src/left-condition/index.d.ts +3 -0
- package/types/src/left-condition/left-condition.vue.d.ts +2 -0
|
@@ -1,219 +1,173 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let t = u[`${l.xGroupValue}-${l.yGroupValue}`];
|
|
40
|
-
t ? (t.push(l.value), t = [...new Set(t)]) : t = [l.value], u[`${l.xGroupValue}-${l.yGroupValue}`] = t;
|
|
41
|
-
}
|
|
42
|
-
x.value[a] = !0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
const T = (o) => le.getBackgroundColor(o), Q = () => {
|
|
46
|
-
R.isEqual(w, u) || Y("filterChange", [
|
|
47
|
-
{
|
|
48
|
-
filterKey: M.value,
|
|
49
|
-
checkedValues: Object.values(Object.values(u)).flat()
|
|
50
|
-
}
|
|
51
|
-
]);
|
|
52
|
-
}, X = () => {
|
|
53
|
-
w = R.cloneDeep(u);
|
|
54
|
-
};
|
|
55
|
-
function j() {
|
|
56
|
-
if (y.value)
|
|
57
|
-
y.value = !1, Object.keys(u).forEach((o) => {
|
|
58
|
-
delete u[o];
|
|
59
|
-
});
|
|
60
|
-
else {
|
|
61
|
-
y.value = !0;
|
|
62
|
-
for (const o of r.value.items) {
|
|
63
|
-
let a = u[`${o.xGroupValue}-${o.yGroupValue}`];
|
|
64
|
-
a ? a.push(o.value) : a = [o.value], u[`${o.xGroupValue}-${o.yGroupValue}`] = a;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
console.log(u);
|
|
68
|
-
}
|
|
69
|
-
function Z(o) {
|
|
70
|
-
const a = o.yGroupValue;
|
|
71
|
-
if (S.value[a]) {
|
|
72
|
-
for (const e in u)
|
|
73
|
-
e.endsWith(a) && delete u[e];
|
|
74
|
-
S.value[a] = !1;
|
|
75
|
-
} else {
|
|
76
|
-
for (const e of r.value.items)
|
|
77
|
-
if (e.yGroupValue === a) {
|
|
78
|
-
let l = u[`${e.xGroupValue}-${e.yGroupValue}`];
|
|
79
|
-
l ? (l.push(e.value), l = [...new Set(l)]) : l = [e.value], u[`${e.xGroupValue}-${e.yGroupValue}`] = l;
|
|
80
|
-
}
|
|
81
|
-
S.value[a] = !0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return ee(
|
|
85
|
-
u,
|
|
86
|
-
(o, a) => {
|
|
87
|
-
var p, B, O, W;
|
|
88
|
-
Object.keys(o).forEach((n) => {
|
|
89
|
-
Array.isArray(o[n]) && o[n].length === 0 && delete o[n];
|
|
90
|
-
}), console.log("新的数组:", o), console.log("旧的数组:", a);
|
|
91
|
-
const e = { backgroundColor: "#3366CC", color: "#fff", borderColor: "#3366CC" }, l = { backgroundColor: "#00bfff", borderColor: "#00bfff" }, t = {}, h = (p = r.value) == null ? void 0 : p.xGroup.length, v = (B = r.value) == null ? void 0 : B.yGroup.length;
|
|
92
|
-
(O = r.value) == null || O.xGroup.forEach((n) => {
|
|
93
|
-
let d = 0;
|
|
94
|
-
for (const $ in u)
|
|
95
|
-
$.startsWith(n.xGroupValue) && d++;
|
|
96
|
-
d === 0 ? m.value[n.xGroupValue] = t : d === v ? m.value[n.xGroupValue] = e : m.value[n.xGroupValue] = l;
|
|
97
|
-
}), (W = r.value) == null || W.yGroup.forEach((n) => {
|
|
98
|
-
let d = 0;
|
|
99
|
-
for (const $ in u)
|
|
100
|
-
$.endsWith(n.yGroupValue) && d++;
|
|
101
|
-
d === 0 ? _.value[n.yGroupValue] = t : d === h ? _.value[n.yGroupValue] = e : _.value[n.yGroupValue] = l;
|
|
102
|
-
}), y.value = Object.keys(o).length === h * v;
|
|
103
|
-
},
|
|
104
|
-
{ deep: !0 }
|
|
105
|
-
), (o, a) => (s(), f("div", ae, [
|
|
106
|
-
E(c(oe), {
|
|
107
|
-
placement: "bottom",
|
|
108
|
-
trigger: "hover",
|
|
109
|
-
width: "'auto'",
|
|
110
|
-
"popper-class": "custom-popover",
|
|
111
|
-
onHide: Q,
|
|
112
|
-
onShow: X
|
|
113
|
-
}, {
|
|
114
|
-
reference: V(() => [
|
|
115
|
-
i("div", pe, [
|
|
116
|
-
E(c(U), {
|
|
117
|
-
size: "small",
|
|
118
|
-
class: "el-button custom-total-button",
|
|
119
|
-
style: b(T(y.value)),
|
|
120
|
-
onClick: j
|
|
121
|
-
}, {
|
|
122
|
-
default: V(() => [
|
|
123
|
-
L(k(c(N)("全部")), 1)
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}, 8, ["style"]),
|
|
127
|
-
(s(!0), f(g, null, C(K.value, (e) => (s(), D(c(U), {
|
|
128
|
-
key: e,
|
|
129
|
-
style: b(m.value[e.xGroupValue]),
|
|
1
|
+
import f from "./country-platform-shop-condition.vue2.js";
|
|
2
|
+
import { createElementBlock as n, openBlock as o, createVNode as p, withCtx as a, createElementVNode as t, normalizeStyle as d, Fragment as i, renderList as s, toDisplayString as y, createBlock as m, createTextVNode as b } from "vue";
|
|
3
|
+
import k from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const G = { class: "yahee-country-platform-shop-condition" }, V = { class: "popover-table" }, C = { id: "all" }, S = ["onClick"], g = { id: "y" }, E = ["onClick"], v = { style: { display: "flex", "align-items": "center", outline: "none" } };
|
|
5
|
+
function w(x, T, F, l, B, D) {
|
|
6
|
+
return o(), n("div", G, [
|
|
7
|
+
p(l.ElPopover, {
|
|
8
|
+
placement: "bottom",
|
|
9
|
+
trigger: "hover",
|
|
10
|
+
width: "'auto'",
|
|
11
|
+
"popper-class": "custom-popover",
|
|
12
|
+
onHide: l.handleHide,
|
|
13
|
+
onShow: l.handleShow
|
|
14
|
+
}, {
|
|
15
|
+
reference: a(() => [
|
|
16
|
+
t("div", v, [
|
|
17
|
+
p(l.ElButton, {
|
|
18
|
+
size: "small",
|
|
19
|
+
class: "el-button custom-total-button",
|
|
20
|
+
style: d(l.getDefaultSelectedAllStyle(l.isSelectedAll)),
|
|
21
|
+
onClick: l.selectAll
|
|
22
|
+
}, {
|
|
23
|
+
default: a(() => [
|
|
24
|
+
b(
|
|
25
|
+
y(l.M2("全部")),
|
|
26
|
+
1
|
|
27
|
+
/* TEXT */
|
|
28
|
+
)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
/* STABLE */
|
|
32
|
+
}, 8, ["style"]),
|
|
33
|
+
(o(!0), n(
|
|
34
|
+
i,
|
|
35
|
+
null,
|
|
36
|
+
s(l.selectList, (r) => (o(), m(l.ElButton, {
|
|
37
|
+
key: r,
|
|
38
|
+
style: d(l.rowTitleStyle[r.xGroupValue]),
|
|
130
39
|
class: "custom-button",
|
|
131
|
-
onClick: (
|
|
40
|
+
onClick: (h) => l.toggleRowSelection(r)
|
|
132
41
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
|
|
42
|
+
default: a(() => [
|
|
43
|
+
b(
|
|
44
|
+
y(l.M2(r.xGroupText)),
|
|
45
|
+
1
|
|
46
|
+
/* TEXT */
|
|
47
|
+
)
|
|
135
48
|
]),
|
|
136
49
|
_: 2
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
50
|
+
/* DYNAMIC */
|
|
51
|
+
}, 1032, ["style", "onClick"]))),
|
|
52
|
+
128
|
|
53
|
+
/* KEYED_FRAGMENT */
|
|
54
|
+
))
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
default: a(() => {
|
|
58
|
+
var r, h;
|
|
59
|
+
return [
|
|
60
|
+
t("table", V, [
|
|
61
|
+
t("thead", null, [
|
|
62
|
+
t("tr", null, [
|
|
63
|
+
t("th", C, [
|
|
64
|
+
t(
|
|
65
|
+
"span",
|
|
66
|
+
{
|
|
67
|
+
style: d(l.getDefaultSelectedAllStyle(l.isSelectedAll)),
|
|
149
68
|
class: "el-button el-button--small custom-button",
|
|
150
|
-
onClick:
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
|
|
69
|
+
onClick: l.selectAll
|
|
70
|
+
},
|
|
71
|
+
" 全部 ",
|
|
72
|
+
4
|
|
73
|
+
/* STYLE */
|
|
74
|
+
)
|
|
75
|
+
]),
|
|
76
|
+
(o(!0), n(
|
|
77
|
+
i,
|
|
78
|
+
null,
|
|
79
|
+
s((r = l.xyFilters) == null ? void 0 : r.xGroup, (e) => (o(), n("th", {
|
|
154
80
|
id: "x",
|
|
155
|
-
key:
|
|
81
|
+
key: e.xGroupValue
|
|
156
82
|
}, [
|
|
157
|
-
|
|
158
|
-
style:
|
|
83
|
+
t("span", {
|
|
84
|
+
style: d({ ...l.rowTitleStyle[e.xGroupValue], width: "100%" }),
|
|
159
85
|
class: "el-button--small el-button custom-button",
|
|
160
|
-
onClick: (
|
|
161
|
-
},
|
|
162
|
-
]))),
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
86
|
+
onClick: (_) => l.toggleRowSelection(e)
|
|
87
|
+
}, y(e.xGroupText), 13, S)
|
|
88
|
+
]))),
|
|
89
|
+
128
|
|
90
|
+
/* KEYED_FRAGMENT */
|
|
91
|
+
))
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
t("tbody", null, [
|
|
95
|
+
(o(!0), n(
|
|
96
|
+
i,
|
|
97
|
+
null,
|
|
98
|
+
s((h = l.xyFilters) == null ? void 0 : h.yGroup, (e) => {
|
|
99
|
+
var _;
|
|
100
|
+
return o(), n("tr", {
|
|
101
|
+
key: e.yGroupValue
|
|
170
102
|
}, [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
style:
|
|
103
|
+
t("th", g, [
|
|
104
|
+
t("span", {
|
|
105
|
+
style: d({ ...l.columnTitleStyle[e.yGroupValue], width: "100%" }),
|
|
174
106
|
class: "el-button--small el-button custom-button",
|
|
175
|
-
onClick: (
|
|
176
|
-
},
|
|
107
|
+
onClick: (c) => l.toggleColumnSelection(e)
|
|
108
|
+
}, y(e.yGroupText), 13, E)
|
|
177
109
|
]),
|
|
178
|
-
(
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
110
|
+
(o(!0), n(
|
|
111
|
+
i,
|
|
112
|
+
null,
|
|
113
|
+
s((_ = l.xyFilters) == null ? void 0 : _.xGroup, (c) => (o(), n("td", {
|
|
114
|
+
key: c.xGroupValue
|
|
115
|
+
}, [
|
|
116
|
+
p(l.ElCheckboxGroup, {
|
|
117
|
+
modelValue: l.checkList[c.xGroupValue + "-" + e.yGroupValue],
|
|
118
|
+
"onUpdate:modelValue": (u) => l.checkList[c.xGroupValue + "-" + e.yGroupValue] = u
|
|
119
|
+
}, {
|
|
120
|
+
default: a(() => [
|
|
121
|
+
(o(!0), n(
|
|
122
|
+
i,
|
|
123
|
+
null,
|
|
124
|
+
s(l.getContentForCell(
|
|
125
|
+
c.xGroupValue,
|
|
126
|
+
e.yGroupValue
|
|
127
|
+
), (u) => (o(), m(l.ElCheckbox, {
|
|
128
|
+
key: u.value,
|
|
129
|
+
border: "",
|
|
130
|
+
class: "el-button el-button-small custom-button",
|
|
131
|
+
label: u.text,
|
|
132
|
+
value: u.value,
|
|
133
|
+
size: "small"
|
|
134
|
+
}, {
|
|
135
|
+
default: a(() => [
|
|
136
|
+
b(
|
|
137
|
+
y(u.text),
|
|
138
|
+
1
|
|
139
|
+
/* TEXT */
|
|
140
|
+
)
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
/* DYNAMIC */
|
|
144
|
+
}, 1032, ["label", "value"]))),
|
|
145
|
+
128
|
|
146
|
+
/* KEYED_FRAGMENT */
|
|
147
|
+
))
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
/* DYNAMIC */
|
|
151
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
152
|
+
]))),
|
|
153
|
+
128
|
|
154
|
+
/* KEYED_FRAGMENT */
|
|
155
|
+
))
|
|
206
156
|
]);
|
|
207
|
-
}),
|
|
208
|
-
|
|
157
|
+
}),
|
|
158
|
+
128
|
|
159
|
+
/* KEYED_FRAGMENT */
|
|
160
|
+
))
|
|
209
161
|
])
|
|
210
|
-
]
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
162
|
+
])
|
|
163
|
+
];
|
|
164
|
+
}),
|
|
165
|
+
_: 1
|
|
166
|
+
/* STABLE */
|
|
167
|
+
})
|
|
168
|
+
]);
|
|
169
|
+
}
|
|
170
|
+
const H = /* @__PURE__ */ k(f, [["render", w], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/country-platform-shop-condition/country-platform-shop-condition.vue"]]);
|
|
217
171
|
export {
|
|
218
|
-
|
|
172
|
+
H as default
|
|
219
173
|
};
|
|
@@ -1,4 +1,127 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as R, toRefs as D, reactive as _, ref as c, watch as M } from "vue";
|
|
2
|
+
import { stylesUtils as T } from "../utils/style.js";
|
|
3
|
+
import { M2 as H } from "../utils/translate.js";
|
|
4
|
+
import L from "../_virtual/lodash.js";
|
|
5
|
+
import { ElPopover as U, ElCheckboxGroup as Y, ElCheckbox as z, ElButton as I } from "element-plus";
|
|
6
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/checkbox.scss";
|
|
9
|
+
import "element-plus/theme-chalk/src/checkbox-group.scss";
|
|
10
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
11
|
+
import "element-plus/theme-chalk/src/popover.scss";
|
|
12
|
+
const ae = /* @__PURE__ */ R({
|
|
13
|
+
name: "YaheeCountryPlatformShopCondition",
|
|
14
|
+
__name: "country-platform-shop-condition",
|
|
15
|
+
props: {
|
|
16
|
+
xyFilters: { type: Object, required: !1 },
|
|
17
|
+
filterKey: { type: String, required: !0 }
|
|
18
|
+
},
|
|
19
|
+
emits: ["filterChange"],
|
|
20
|
+
setup(j, { expose: K, emit: O }) {
|
|
21
|
+
K();
|
|
22
|
+
const G = j, { filterKey: m, xyFilters: a } = D(G), d = O, t = _({});
|
|
23
|
+
let f = _({});
|
|
24
|
+
const p = c({}), v = c({}), i = c(!0), y = c({}), h = c({}), x = c();
|
|
25
|
+
a.value && (x.value = [...a.value.xGroup]);
|
|
26
|
+
function A(e, o) {
|
|
27
|
+
var u;
|
|
28
|
+
return (u = a.value) == null ? void 0 : u.items.filter((l) => l.xGroupValue === e && l.yGroupValue === o);
|
|
29
|
+
}
|
|
30
|
+
function F(e) {
|
|
31
|
+
var u;
|
|
32
|
+
const o = e.xGroupValue;
|
|
33
|
+
if (y.value[o]) {
|
|
34
|
+
for (const l in t)
|
|
35
|
+
l.startsWith(o) && delete t[l];
|
|
36
|
+
y.value[o] = !1;
|
|
37
|
+
} else {
|
|
38
|
+
for (const l of (u = a.value) == null ? void 0 : u.items)
|
|
39
|
+
if (l.xGroupValue === o) {
|
|
40
|
+
let n = t[`${l.xGroupValue}-${l.yGroupValue}`];
|
|
41
|
+
n ? (n.push(l.value), n = [...new Set(n)]) : n = [l.value], t[`${l.xGroupValue}-${l.yGroupValue}`] = n;
|
|
42
|
+
}
|
|
43
|
+
y.value[o] = !0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const P = (e) => T.getBackgroundColor(e), W = () => {
|
|
47
|
+
L.isEqual(f, t) || d("filterChange", [
|
|
48
|
+
{
|
|
49
|
+
filterKey: m.value,
|
|
50
|
+
checkedValues: Object.values(Object.values(t)).flat()
|
|
51
|
+
}
|
|
52
|
+
]);
|
|
53
|
+
}, q = () => {
|
|
54
|
+
f = L.cloneDeep(t);
|
|
55
|
+
};
|
|
56
|
+
function w() {
|
|
57
|
+
if (i.value)
|
|
58
|
+
i.value = !1, Object.keys(t).forEach((e) => {
|
|
59
|
+
delete t[e];
|
|
60
|
+
});
|
|
61
|
+
else {
|
|
62
|
+
i.value = !0;
|
|
63
|
+
for (const e of a.value.items) {
|
|
64
|
+
let o = t[`${e.xGroupValue}-${e.yGroupValue}`];
|
|
65
|
+
o ? o.push(e.value) : o = [e.value], t[`${e.xGroupValue}-${e.yGroupValue}`] = o;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
console.log(t);
|
|
69
|
+
}
|
|
70
|
+
function B(e) {
|
|
71
|
+
const o = e.yGroupValue;
|
|
72
|
+
if (h.value[o]) {
|
|
73
|
+
for (const u in t)
|
|
74
|
+
u.endsWith(o) && delete t[u];
|
|
75
|
+
h.value[o] = !1;
|
|
76
|
+
} else {
|
|
77
|
+
for (const u of a.value.items)
|
|
78
|
+
if (u.yGroupValue === o) {
|
|
79
|
+
let l = t[`${u.xGroupValue}-${u.yGroupValue}`];
|
|
80
|
+
l ? (l.push(u.value), l = [...new Set(l)]) : l = [u.value], t[`${u.xGroupValue}-${u.yGroupValue}`] = l;
|
|
81
|
+
}
|
|
82
|
+
h.value[o] = !0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
M(
|
|
86
|
+
t,
|
|
87
|
+
(e, o) => {
|
|
88
|
+
var S, k, E, $;
|
|
89
|
+
Object.keys(e).forEach((r) => {
|
|
90
|
+
Array.isArray(e[r]) && e[r].length === 0 && delete e[r];
|
|
91
|
+
}), console.log("新的数组:", e), console.log("旧的数组:", o);
|
|
92
|
+
const u = { backgroundColor: "#3366CC", color: "#fff", borderColor: "#3366CC" }, l = { backgroundColor: "#00bfff", borderColor: "#00bfff" }, n = {}, V = (S = a.value) == null ? void 0 : S.xGroup.length, b = (k = a.value) == null ? void 0 : k.yGroup.length;
|
|
93
|
+
(E = a.value) == null || E.xGroup.forEach((r) => {
|
|
94
|
+
let s = 0;
|
|
95
|
+
for (const g in t)
|
|
96
|
+
g.startsWith(r.xGroupValue) && s++;
|
|
97
|
+
s === 0 ? p.value[r.xGroupValue] = n : s === b ? p.value[r.xGroupValue] = u : p.value[r.xGroupValue] = l;
|
|
98
|
+
}), ($ = a.value) == null || $.yGroup.forEach((r) => {
|
|
99
|
+
let s = 0;
|
|
100
|
+
for (const g in t)
|
|
101
|
+
g.endsWith(r.yGroupValue) && s++;
|
|
102
|
+
s === 0 ? v.value[r.yGroupValue] = n : s === V ? v.value[r.yGroupValue] = u : v.value[r.yGroupValue] = l;
|
|
103
|
+
}), i.value = Object.keys(e).length === V * b;
|
|
104
|
+
},
|
|
105
|
+
{ deep: !0 }
|
|
106
|
+
);
|
|
107
|
+
const C = { props: G, filterKey: m, xyFilters: a, emit: d, checkList: t, get backupCheckList() {
|
|
108
|
+
return f;
|
|
109
|
+
}, set backupCheckList(e) {
|
|
110
|
+
f = e;
|
|
111
|
+
}, rowTitleStyle: p, columnTitleStyle: v, isSelectedAll: i, toggleRowSelectionFlags: y, toggleColumnSelectionFlags: h, selectList: x, getContentForCell: A, toggleRowSelection: F, getDefaultSelectedAllStyle: P, handleHide: W, handleShow: q, selectAll: w, toggleColumnSelection: B, get M2() {
|
|
112
|
+
return H;
|
|
113
|
+
}, get ElButton() {
|
|
114
|
+
return I;
|
|
115
|
+
}, get ElCheckbox() {
|
|
116
|
+
return z;
|
|
117
|
+
}, get ElCheckboxGroup() {
|
|
118
|
+
return Y;
|
|
119
|
+
}, get ElPopover() {
|
|
120
|
+
return U;
|
|
121
|
+
} };
|
|
122
|
+
return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
2
125
|
export {
|
|
3
|
-
|
|
126
|
+
ae as default
|
|
4
127
|
};
|