yahee-components 0.0.90 → 0.0.92
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 +666 -369
- package/es/common-import/common-import.vue2.js +2 -337
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +36 -36
- package/es/complex-search/complex-search.vue2.js +25 -23
- 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 +215 -115
- 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/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/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/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 +67 -45
- 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/package.json +1 -1
- package/types/src/complex-search/complex-search.vue.d.ts +3 -0
- package/types/src/complex-search/index.d.ts +7 -0
- package/types/src/installs.d.ts +2649 -0
|
@@ -82,8 +82,8 @@ const Ce = R({
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
emits: ["filterChangeGrandson", "update:searchItem"],
|
|
85
|
-
setup(y, { emit:
|
|
86
|
-
const { specialOptions: C, normalOptions: I, searchItem: E } = _(y),
|
|
85
|
+
setup(y, { emit: i }) {
|
|
86
|
+
const { specialOptions: C, normalOptions: I, searchItem: E } = _(y), h = n(y.defaultSearch || "WHOLE_SEARCH"), o = n(""), p = n(!1), d = n(!1), u = n(!1), S = n(null), r = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), T = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], F = {
|
|
87
87
|
searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
|
|
88
88
|
}, c = n({ ...E.value });
|
|
89
89
|
k(
|
|
@@ -95,24 +95,26 @@ const Ce = R({
|
|
|
95
95
|
);
|
|
96
96
|
const g = () => {
|
|
97
97
|
let e = {};
|
|
98
|
-
|
|
98
|
+
p.value ? e = {
|
|
99
99
|
...c.value,
|
|
100
100
|
...o.value ? { putSearch: o.value } : {},
|
|
101
|
-
searchType:
|
|
101
|
+
searchType: h.value
|
|
102
|
+
// 包含 searchType
|
|
102
103
|
} : e = {
|
|
103
|
-
...c.value
|
|
104
|
-
searchType
|
|
105
|
-
}, e.putSearch === "" && delete e.putSearch, console.log("左侧筛选条件变化,触发搜索:", e), p("filterChangeGrandson", e,
|
|
104
|
+
...c.value
|
|
105
|
+
// 注意:这里不包含 searchType
|
|
106
|
+
}, e.putSearch === "" && delete e.putSearch, console.log("左侧筛选条件变化,触发搜索:", e), p.value ? i("filterChangeGrandson", e, h.value) : i("filterChangeGrandson", e, void 0);
|
|
106
107
|
}, m = () => {
|
|
107
108
|
let e = {};
|
|
108
|
-
|
|
109
|
+
p.value ? e = {
|
|
109
110
|
...c.value,
|
|
110
111
|
putSearch: o.value || "",
|
|
111
|
-
searchType:
|
|
112
|
+
searchType: h.value
|
|
112
113
|
} : e = {
|
|
113
114
|
putSearch: o.value || "",
|
|
114
|
-
searchType:
|
|
115
|
-
|
|
115
|
+
searchType: h.value
|
|
116
|
+
// 包含 searchType
|
|
117
|
+
}, e.putSearch === "" && delete e.putSearch, console.log("搜索框变化,触发搜索:", e), i("filterChangeGrandson", e, h.value);
|
|
116
118
|
}, b = () => {
|
|
117
119
|
m();
|
|
118
120
|
}, w = () => {
|
|
@@ -125,14 +127,14 @@ const Ce = R({
|
|
|
125
127
|
u.value = !1, r.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
|
|
126
128
|
}, H = (e, t) => {
|
|
127
129
|
const a = { ...e };
|
|
128
|
-
return v.map(C.value, (
|
|
130
|
+
return v.map(C.value, (s) => s.key).includes(t.filterKey) ? C.value.forEach((s) => delete a[s.key]) : delete a[t.filterKey], a;
|
|
129
131
|
}, A = (e) => {
|
|
130
132
|
let t = { ...c.value };
|
|
131
133
|
v.forEach(e, (a) => {
|
|
132
134
|
t = H(t, a);
|
|
133
|
-
const { checkedValues:
|
|
134
|
-
v.isEmpty(
|
|
135
|
-
}), c.value = t,
|
|
135
|
+
const { checkedValues: s, filterKey: f } = a;
|
|
136
|
+
v.isEmpty(s) ? delete t[f] : I.value.includes(f) ? t[f] = s[0] : t[f] = s;
|
|
137
|
+
}), c.value = t, i("update:searchItem", t);
|
|
136
138
|
}, D = (e) => {
|
|
137
139
|
const t = O(e);
|
|
138
140
|
t !== null && (o.value = t, setTimeout(() => {
|
|
@@ -151,12 +153,12 @@ const Ce = R({
|
|
|
151
153
|
return t == null ? void 0 : t.replace(/[\n\r\t]+/g, ",");
|
|
152
154
|
};
|
|
153
155
|
return {
|
|
154
|
-
selectedSearchType:
|
|
156
|
+
selectedSearchType: h,
|
|
155
157
|
putSearch: o,
|
|
156
|
-
isWithinFilterOptions:
|
|
157
|
-
confirmLoading:
|
|
158
|
+
isWithinFilterOptions: p,
|
|
159
|
+
confirmLoading: d,
|
|
158
160
|
showBatchSearch: u,
|
|
159
|
-
batchSearchFormRef:
|
|
161
|
+
batchSearchFormRef: S,
|
|
160
162
|
batchSearchForm: r,
|
|
161
163
|
defalutOptions: T,
|
|
162
164
|
rules: F,
|
|
@@ -167,19 +169,19 @@ const Ce = R({
|
|
|
167
169
|
handleClear: w,
|
|
168
170
|
pasteFormatInput: D,
|
|
169
171
|
confirmSearch: () => {
|
|
170
|
-
|
|
172
|
+
S.value && S.value.validate((e) => {
|
|
171
173
|
var t;
|
|
172
174
|
if (e && ((t = r.value.searchContent) != null && t.trim())) {
|
|
173
|
-
|
|
175
|
+
d.value = !0;
|
|
174
176
|
let a = {};
|
|
175
|
-
|
|
177
|
+
p.value ? a = {
|
|
176
178
|
...c.value,
|
|
177
179
|
putSearch: r.value.searchContent.trim(),
|
|
178
180
|
searchType: r.value.searchType
|
|
179
181
|
} : a = {
|
|
180
182
|
putSearch: r.value.searchContent.trim(),
|
|
181
183
|
searchType: r.value.searchType
|
|
182
|
-
},
|
|
184
|
+
}, i("filterChangeGrandson", a, r.value.searchType), r.value = { searchType: "WHOLE_SEARCH", searchContent: "" }, u.value = !1, d.value = !1;
|
|
183
185
|
}
|
|
184
186
|
});
|
|
185
187
|
},
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,39 +1,57 @@
|
|
|
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
|
-
|
|
1
|
+
import { defineComponent as a, createElementBlock as l, openBlock as m, createVNode as e, unref as o, withCtx as t, createElementVNode as i, renderSlot as f } from "vue";
|
|
2
|
+
import { ElTooltip as u, ElIcon as d, ElMessage as y } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/tooltip.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
+
import { DocumentCopy as h } from "@element-plus/icons-vue";
|
|
9
|
+
import { useClipboard as _ } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
+
const C = { class: "yahee-copy" }, z = /* @__PURE__ */ a({
|
|
11
|
+
name: "YaheeCopy",
|
|
12
|
+
__name: "copy",
|
|
13
|
+
props: {
|
|
14
|
+
content: { default: "" },
|
|
15
|
+
message: { default: "复制成功" }
|
|
16
|
+
},
|
|
17
|
+
setup(c) {
|
|
18
|
+
const s = c, { copyUrl: p } = _(), r = () => {
|
|
19
|
+
p(s.content), y({
|
|
20
|
+
message: s.message,
|
|
21
|
+
type: "success"
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
return (n, g) => (m(), l("div", C, [
|
|
25
|
+
e(o(u), {
|
|
26
|
+
placement: "right",
|
|
27
|
+
effect: "light",
|
|
28
|
+
offset: -5,
|
|
29
|
+
"show-arrow": !1,
|
|
30
|
+
"popper-class": "yahee-copy-custom-popper-class"
|
|
31
|
+
}, {
|
|
32
|
+
content: t(() => [
|
|
33
|
+
e(o(d), {
|
|
34
|
+
color: "#3366cc",
|
|
35
|
+
size: "18",
|
|
36
|
+
class: "icon",
|
|
37
|
+
onClick: r
|
|
38
|
+
}, {
|
|
39
|
+
default: t(() => [
|
|
40
|
+
e(o(h))
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
})
|
|
44
|
+
]),
|
|
45
|
+
default: t(() => [
|
|
46
|
+
i("div", null, [
|
|
47
|
+
f(n.$slots, "default")
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
})
|
|
52
|
+
]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
37
55
|
export {
|
|
38
|
-
|
|
56
|
+
z as default
|
|
39
57
|
};
|
package/es/copy/copy.vue2.js
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElMessage as s, ElIcon as m, ElTooltip as i } from "element-plus";
|
|
3
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
-
import "element-plus/theme-chalk/src/tooltip.scss";
|
|
5
|
-
import "element-plus/theme-chalk/src/popper.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
-
import { DocumentCopy as c } from "@element-plus/icons-vue";
|
|
9
|
-
import { useClipboard as u } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
-
const b = /* @__PURE__ */ n({
|
|
11
|
-
name: "YaheeCopy",
|
|
12
|
-
__name: "copy",
|
|
13
|
-
props: {
|
|
14
|
-
content: { type: String, required: !0, default: "" },
|
|
15
|
-
message: { type: String, required: !1, default: "复制成功" }
|
|
16
|
-
},
|
|
17
|
-
setup(r, { expose: p }) {
|
|
18
|
-
p();
|
|
19
|
-
const e = r, { copyUrl: t } = u(), o = { props: e, copyUrl: t, copyContent: () => {
|
|
20
|
-
t(e.content), s({
|
|
21
|
-
message: e.message,
|
|
22
|
-
type: "success"
|
|
23
|
-
});
|
|
24
|
-
}, get ElTooltip() {
|
|
25
|
-
return i;
|
|
26
|
-
}, get ElIcon() {
|
|
27
|
-
return m;
|
|
28
|
-
}, get DocumentCopy() {
|
|
29
|
-
return c;
|
|
30
|
-
} };
|
|
31
|
-
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
1
|
+
import f from "./copy.vue.js";
|
|
34
2
|
export {
|
|
35
|
-
|
|
3
|
+
f as default
|
|
36
4
|
};
|
package/es/copy/index.js
CHANGED
|
@@ -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
|
-
(o(!0), n(i, null, s(l.getContentForCell(
|
|
88
|
-
u.xGroupValue,
|
|
89
|
-
e.yGroupValue
|
|
90
|
-
), (a) => (o(), 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", "E:/工作/项目代码/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
|
};
|