yahee-components 0.0.83 → 0.0.85
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/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +665 -369
- package/es/common-import/common-import.vue2.js +2 -334
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +15 -15
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +213 -113
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/filter-container/filter-container.vue.js +67 -0
- package/es/filter-container/filter-container.vue2.js +4 -0
- package/es/filter-container/index.js +7 -0
- package/es/filter-container/style/index.css +17 -0
- package/es/filter-wrapper/filter-wrapper.vue.js +7 -0
- package/es/filter-wrapper/filter-wrapper.vue2.js +59 -0
- package/es/filter-wrapper/index.js +7 -0
- package/es/filter-wrapper/style/index.css +3 -0
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/installs.js +12 -8
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +68 -46
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/style.css +22 -0
- package/es/utils/translate.js +27 -47
- package/es/yahee-components.css +1 -1
- package/lib/filter-container/style/index.css +17 -0
- package/lib/filter-wrapper/style/index.css +3 -0
- package/lib/style.css +22 -0
- package/package.json +46 -46
- package/readme.md +249 -249
- package/types/src/filter-container/filter-container.d.ts +5 -0
- package/types/src/filter-container/filter-container.vue.d.ts +49 -0
- package/types/src/filter-container/props.d.ts +45 -0
- package/types/src/filter-wrapper/filter-wrapper.d.ts +5 -0
- package/types/src/filter-wrapper/filter-wrapper.vue.d.ts +49 -0
- package/types/src/filter-wrapper/props.d.ts +45 -0
- package/types/src/utils/translate.d.ts +0 -3
- package/es/api/server.js +0 -35
- package/es/api/tool.js +0 -71
- package/types/src/installs.d.ts +0 -2649
|
@@ -1,120 +1,219 @@
|
|
|
1
|
-
import f from "
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
import { defineComponent as A, toRefs as I, reactive as z, ref as G, watch as ee, createElementBlock as f, openBlock as s, createVNode as E, unref as c, withCtx as V, createElementVNode as i, normalizeStyle as b, Fragment as g, renderList as C, toDisplayString as k, createBlock as D, createTextVNode as L } from "vue";
|
|
2
|
+
import { stylesUtils as le } from "../utils/style.js";
|
|
3
|
+
import { M2 as N } from "../utils/translate.js";
|
|
4
|
+
import R from "../_virtual/lodash.js";
|
|
5
|
+
import { ElPopover as oe, ElCheckboxGroup as te, ElCheckbox as ue, ElButton as U } 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 = { class: "yahee-country-platform-shop-condition" }, re = { class: "popover-table" }, ne = { id: "all" }, se = ["onClick"], ce = { id: "y" }, ie = ["onClick"], pe = { style: { display: "flex", "align-items": "center", outline: "none" } }, ke = /* @__PURE__ */ A({
|
|
13
|
+
name: "YaheeCountryPlatformShopCondition",
|
|
14
|
+
__name: "country-platform-shop-condition",
|
|
15
|
+
props: {
|
|
16
|
+
xyFilters: {},
|
|
17
|
+
filterKey: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["filterChange"],
|
|
20
|
+
setup(H, { emit: P }) {
|
|
21
|
+
const q = H, { filterKey: M, xyFilters: r } = I(q), Y = P, u = z({});
|
|
22
|
+
let w = z({});
|
|
23
|
+
const m = G({}), _ = G({}), y = G(!0), x = G({}), S = G({}), K = G();
|
|
24
|
+
r.value && (K.value = [...r.value.xGroup]);
|
|
25
|
+
function J(o, a) {
|
|
26
|
+
var e;
|
|
27
|
+
return (e = r.value) == null ? void 0 : e.items.filter((l) => l.xGroupValue === o && l.yGroupValue === a);
|
|
28
|
+
}
|
|
29
|
+
function F(o) {
|
|
30
|
+
var e;
|
|
31
|
+
const a = o.xGroupValue;
|
|
32
|
+
if (x.value[a]) {
|
|
33
|
+
for (const l in u)
|
|
34
|
+
l.startsWith(a) && delete u[l];
|
|
35
|
+
x.value[a] = !1;
|
|
36
|
+
} else {
|
|
37
|
+
for (const l of (e = r.value) == null ? void 0 : e.items)
|
|
38
|
+
if (l.xGroupValue === a) {
|
|
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]),
|
|
130
|
+
class: "custom-button",
|
|
131
|
+
onClick: (l) => F(e)
|
|
132
|
+
}, {
|
|
133
|
+
default: V(() => [
|
|
134
|
+
L(k(c(N)(e.xGroupText)), 1)
|
|
135
|
+
]),
|
|
136
|
+
_: 2
|
|
137
|
+
}, 1032, ["style", "onClick"]))), 128))
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
default: V(() => {
|
|
141
|
+
var e, l;
|
|
142
|
+
return [
|
|
143
|
+
i("table", re, [
|
|
144
|
+
i("thead", null, [
|
|
145
|
+
i("tr", null, [
|
|
146
|
+
i("th", ne, [
|
|
147
|
+
i("span", {
|
|
148
|
+
style: b(T(y.value)),
|
|
149
|
+
class: "el-button el-button--small custom-button",
|
|
150
|
+
onClick: j
|
|
151
|
+
}, " 全部 ", 4)
|
|
78
152
|
]),
|
|
79
|
-
(
|
|
80
|
-
|
|
153
|
+
(s(!0), f(g, null, C((e = c(r)) == null ? void 0 : e.xGroup, (t) => (s(), f("th", {
|
|
154
|
+
id: "x",
|
|
155
|
+
key: t.xGroupValue
|
|
81
156
|
}, [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
(e(!0), n(i, null, s(l.getContentForCell(
|
|
88
|
-
u.xGroupValue,
|
|
89
|
-
o.yGroupValue
|
|
90
|
-
), (a) => (e(), m(l.ElCheckbox, {
|
|
91
|
-
key: a.value,
|
|
92
|
-
border: "",
|
|
93
|
-
class: "el-button el-button-small custom-button",
|
|
94
|
-
label: a.text,
|
|
95
|
-
value: a.value,
|
|
96
|
-
size: "small"
|
|
97
|
-
}, {
|
|
98
|
-
default: c(() => [
|
|
99
|
-
b(y(a.text), 1)
|
|
100
|
-
]),
|
|
101
|
-
_: 2
|
|
102
|
-
}, 1032, ["label", "value"]))), 128))
|
|
103
|
-
]),
|
|
104
|
-
_: 2
|
|
105
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
157
|
+
i("span", {
|
|
158
|
+
style: b({ ...m.value[t.xGroupValue], width: "100%" }),
|
|
159
|
+
class: "el-button--small el-button custom-button",
|
|
160
|
+
onClick: (h) => F(t)
|
|
161
|
+
}, k(t.xGroupText), 13, se)
|
|
106
162
|
]))), 128))
|
|
107
|
-
])
|
|
108
|
-
|
|
163
|
+
])
|
|
164
|
+
]),
|
|
165
|
+
i("tbody", null, [
|
|
166
|
+
(s(!0), f(g, null, C((l = c(r)) == null ? void 0 : l.yGroup, (t) => {
|
|
167
|
+
var h;
|
|
168
|
+
return s(), f("tr", {
|
|
169
|
+
key: t.yGroupValue
|
|
170
|
+
}, [
|
|
171
|
+
i("th", ce, [
|
|
172
|
+
i("span", {
|
|
173
|
+
style: b({ ..._.value[t.yGroupValue], width: "100%" }),
|
|
174
|
+
class: "el-button--small el-button custom-button",
|
|
175
|
+
onClick: (v) => Z(t)
|
|
176
|
+
}, k(t.yGroupText), 13, ie)
|
|
177
|
+
]),
|
|
178
|
+
(s(!0), f(g, null, C((h = c(r)) == null ? void 0 : h.xGroup, (v) => (s(), f("td", {
|
|
179
|
+
key: v.xGroupValue
|
|
180
|
+
}, [
|
|
181
|
+
E(c(te), {
|
|
182
|
+
modelValue: u[v.xGroupValue + "-" + t.yGroupValue],
|
|
183
|
+
"onUpdate:modelValue": (p) => u[v.xGroupValue + "-" + t.yGroupValue] = p
|
|
184
|
+
}, {
|
|
185
|
+
default: V(() => [
|
|
186
|
+
(s(!0), f(g, null, C(J(
|
|
187
|
+
v.xGroupValue,
|
|
188
|
+
t.yGroupValue
|
|
189
|
+
), (p) => (s(), D(c(ue), {
|
|
190
|
+
key: p.value,
|
|
191
|
+
border: "",
|
|
192
|
+
class: "el-button el-button-small custom-button",
|
|
193
|
+
label: p.text,
|
|
194
|
+
value: p.value,
|
|
195
|
+
size: "small"
|
|
196
|
+
}, {
|
|
197
|
+
default: V(() => [
|
|
198
|
+
L(k(p.text), 1)
|
|
199
|
+
]),
|
|
200
|
+
_: 2
|
|
201
|
+
}, 1032, ["label", "value"]))), 128))
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
205
|
+
]))), 128))
|
|
206
|
+
]);
|
|
207
|
+
}), 128))
|
|
208
|
+
])
|
|
109
209
|
])
|
|
110
|
-
]
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
const H = /* @__PURE__ */ k(f, [["render", x], ["__file", "D:/projects/frontend/common/common_componentsweb/packages/components/src/country-platform-shop-condition/country-platform-shop-condition.vue"]]);
|
|
210
|
+
];
|
|
211
|
+
}),
|
|
212
|
+
_: 1
|
|
213
|
+
})
|
|
214
|
+
]));
|
|
215
|
+
}
|
|
216
|
+
});
|
|
118
217
|
export {
|
|
119
|
-
|
|
218
|
+
ke as default
|
|
120
219
|
};
|
|
@@ -1,127 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
-
});
|
|
1
|
+
import f from "./country-platform-shop-condition.vue.js";
|
|
125
2
|
export {
|
|
126
|
-
|
|
3
|
+
f as default
|
|
127
4
|
};
|