yahee-components 0.0.57 → 0.0.58
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, toRefs as re, ref as m, computed as ie, watch as ce, onMounted as fe, nextTick as A, resolveComponent as K, createElementBlock as
|
|
1
|
+
import { defineComponent as oe, toRefs as re, ref as m, computed as ie, watch as ce, onMounted as fe, nextTick as A, resolveComponent as K, createElementBlock as V, openBlock as v, createVNode as b, withCtx as q, unref as s, createCommentVNode as z, normalizeStyle as de, toDisplayString as F, Fragment as me, renderList as ve, createBlock as pe, createTextVNode as M } from "vue";
|
|
2
2
|
import l from "../_virtual/lodash.js";
|
|
3
3
|
import ge from "./left-condition-sub.vue.js";
|
|
4
4
|
import { stylesUtils as ye } from "../utils/style.js";
|
|
@@ -35,7 +35,7 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
35
35
|
setup(O, { expose: Y, emit: j }) {
|
|
36
36
|
const G = O, {
|
|
37
37
|
multiSelectList: w,
|
|
38
|
-
displayRangeInput:
|
|
38
|
+
displayRangeInput: C,
|
|
39
39
|
selectList: p,
|
|
40
40
|
hasNum: H,
|
|
41
41
|
allIsEmpty: Q,
|
|
@@ -46,12 +46,12 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
46
46
|
rangeEndKey: i,
|
|
47
47
|
noNeedRefreshNumFilterName: $,
|
|
48
48
|
defaultValues: y,
|
|
49
|
-
totalCount:
|
|
50
|
-
countList:
|
|
49
|
+
totalCount: R,
|
|
50
|
+
countList: _,
|
|
51
51
|
showTotal: Z
|
|
52
|
-
} = re(G),
|
|
52
|
+
} = re(G), x = j, B = m(R.value), c = m(), f = m(), T = m(_.value), u = /* @__PURE__ */ new Map(), d = m(!1), h = m([]), k = () => {
|
|
53
53
|
console.log("left condition notifyParent start"), A(() => {
|
|
54
|
-
var o,
|
|
54
|
+
var o, S;
|
|
55
55
|
const e = L(), t = ae();
|
|
56
56
|
if (l.isEmpty(e) && l.isEmpty(t)) {
|
|
57
57
|
I();
|
|
@@ -63,20 +63,20 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
63
63
|
checkedValues: l.map(e, (n) => n.value)
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
-
|
|
66
|
+
C.value && (a.push({
|
|
67
67
|
filterKey: r.value,
|
|
68
68
|
checkedValues: [(o = u.get(r.value)) == null ? void 0 : o.value]
|
|
69
69
|
}), a.push({
|
|
70
70
|
filterKey: i.value,
|
|
71
|
-
checkedValues: [(
|
|
72
|
-
})),
|
|
71
|
+
checkedValues: [(S = u.get(i.value)) == null ? void 0 : S.value]
|
|
72
|
+
})), x("filterChange", a), console.log(
|
|
73
73
|
`left condition notifyParent nextTick after emit, filterKey: ${g.value}, checkedValues: ${JSON.stringify(l.map(e, (n) => n.value))}`
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
}, ee = () => {
|
|
77
|
-
|
|
77
|
+
x("setNoNeedRefreshNumFilterName");
|
|
78
78
|
}, U = () => {
|
|
79
|
-
|
|
79
|
+
N(), E({ label: r.value, selected: !0, value: c.value }), E({ label: i.value, selected: !0, value: f.value });
|
|
80
80
|
}, te = () => {
|
|
81
81
|
const e = u.get(r.value);
|
|
82
82
|
l.isEmpty(e) && !c.value || l.get(e, "value") === c.value || (U(), k());
|
|
@@ -84,7 +84,7 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
84
84
|
const e = u.get(i.value);
|
|
85
85
|
l.isEmpty(e) && !f.value || l.get(e, "value") === f.value || (U(), k());
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function E(e) {
|
|
88
88
|
console.log(`left condition setSelectedStatusMap start, item: ${JSON.stringify(e)}`), u.set(e.label, {
|
|
89
89
|
selected: e.selected,
|
|
90
90
|
value: e.value
|
|
@@ -93,7 +93,7 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
93
93
|
function P(e) {
|
|
94
94
|
return l.includes(w.value, e.value);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function N() {
|
|
97
97
|
const e = l.map(L(), (t) => t.value);
|
|
98
98
|
u.clear(), l.forEach(h.value, (t) => {
|
|
99
99
|
l.includes(e, t.getValue().value) && t.resetValue();
|
|
@@ -117,24 +117,25 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
117
117
|
c.value = void 0, f.value = void 0, u.delete(r.value), u.delete(i.value);
|
|
118
118
|
};
|
|
119
119
|
function I() {
|
|
120
|
-
|
|
120
|
+
N(), A(() => {
|
|
121
121
|
console.log("selectList.value:", p.value), d.value = !0;
|
|
122
122
|
const e = p.value.filter((a) => !P(a)), t = l.map(e, (a) => a.value);
|
|
123
|
-
|
|
123
|
+
x("filterChange", [
|
|
124
124
|
{
|
|
125
125
|
filterKey: g.value,
|
|
126
126
|
checkedValues: Q.value ? [] : t
|
|
127
127
|
}
|
|
128
128
|
]);
|
|
129
|
-
}),
|
|
129
|
+
}), C.value && D();
|
|
130
130
|
}
|
|
131
131
|
return ce(
|
|
132
|
-
[() =>
|
|
132
|
+
[() => R.value, () => _.value],
|
|
133
133
|
([e, t], [a, o]) => {
|
|
134
|
-
console.log(e, t), console.log(a, o), (!$.value || !l.eq($.value, g.value)) && (
|
|
134
|
+
console.log(e, t), console.log(a, o), (!$.value || !l.eq($.value, g.value)) && (B.value = R.value, T.value = _.value);
|
|
135
135
|
}
|
|
136
136
|
), Y({
|
|
137
|
-
clickAllSelected: I
|
|
137
|
+
clickAllSelected: I,
|
|
138
|
+
resetAllCheckedValue: N
|
|
138
139
|
}), fe(() => {
|
|
139
140
|
if (!Array.isArray(y.value) || l.isEmpty(y.value)) {
|
|
140
141
|
d.value = !0;
|
|
@@ -146,19 +147,19 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
146
147
|
}), k();
|
|
147
148
|
});
|
|
148
149
|
}), (e, t) => {
|
|
149
|
-
const a = K("el-input-number"), o = K("el-form-item"),
|
|
150
|
-
return v(),
|
|
151
|
-
|
|
150
|
+
const a = K("el-input-number"), o = K("el-form-item"), S = K("el-form");
|
|
151
|
+
return v(), V("div", he, [
|
|
152
|
+
b(S, null, {
|
|
152
153
|
default: q(() => [
|
|
153
|
-
|
|
154
|
+
b(o, { label: s(X) }, {
|
|
154
155
|
default: q(() => [
|
|
155
|
-
s(Z) ? (v(),
|
|
156
|
+
s(Z) ? (v(), V("span", {
|
|
156
157
|
key: 0,
|
|
157
158
|
class: "el-button custom-button el-button--small",
|
|
158
159
|
style: de(s(ye).getBackgroundColor(d.value)),
|
|
159
160
|
onClick: I
|
|
160
|
-
}, F(
|
|
161
|
-
(v(!0),
|
|
161
|
+
}, F(B.value ? `${s(J)("全部")}(${B.value})` : s(J)("全部")), 5)) : z("", !0),
|
|
162
|
+
(v(!0), V(me, null, ve(ne.value, (n, se) => (v(), pe(ge, {
|
|
162
163
|
key: se,
|
|
163
164
|
ref_for: !0,
|
|
164
165
|
ref_key: "itemRefs",
|
|
@@ -169,16 +170,16 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
169
170
|
"count-list": T.value,
|
|
170
171
|
item: n,
|
|
171
172
|
"has-num": s(H),
|
|
172
|
-
onResetAllCheckedValue:
|
|
173
|
-
onSetSelectedStatusMap:
|
|
173
|
+
onResetAllCheckedValue: N,
|
|
174
|
+
onSetSelectedStatusMap: E,
|
|
174
175
|
onResetRange: D,
|
|
175
176
|
onSetNoNeedRefreshNumFilterName: ee,
|
|
176
177
|
onNotifyParent: k,
|
|
177
178
|
onResetIsSelectAll: ue
|
|
178
179
|
}, null, 8, ["all-is-checkbox", "multi-select-list", "translate-user-id", "count-list", "item", "has-num"]))), 128)),
|
|
179
|
-
s(
|
|
180
|
+
s(C) ? (v(), V("div", ke, [
|
|
180
181
|
M(F(e.rangeLabel) + " ", 1),
|
|
181
|
-
|
|
182
|
+
b(a, {
|
|
182
183
|
modelValue: c.value,
|
|
183
184
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => c.value = n),
|
|
184
185
|
style: { "margin-left": "2px", width: "60px", height: "22px" },
|
|
@@ -190,7 +191,7 @@ const he = { class: "yahee-left-condition" }, ke = {
|
|
|
190
191
|
onBlur: te
|
|
191
192
|
}, null, 8, ["modelValue"]),
|
|
192
193
|
M(" % " + F(e.rangeDelimiter) + " ", 1),
|
|
193
|
-
|
|
194
|
+
b(a, {
|
|
194
195
|
modelValue: f.value,
|
|
195
196
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => f.value = n),
|
|
196
197
|
style: { width: "60px", height: "22px" },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yahee-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.58",
|
|
5
5
|
"description": "深圳前海亚讯前端组件库",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -26,9 +26,11 @@
|
|
|
26
26
|
"gulp-autoprefixer": "^9.0.0",
|
|
27
27
|
"gulp-sass": "^5.1.0",
|
|
28
28
|
"sass": "^1.78.0",
|
|
29
|
-
"vite": "^6.0.1",
|
|
30
29
|
"shelljs": "^0.8.5",
|
|
31
|
-
"
|
|
30
|
+
"typedoc": "0.28.2",
|
|
31
|
+
"typedoc-plugin-markdown": "^4.6.2",
|
|
32
|
+
"unplugin-element-plus": "^0.8.0",
|
|
33
|
+
"vite": "^6.0.1"
|
|
32
34
|
},
|
|
33
35
|
"peerDependencies": {
|
|
34
36
|
"@element-plus/icons-vue": "^2.3.1",
|
package/types/src/installs.d.ts
CHANGED
|
@@ -1455,6 +1455,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
|
|
|
1455
1455
|
showTotal?: boolean;
|
|
1456
1456
|
}, {
|
|
1457
1457
|
clickAllSelected: () => void;
|
|
1458
|
+
resetAllCheckedValue: () => void;
|
|
1458
1459
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1459
1460
|
filterChange: (...args: any[]) => void;
|
|
1460
1461
|
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|
|
@@ -23,6 +23,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
|
|
|
23
23
|
showTotal?: boolean;
|
|
24
24
|
}, {
|
|
25
25
|
clickAllSelected: () => void;
|
|
26
|
+
resetAllCheckedValue: () => void;
|
|
26
27
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
28
|
filterChange: (...args: any[]) => void;
|
|
28
29
|
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|
|
@@ -21,9 +21,11 @@ type __VLS_Props = {
|
|
|
21
21
|
defaultValues?: Array<string | number | boolean>;
|
|
22
22
|
showTotal?: boolean;
|
|
23
23
|
};
|
|
24
|
+
declare function resetAllCheckedValue(): void;
|
|
24
25
|
declare function clickAllSelected(): void;
|
|
25
26
|
declare const _default: DefineComponent<__VLS_Props, {
|
|
26
27
|
clickAllSelected: typeof clickAllSelected;
|
|
28
|
+
resetAllCheckedValue: typeof resetAllCheckedValue;
|
|
27
29
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
30
|
filterChange: (...args: any[]) => void;
|
|
29
31
|
setNoNeedRefreshNumFilterName: (...args: any[]) => void;
|