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.
Files changed (53) hide show
  1. package/es/annex-upload/annex-upload.vue.js +154 -51
  2. package/es/annex-upload/annex-upload.vue2.js +2 -119
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +95 -64
  5. package/es/border-wrap/border-wrap.vue2.js +2 -46
  6. package/es/common-import/common-import.vue.js +666 -369
  7. package/es/common-import/common-import.vue2.js +2 -337
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/complex-search.vue.js +36 -36
  10. package/es/complex-search/complex-search.vue2.js +25 -23
  11. package/es/copy/copy.vue.js +55 -37
  12. package/es/copy/copy.vue2.js +2 -34
  13. package/es/copy/index.js +3 -3
  14. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
  16. package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
  17. package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
  18. package/es/echart-gauge/echart-gauge.vue.js +140 -12
  19. package/es/echart-gauge/echart-gauge.vue2.js +2 -147
  20. package/es/echart-gauge/index.js +3 -3
  21. package/es/image-upload/image-upload.vue.js +170 -109
  22. package/es/image-upload/image-upload.vue2.js +2 -91
  23. package/es/image-upload/index.js +3 -3
  24. package/es/input/index.js +3 -3
  25. package/es/input/input.vue.js +38 -17
  26. package/es/input/input.vue2.js +2 -33
  27. package/es/left-condition/index.js +3 -3
  28. package/es/left-condition/left-condition-sub.vue.js +91 -32
  29. package/es/left-condition/left-condition-sub.vue2.js +2 -76
  30. package/es/left-condition/left-condition.vue.js +218 -70
  31. package/es/left-condition/left-condition.vue2.js +2 -160
  32. package/es/left-condition-enum/index.js +3 -3
  33. package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
  34. package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
  35. package/es/operation-log/operation-log-content.vue.js +92 -71
  36. package/es/operation-log/operation-log-content.vue2.js +2 -39
  37. package/es/operation-log/operation-log-dialog.vue.js +67 -45
  38. package/es/operation-log/operation-log-dialog.vue2.js +2 -38
  39. package/es/operation-log/operation-log-form.vue.js +183 -108
  40. package/es/operation-log/operation-log-form.vue2.js +2 -104
  41. package/es/operation-log/operation-log.vue.js +228 -119
  42. package/es/operation-log/operation-log.vue2.js +2 -135
  43. package/es/packages/components/api/log-server.js +6 -6
  44. package/es/packages/components/api/upload-server.js +1 -1
  45. package/es/packages/components/hooks/useEcharts.js +19 -19
  46. package/es/packages/components/hooks/useImg.js +8 -8
  47. package/es/scale-screen/index.js +4 -4
  48. package/es/scale-screen/scale-screen.vue.js +126 -19
  49. package/es/scale-screen/scale-screen.vue2.js +2 -125
  50. package/package.json +1 -1
  51. package/types/src/complex-search/complex-search.vue.d.ts +3 -0
  52. package/types/src/complex-search/index.d.ts +7 -0
  53. 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: p }) {
86
- const { specialOptions: C, normalOptions: I, searchItem: E } = _(y), s = n(y.defaultSearch || "WHOLE_SEARCH"), o = n(""), i = n(!1), S = n(!1), u = n(!1), d = n(null), r = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), T = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], F = {
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
- i.value ? e = {
98
+ p.value ? e = {
99
99
  ...c.value,
100
100
  ...o.value ? { putSearch: o.value } : {},
101
- searchType: s.value
101
+ searchType: h.value
102
+ // 包含 searchType
102
103
  } : e = {
103
- ...c.value,
104
- searchType: s.value
105
- }, e.putSearch === "" && delete e.putSearch, console.log("左侧筛选条件变化,触发搜索:", e), p("filterChangeGrandson", e, s.value);
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
- i.value ? e = {
109
+ p.value ? e = {
109
110
  ...c.value,
110
111
  putSearch: o.value || "",
111
- searchType: s.value
112
+ searchType: h.value
112
113
  } : e = {
113
114
  putSearch: o.value || "",
114
- searchType: s.value
115
- }, e.putSearch === "" && delete e.putSearch, console.log("搜索框变化,触发搜索:", e), p("filterChangeGrandson", e, s.value);
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, (h) => h.key).includes(t.filterKey) ? C.value.forEach((h) => delete a[h.key]) : delete a[t.filterKey], a;
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: h, filterKey: f } = a;
134
- v.isEmpty(h) ? delete t[f] : I.value.includes(f) ? t[f] = h[0] : t[f] = h;
135
- }), c.value = t, p("update:searchItem", 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: s,
156
+ selectedSearchType: h,
155
157
  putSearch: o,
156
- isWithinFilterOptions: i,
157
- confirmLoading: S,
158
+ isWithinFilterOptions: p,
159
+ confirmLoading: d,
158
160
  showBatchSearch: u,
159
- batchSearchFormRef: d,
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
- d.value && d.value.validate((e) => {
172
+ S.value && S.value.validate((e) => {
171
173
  var t;
172
174
  if (e && ((t = r.value.searchContent) != null && t.trim())) {
173
- S.value = !0;
175
+ d.value = !0;
174
176
  let a = {};
175
- i.value ? a = {
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
- }, p("filterChangeGrandson", a, r.value.searchType), r.value = { searchType: "WHOLE_SEARCH", searchContent: "" }, u.value = !1, S.value = !1;
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
  },
@@ -1,39 +1,57 @@
1
- import n from "./copy.vue2.js";
2
- import { createElementBlock as r, openBlock as l, createVNode as e, withCtx as c, createElementVNode as s, renderSlot as p } from "vue";
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = { class: "yahee-copy" };
5
- function i(t, m, _, o, d, y) {
6
- return l(), r("div", f, [
7
- e(o.ElTooltip, {
8
- placement: "right",
9
- effect: "light",
10
- offset: -5,
11
- "show-arrow": !1,
12
- "popper-class": "yahee-copy-custom-popper-class"
13
- }, {
14
- content: c(() => [
15
- e(o.ElIcon, {
16
- color: "#3366cc",
17
- size: "18",
18
- class: "icon",
19
- onClick: o.copyContent
20
- }, {
21
- default: c(() => [
22
- e(o.DocumentCopy)
23
- ]),
24
- _: 1
25
- })
26
- ]),
27
- default: c(() => [
28
- s("div", null, [
29
- p(t.$slots, "default")
30
- ])
31
- ]),
32
- _: 3
33
- })
34
- ]);
35
- }
36
- const E = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
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
- E as default
56
+ z as default
39
57
  };
@@ -1,36 +1,4 @@
1
- import { defineComponent as n } from "vue";
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
- b as default
3
+ f as default
36
4
  };
package/es/copy/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { withInstall as o } from "../utils/install.js";
2
2
  import t from "./copy.vue.js";
3
- const a = o(t);
3
+ const r = o(t);
4
4
  export {
5
- a as YaheeCopy,
6
- a as default
5
+ r as YaheeCopy,
6
+ r as default
7
7
  };
@@ -1,120 +1,219 @@
1
- import f from "./country-platform-shop-condition.vue2.js";
2
- import { createElementBlock as n, openBlock as o, createVNode as p, withCtx as c, 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" }, S = { id: "all" }, C = ["onClick"], g = { id: "y" }, v = ["onClick"], w = { style: { display: "flex", "align-items": "center", outline: "none" } };
5
- function x(E, T, B, l, F, L) {
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: c(() => [
16
- t("div", w, [
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: c(() => [
24
- b(y(l.M2("全部")), 1)
25
- ]),
26
- _: 1
27
- }, 8, ["style"]),
28
- (o(!0), n(i, null, s(l.selectList, (r) => (o(), m(l.ElButton, {
29
- key: r,
30
- style: d(l.rowTitleStyle[r.xGroupValue]),
31
- class: "custom-button",
32
- onClick: (h) => l.toggleRowSelection(r)
33
- }, {
34
- default: c(() => [
35
- b(y(l.M2(r.xGroupText)), 1)
36
- ]),
37
- _: 2
38
- }, 1032, ["style", "onClick"]))), 128))
39
- ])
40
- ]),
41
- default: c(() => {
42
- var r, h;
43
- return [
44
- t("table", V, [
45
- t("thead", null, [
46
- t("tr", null, [
47
- t("th", S, [
48
- t("span", {
49
- style: d(l.getDefaultSelectedAllStyle(l.isSelectedAll)),
50
- class: "el-button el-button--small custom-button",
51
- onClick: l.selectAll
52
- }, " 全部 ", 4)
53
- ]),
54
- (o(!0), n(i, null, s((r = l.xyFilters) == null ? void 0 : r.xGroup, (e) => (o(), n("th", {
55
- id: "x",
56
- key: e.xGroupValue
57
- }, [
58
- t("span", {
59
- style: d({ ...l.rowTitleStyle[e.xGroupValue], width: "100%" }),
60
- class: "el-button--small el-button custom-button",
61
- onClick: (_) => l.toggleRowSelection(e)
62
- }, y(e.xGroupText), 13, C)
63
- ]))), 128))
64
- ])
65
- ]),
66
- t("tbody", null, [
67
- (o(!0), n(i, null, s((h = l.xyFilters) == null ? void 0 : h.yGroup, (e) => {
68
- var _;
69
- return o(), n("tr", {
70
- key: e.yGroupValue
71
- }, [
72
- t("th", g, [
73
- t("span", {
74
- style: d({ ...l.columnTitleStyle[e.yGroupValue], width: "100%" }),
75
- class: "el-button--small el-button custom-button",
76
- onClick: (u) => l.toggleColumnSelection(e)
77
- }, y(e.yGroupText), 13, v)
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
- (o(!0), n(i, null, s((_ = l.xyFilters) == null ? void 0 : _.xGroup, (u) => (o(), n("td", {
80
- key: u.xGroupValue
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
- p(l.ElCheckboxGroup, {
83
- modelValue: l.checkList[u.xGroupValue + "-" + e.yGroupValue],
84
- "onUpdate:modelValue": (a) => l.checkList[u.xGroupValue + "-" + e.yGroupValue] = a
85
- }, {
86
- default: c(() => [
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
- }), 128))
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
- _: 1
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
- H as default
218
+ ke as default
120
219
  };