yahee-components 0.0.10 → 0.0.12

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 (46) hide show
  1. package/es/api/server.js +26 -10
  2. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  3. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  4. package/es/country-platform-shop-condition/index.js +7 -0
  5. package/es/country-platform-shop-condition/style/index.css +48 -0
  6. package/es/drop-down-condition/drop-down-condition.vue.js +215 -0
  7. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  8. package/es/drop-down-condition/index.js +7 -0
  9. package/es/drop-down-condition/style/index.css +45 -0
  10. package/es/index.js +23 -15
  11. package/es/installs.js +18 -10
  12. package/es/left-condition/index.js +7 -0
  13. package/es/left-condition/left-condition-sub.vue.js +95 -0
  14. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  15. package/es/left-condition/left-condition.vue.js +214 -0
  16. package/es/left-condition/left-condition.vue2.js +4 -0
  17. package/es/left-condition/style/index.css +11 -0
  18. package/es/left-condition-enum/index.js +7 -0
  19. package/es/left-condition-enum/left-condition-enum.vue.js +76 -0
  20. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  21. package/es/left-condition-enum/style/index.css +0 -0
  22. package/es/static/CommonObject.js +4 -0
  23. package/es/style.css +81 -196
  24. package/es/utils/style.js +28 -0
  25. package/es/utils/translate.js +39 -22
  26. package/lib/country-platform-shop-condition/style/index.css +48 -0
  27. package/lib/drop-down-condition/style/index.css +45 -0
  28. package/lib/left-condition/style/index.css +11 -0
  29. package/lib/left-condition-enum/style/index.css +0 -0
  30. package/lib/style.css +81 -196
  31. package/package.json +1 -1
  32. package/types/src/components.d.ts +4 -0
  33. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  34. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  35. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  36. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  37. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +38 -0
  38. package/types/src/drop-down-condition/index.d.ts +40 -0
  39. package/types/src/installs.d.ts +259 -2
  40. package/types/src/left-condition/index.d.ts +69 -0
  41. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  42. package/types/src/left-condition/left-condition.d.ts +5 -0
  43. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  44. package/types/src/left-condition-enum/index.d.ts +153 -0
  45. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  46. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +151 -0
