bkui-vue 0.0.2-beta.14 → 0.0.2-beta.15
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/dist/index.cjs.js +20 -20
- package/dist/index.cjs.source.js +8 -4
- package/dist/index.esm.js +1089 -1082
- package/dist/index.esm.source.js +8 -4
- package/dist/index.umd.js +20 -20
- package/dist/index.umd.source.js +8 -4
- package/dist/style.css +11171 -1
- package/lib/search-select/index.d.ts +3 -0
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/search-select.d.ts +1 -0
- package/lib/search-select/utils.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.source.js
CHANGED
@@ -44750,15 +44750,16 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44750
44750
|
const isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
44751
44751
|
if (isMatched) {
|
44752
44752
|
list.push(item);
|
44753
|
+
const filterList = [];
|
44753
44754
|
(_a2 = item.children) == null ? void 0 : _a2.forEach((child) => {
|
44754
|
-
|
44755
|
+
filterList.push({
|
44755
44756
|
...item,
|
44756
44757
|
realId: item.id,
|
44757
44758
|
id: random(10),
|
44758
44759
|
value: child
|
44759
44760
|
});
|
44760
44761
|
});
|
44761
|
-
|
44762
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44762
44763
|
...item,
|
44763
44764
|
realId: item.id,
|
44764
44765
|
id: random(10),
|
@@ -44767,10 +44768,12 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44767
44768
|
name: keyword.value
|
44768
44769
|
}
|
44769
44770
|
});
|
44771
|
+
list.push(...filterList);
|
44770
44772
|
} else {
|
44773
|
+
const filterList = [];
|
44771
44774
|
(_b2 = item.children) == null ? void 0 : _b2.forEach((child) => {
|
44772
44775
|
if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
44773
|
-
|
44776
|
+
filterList.push({
|
44774
44777
|
...item,
|
44775
44778
|
realId: item.id,
|
44776
44779
|
id: random(10),
|
@@ -44778,13 +44781,14 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44778
44781
|
});
|
44779
44782
|
}
|
44780
44783
|
});
|
44781
|
-
|
44784
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44782
44785
|
...item,
|
44783
44786
|
value: {
|
44784
44787
|
id: keyword.value,
|
44785
44788
|
name: keyword.value
|
44786
44789
|
}
|
44787
44790
|
});
|
44791
|
+
list.push(...filterList);
|
44788
44792
|
}
|
44789
44793
|
});
|
44790
44794
|
} else if (usingItem.value.type === "condition") {
|