package/es/api/server.js CHANGED
@@ -1,13 +1,29 @@
1
- import t from "../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
- import { handleChangeRequestHeader as a, handleConfigureAuth as n, handleAuthError as u, handleGeneralError as o, handleNetworkError as s } from "./tool.js";
3
- t.interceptors.request.use((e) => {
4
- let r = a(e);
5
- return r = n(r), r;
1
+ import n from "../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js";
2
+ import { handleChangeRequestHeader as o, handleConfigureAuth as d, handleAuthError as u, handleGeneralError as i, handleNetworkError as h } from "./tool.js";
3
+ n.interceptors.request.use((t) => {
4
+ let e = o(t);
5
+ return e = d(e), e;
6
6
  });
7
- t.defaults.withCredentials = !0;
8
- t.interceptors.response.use(
9
- (e) => e.status !== 200 ? Promise.reject(e.data) : (u(e.data.errno), o(e.data.status, e.data.msg), e),
10
- (e) => {
11
- s(e.response.status), Promise.reject(e.response);
7
+ n.defaults.withCredentials = !0;
8
+ n.interceptors.response.use(
9
+ (t) => t.status !== 200 ? Promise.reject(t.data) : (u(t.data.errno), i(t.data.status, t.data.msg), t),
10
+ (t) => {
11
+ h(t.response.status), Promise.reject(t.response);
12
12
  }
13
13
  );
14
+ const g = (t, e = {}, c) => new Promise((s) => {
15
+ n.get(t, { params: e }).then((r) => {
16
+ let a;
17
+ a = r.data, s(a);
18
+ }).catch((r) => {
19
+ const a = {
20
+ msg: r.msg,
21
+ data: r.data
22
+ // 其他错误属性...
23
+ };
24
+ s(a);
25
+ });
26
+ });
27
+ export {
28
+ g as Get
29
+ };
@@ -0,0 +1,218 @@
1
+ import { defineComponent as A, toRefs as I, reactive as z, ref as G, watch as ee, openBlock as s, createElementBlock as f, createVNode as E, unref as c, withCtx as V, createElementVNode as i, normalizeStyle as g, createTextVNode as L, toDisplayString as m, Fragment as C, renderList as k, createBlock as D } from "vue";
2
+ import { stylesUtils as le } from "../utils/style.js";
3
+ import { M2 as N } from "../utils/translate.js";
4
+ import R from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
5
+ import { ElPopover as oe, ElButton as U, ElCheckboxGroup as te, ElCheckbox as ue } 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 b = 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 ? b.value[n.xGroupValue] = t : d === v ? b.value[n.xGroupValue] = e : b.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
+ onHide: Q,
111
+ onShow: X
112
+ }, {
113
+ reference: V(() => [
114
+ i("div", pe, [
115
+ E(c(U), {
116
+ size: "small",
117
+ class: "el-button custom-total-button",
118
+ style: g(T(y.value)),
119
+ onClick: j
120
+ }, {
121
+ default: V(() => [
122
+ L(m(c(N)("全部")), 1)
123
+ ]),
124
+ _: 1
125
+ }, 8, ["style"]),
126
+ (s(!0), f(C, null, k(K.value, (e) => (s(), D(c(U), {
127
+ key: e,
128
+ style: g(b.value[e.xGroupValue]),
129
+ class: "custom-button",
130
+ size: "small",
131
+ onClick: (l) => F(e)
132
+ }, {
133
+ default: V(() => [
134
+ L(m(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: g(T(y.value)),
149
+ class: "el-button custom-button",
150
+ onClick: j
151
+ }, " 全部 ", 4)
152
+ ]),
153
+ (s(!0), f(C, null, k((e = c(r)) == null ? void 0 : e.xGroup, (t) => (s(), f("th", {
154
+ id: "x",
155
+ key: t.xGroupValue
156
+ }, [
157
+ i("span", {
158
+ style: g({ ...b.value[t.xGroupValue], width: "100%" }),
159
+ class: "el-button custom-button",
160
+ onClick: (h) => F(t)
161
+ }, m(t.xGroupText), 13, se)
162
+ ]))), 128))
163
+ ])
164
+ ]),
165
+ i("tbody", null, [
166
+ (s(!0), f(C, null, k((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: g({ ..._.value[t.yGroupValue], width: "100%" }),
174
+ class: "el-button custom-button",
175
+ onClick: (v) => Z(t)
176
+ }, m(t.yGroupText), 13, ie)
177
+ ]),
178
+ (s(!0), f(C, null, k((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(C, null, k(J(
187
+ v.xGroupValue,
188
+ t.yGroupValue
189
+ ), (p) => (s(), D(c(ue), {
190
+ key: p.value,
191
+ border: "",
192
+ class: "el-button custom-button",
193
+ label: p.text,
194
+ value: p.value
195
+ }, {
196
+ default: V(() => [
197
+ L(m(p.text), 1)
198
+ ]),
199
+ _: 2
200
+ }, 1032, ["label", "value"]))), 128))
201
+ ]),
202
+ _: 2
203
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
204
+ ]))), 128))
205
+ ]);
206
+ }), 128))
207
+ ])
208
+ ])
209
+ ];
210
+ }),
211
+ _: 1
212
+ })
213
+ ]));
214
+ }
215
+ });
216
+ export {
217
+ ke as default
218
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./country-platform-shop-condition.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./country-platform-shop-condition.vue.js";
3
+ const i = o(t);
4
+ export {
5
+ i as YaheeCountryPlatformShopCondition,
6
+ i as default
7
+ };
@@ -0,0 +1,48 @@
1
+ .yahee-country-platform-shop-condition .popover-table {
2
+ width: auto;
3
+ border: 1px solid transparent;
4
+ border-collapse: separate;
5
+ }
6
+ .yahee-country-platform-shop-condition .popover-table tr,
7
+ .yahee-country-platform-shop-condition .popover-table td {
8
+ text-align: left;
9
+ cursor: pointer;
10
+ min-height: 22px;
11
+ }
12
+ .yahee-country-platform-shop-condition .checkbox-group {
13
+ margin: 5px;
14
+ width: 100%;
15
+ }
16
+ .yahee-country-platform-shop-condition .popover-table th {
17
+ text-align: left;
18
+ cursor: pointer;
19
+ min-height: 22px;
20
+ border: 1px solid transparent;
21
+ }
22
+ .yahee-country-platform-shop-condition .popover-table td span {
23
+ display: block;
24
+ margin-bottom: 4px;
25
+ border: 1px solid transparent;
26
+ }
27
+ .yahee-country-platform-shop-condition .hover-trigger {
28
+ cursor: pointer;
29
+ color: blue;
30
+ }
31
+ .yahee-country-platform-shop-condition .custom-total-button {
32
+ margin-right: 0;
33
+ padding: 1px 4px;
34
+ height: 22px;
35
+ }
36
+ .yahee-country-platform-shop-condition .custom-button {
37
+ width: 100%;
38
+ min-height: 22px;
39
+ min-width: 50px;
40
+ height: 22px;
41
+ margin: 3px;
42
+ }
43
+ .yahee-country-platform-shop-condition .custom-button.inner-el-button {
44
+ margin-top: 5px;
45
+ }
46
+ .yahee-country-platform-shop-condition ::v-deep(.el-checkbox-button__inner) {
47
+ width: 100%;
48
+ }
@@ -0,0 +1,215 @@
1
+ import { defineComponent as ae, ref as x, reactive as E, toRefs as ce, watch as re, onMounted as ie, resolveComponent as V, openBlock as a, createElementBlock as v, createVNode as Y, normalizeStyle as j, withCtx as f, createTextVNode as _, toDisplayString as p, unref as r, createCommentVNode as w, createElementVNode as S, Fragment as b, renderList as K, createBlock as k } from "vue";
2
+ import s from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
3
+ import { Get as de } from "../api/server.js";
4
+ import { stylesUtils as M } from "../utils/style.js";
5
+ import { storage as H } from "../utils/storage.js";
6
+ import { M2 as y } from "../utils/translate.js";
7
+ const ve = { class: "yahee-drop-down-condition" }, fe = { key: 0 }, pe = { style: { display: "flex", "align-items": "center", outline: "none" } }, he = { key: 0 }, me = { style: { display: "flex", width: "auto", padding: "10px" } }, ge = ["onClick"], xe = { class: "scrollable-container" }, ke = { key: 0 }, Ve = /* @__PURE__ */ ae({
8
+ name: "YaheeDropDownCondition",
9
+ __name: "drop-down-condition",
10
+ props: {
11
+ filterList: {},
12
+ totalCount: {},
13
+ level1Count: {},
14
+ level2Count: {},
15
+ filterKey: {},
16
+ enumEntity: {},
17
+ noNeedRefreshNumFilterName: {}
18
+ },
19
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
20
+ setup(J, { emit: Q }) {
21
+ const X = x(), o = E({});
22
+ let O = E({});
23
+ const i = E({}), h = E({}), m = x(!0), F = J, T = Q, { filterKey: L, filterList: q, totalCount: C, level1Count: B, level2Count: A, noNeedRefreshNumFilterName: I } = ce(F), W = x(s.get(C, "value", 0)), R = x(s.get(B, "value", [])), z = x(s.get(A, "value", [])), d = x();
24
+ q.value && (d.value = [...q.value]);
25
+ function G(e) {
26
+ const { text: l, value: u } = e, n = o[l];
27
+ s.isNil(n) || s.isEmpty(n) ? o[l] = [u] : o[l] = [], h[l] = !h[l], h[l] ? (ne(l), i[l] = M.getBackgroundColor(!0), m.value = !1) : (se(l), i[e.text] = {}, m.value = !0), m.value = D(), U();
28
+ }
29
+ function D() {
30
+ const e = d.value.filter((n) => !s.isEmpty(n.subs)).flatMap((n) => n.subs).length, l = d.value.filter((n) => s.isEmpty(n.subs)).length;
31
+ return Object.values(o).map((n) => n.length).reduce((n, g) => n + g, 0) === e + l || s.isEmpty(Object.values(o).flat());
32
+ }
33
+ function Z(e) {
34
+ s.isEmpty(o[e.text]) ? (i[e.text] = {}, h[e.text] = !1) : o[e.text].length === s.get(e, "subs.length", 1) ? (i[e.text] = M.getBackgroundColor(!0), h[e.text] = !0) : i[e.text] = {
35
+ backgroundColor: "#0F7535",
36
+ color: "#fff",
37
+ borderColor: "#0F7535"
38
+ }, m.value = D(), U();
39
+ }
40
+ function ee() {
41
+ m.value = D(), U();
42
+ }
43
+ function U() {
44
+ T("setNoNeedRefreshNumFilterName", L.value);
45
+ }
46
+ function te() {
47
+ m.value = !0;
48
+ for (const e in i)
49
+ i[e] = {};
50
+ for (const e in o)
51
+ delete o[e];
52
+ for (const e in h)
53
+ delete h[e];
54
+ P();
55
+ }
56
+ const le = (e) => M.getBackgroundColor(e);
57
+ function oe(e) {
58
+ if (e)
59
+ O = s.cloneDeep(o);
60
+ else {
61
+ if (s.isEqual(O, o))
62
+ return;
63
+ P();
64
+ }
65
+ }
66
+ function P() {
67
+ T("filterChange", [
68
+ {
69
+ filterKey: L.value,
70
+ checkedValues: Object.values(o).flat()
71
+ }
72
+ ]);
73
+ }
74
+ function ne(e) {
75
+ const l = d.value.find((u) => u.text === e);
76
+ l && l.subs && (o[e] = l.subs.map((u) => u.value));
77
+ }
78
+ function se(e) {
79
+ o[e] = [];
80
+ }
81
+ return re(
82
+ [() => C.value, () => B.value, () => A.value],
83
+ ([e, l, u], [n, g, $]) => {
84
+ console.log(e, l, u), console.log(n, g, $), (!I.value || !s.eq(I.value, L.value)) && (W.value = C.value, R.value = B.value, z.value = A.value);
85
+ }
86
+ ), ie(() => {
87
+ const e = `filter-key-${F.enumEntity}`, l = H.getWithExpireTime(e);
88
+ l ? d.value = l : de(`/${F.enumEntity}`).then((u) => {
89
+ d.value = u.data, H.setWithExpireTime(e, d.value, 1200 * 1e3);
90
+ }).catch((u) => {
91
+ console.log(u);
92
+ });
93
+ }), (e, l) => {
94
+ const u = V("el-button"), n = V("el-checkbox"), g = V("el-checkbox-group"), $ = V("el-dropdown");
95
+ return a(), v("div", ve, [
96
+ Y(u, {
97
+ size: "small",
98
+ class: "el-button custom-total-button",
99
+ style: j(le(m.value)),
100
+ onClick: te
101
+ }, {
102
+ default: f(() => [
103
+ _(p(r(y)("全部")) + " ", 1),
104
+ r(C) ? (a(), v("span", fe, "(" + p(W.value) + ")", 1)) : w("", !0)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["style"]),
108
+ Y($, {
109
+ ref_key: "dropdown1",
110
+ ref: X,
111
+ onVisibleChange: oe
112
+ }, {
113
+ dropdown: f(() => [
114
+ S("div", me, [
115
+ (a(!0), v(b, null, K(d.value, (t) => (a(), k(g, {
116
+ key: t.value,
117
+ modelValue: o[t.text],
118
+ "onUpdate:modelValue": (c) => o[t.text] = c,
119
+ size: "small",
120
+ class: "checkbox-group inner-checkbox-group",
121
+ onChange: (c) => Z(t)
122
+ }, {
123
+ default: f(() => [
124
+ r(s).isNil(t.subs) ? (a(), k(n, {
125
+ key: 1,
126
+ value: t.value,
127
+ class: "checkbox custom-button",
128
+ border: ""
129
+ }, {
130
+ default: f(() => [
131
+ _(p(r(y)(t.text)), 1)
132
+ ]),
133
+ _: 2
134
+ }, 1032, ["value"])) : (a(), v(b, { key: 0 }, [
135
+ S("span", {
136
+ class: "el-button custom-button el-button--small inner-el-button",
137
+ style: j(i[t.text]),
138
+ onClick: (c) => G(t)
139
+ }, p(r(y)(t.text)), 13, ge),
140
+ S("div", xe, [
141
+ (a(!0), v(b, null, K(t.subs, (c) => (a(), k(n, {
142
+ key: c.value,
143
+ class: "checkbox custom-button",
144
+ value: c.value,
145
+ border: ""
146
+ }, {
147
+ default: f(() => {
148
+ var N;
149
+ return [
150
+ _(p(r(y)(c.text)), 1),
151
+ r(s).isEmpty(z.value) ? w("", !0) : (a(), v("span", ke, "(" + p((N = z.value.filter((ue) => ue.value == c.value)[0]) == null ? void 0 : N.count) + ")", 1))
152
+ ];
153
+ }),
154
+ _: 2
155
+ }, 1032, ["value"]))), 128))
156
+ ])
157
+ ], 64))
158
+ ]),
159
+ _: 2
160
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))), 128))
161
+ ])
162
+ ]),
163
+ default: f(() => [
164
+ S("div", pe, [
165
+ (a(!0), v(b, null, K(d.value, (t) => (a(), v(b, null, [
166
+ t.isCheckbox ? (a(), k(g, {
167
+ key: t.value,
168
+ modelValue: o[t.text],
169
+ "onUpdate:modelValue": (c) => o[t.text] = c,
170
+ class: "checkbox-group",
171
+ size: "small",
172
+ onChange: ee
173
+ }, {
174
+ default: f(() => [
175
+ t.isCheckbox ? (a(), k(n, {
176
+ key: 0,
177
+ class: "custom-button",
178
+ value: t.value,
179
+ border: ""
180
+ }, {
181
+ default: f(() => [
182
+ _(p(r(y)(t.text)), 1)
183
+ ]),
184
+ _: 2
185
+ }, 1032, ["value"])) : w("", !0)
186
+ ]),
187
+ _: 2
188
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : (a(), k(u, {
189
+ key: t.text,
190
+ style: j(i[t.text]),
191
+ class: "custom-button",
192
+ size: "small",
193
+ onClick: (c) => G(t)
194
+ }, {
195
+ default: f(() => {
196
+ var c;
197
+ return [
198
+ _(p(r(y)(t.text)), 1),
199
+ r(s).isEmpty(R.value) ? w("", !0) : (a(), v("span", he, "(" + p((c = R.value.filter((N) => N.value == t.value)[0]) == null ? void 0 : c.count) + ")", 1))
200
+ ];
201
+ }),
202
+ _: 2
203
+ }, 1032, ["style", "onClick"]))
204
+ ], 64))), 256))
205
+ ])
206
+ ]),
207
+ _: 1
208
+ }, 512)
209
+ ]);
210
+ };
211
+ }
212
+ });
213
+ export {
214
+ Ve as default
215
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./drop-down-condition.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./drop-down-condition.vue.js";
3
+ const r = o(t);
4
+ export {
5
+ r as YaheeDropDownCondition,
6
+ r as default
7
+ };
@@ -0,0 +1,45 @@
1
+ @charset "UTF-8";
2
+ .yahee-drop-down-condition {
3
+ /* 滚动槽 */
4
+ /* 滚动条滑块 */
5
+ }
6
+ .yahee-drop-down-condition .checkbox-group {
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
10
+ .yahee-drop-down-condition .checkbox {
11
+ margin-top: 5px;
12
+ }
13
+ .yahee-drop-down-condition .custom-total-button {
14
+ margin-right: 0;
15
+ padding: 1px 4px;
16
+ height: 22px;
17
+ }
18
+ .yahee-drop-down-condition .custom-button {
19
+ margin-right: 0;
20
+ padding: 1px 4px;
21
+ min-height: 22px;
22
+ height: 22px;
23
+ margin-left: 5px;
24
+ }
25
+ .yahee-drop-down-condition .custom-button.inner-el-button {
26
+ margin-top: 5px;
27
+ }
28
+ .yahee-drop-down-condition .scrollable-container {
29
+ max-height: 700px;
30
+ overflow-y: auto;
31
+ display: flex;
32
+ flex-direction: column;
33
+ }
34
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
35
+ width: 5px;
36
+ }
37
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
38
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
39
+ border-radius: 10px;
40
+ }
41
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
42
+ border-radius: 10px;
43
+ background: rgba(0, 0, 0, 0.1);
44
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
45
+ }
package/es/index.js CHANGED
@@ -1,23 +1,31 @@
1
- import { makeInstaller as o } from "./utils/install.js";
1
+ import { makeInstaller as e } from "./utils/install.js";
2
2
  import r from "./installs.js";
3
3
  import { config as t } from "./utils/config.js";
4
- import { YaheeInput as x } from "./input/index.js";
5
- import { YaheeComprehensiveSearch as Y } from "./comprehensive-search/index.js";
6
- import { YaheeCopy as g } from "./copy/index.js";
7
- import { YaheeImageUpload as u } from "./image-upload/index.js";
4
+ import { YaheeInput as l } from "./input/index.js";
5
+ import { YaheeComprehensiveSearch as s } from "./comprehensive-search/index.js";
6
+ import { YaheeCopy as d } from "./copy/index.js";
7
+ import { YaheeImageUpload as c } from "./image-upload/index.js";
8
8
  import { YaheeAnnexUpload as I } from "./annex-upload/index.js";
9
- import { YaheeOperationLog as b } from "./operation-log/index.js";
10
- const { setConfig: a } = t(), f = o([...r]);
11
- function i(e) {
12
- a(e);
9
+ import { YaheeOperationLog as y } from "./operation-log/index.js";
10
+ import { YaheeCountryPlatformShopCondition as S } from "./country-platform-shop-condition/index.js";
11
+ import { YaheeLeftCondition as b } from "./left-condition/index.js";
12
+ import { YaheeLeftConditionEnum as v } from "./left-condition-enum/index.js";
13
+ import { YaheeDropDownCondition as A } from "./drop-down-condition/index.js";
14
+ const { setConfig: n } = t(), m = e([...r]);
15
+ function i(o) {
16
+ n(o);
13
17
  }
14
18
  export {
15
19
  I as YaheeAnnexUpload,
16
- Y as YaheeComprehensiveSearch,
17
- g as YaheeCopy,
18
- u as YaheeImageUpload,
19
- x as YaheeInput,
20
- b as YaheeOperationLog,
21
- f as default,
20
+ s as YaheeComprehensiveSearch,
21
+ d as YaheeCopy,
22
+ S as YaheeCountryPlatformShopCondition,
23
+ A as YaheeDropDownCondition,
24
+ c as YaheeImageUpload,
25
+ l as YaheeInput,
26
+ b as YaheeLeftCondition,
27
+ v as YaheeLeftConditionEnum,
28
+ y as YaheeOperationLog,
29
+ m as default,
22
30
  i as useGlobalConfig
23
31
  };
package/es/installs.js CHANGED
@@ -1,17 +1,25 @@
1
- import { YaheeInput as e } from "./input/index.js";
2
- import { YaheeComprehensiveSearch as o } from "./comprehensive-search/index.js";
1
+ import { YaheeInput as o } from "./input/index.js";
2
+ import { YaheeComprehensiveSearch as e } from "./comprehensive-search/index.js";
3
3
  import { YaheeCopy as r } from "./copy/index.js";
4
- import { YaheeImageUpload as a } from "./image-upload/index.js";
5
- import { YaheeOperationLog as m } from "./operation-log/index.js";
6
- import { YaheeAnnexUpload as p } from "./annex-upload/index.js";
7
- const l = [
8
- e,
4
+ import { YaheeImageUpload as m } from "./image-upload/index.js";
5
+ import { YaheeOperationLog as t } from "./operation-log/index.js";
6
+ import { YaheeAnnexUpload as i } from "./annex-upload/index.js";
7
+ import { YaheeLeftCondition as a } from "./left-condition/index.js";
8
+ import { YaheeLeftConditionEnum as p } from "./left-condition-enum/index.js";
9
+ import { YaheeDropDownCondition as n } from "./drop-down-condition/index.js";
10
+ import { YaheeCountryPlatformShopCondition as f } from "./country-platform-shop-condition/index.js";
11
+ const x = [
9
12
  o,
13
+ e,
10
14
  r,
11
- a,
12
15
  m,
13
- p
16
+ t,
17
+ i,
18
+ a,
19
+ p,
20
+ n,
21
+ f
14
22
  ];
15
23
  export {
16
- l as default
24
+ x as default
17
25
  };