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.cjs.source.js
CHANGED
@@ -44752,15 +44752,16 @@ const SearchSelectInput = /* @__PURE__ */ vue.defineComponent({
|
|
44752
44752
|
const isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
44753
44753
|
if (isMatched) {
|
44754
44754
|
list.push(item);
|
44755
|
+
const filterList = [];
|
44755
44756
|
(_a2 = item.children) == null ? void 0 : _a2.forEach((child) => {
|
44756
|
-
|
44757
|
+
filterList.push({
|
44757
44758
|
...item,
|
44758
44759
|
realId: item.id,
|
44759
44760
|
id: random(10),
|
44760
44761
|
value: child
|
44761
44762
|
});
|
44762
44763
|
});
|
44763
|
-
|
44764
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44764
44765
|
...item,
|
44765
44766
|
realId: item.id,
|
44766
44767
|
id: random(10),
|
@@ -44769,10 +44770,12 @@ const SearchSelectInput = /* @__PURE__ */ vue.defineComponent({
|
|
44769
44770
|
name: keyword.value
|
44770
44771
|
}
|
44771
44772
|
});
|
44773
|
+
list.push(...filterList);
|
44772
44774
|
} else {
|
44775
|
+
const filterList = [];
|
44773
44776
|
(_b2 = item.children) == null ? void 0 : _b2.forEach((child) => {
|
44774
44777
|
if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
44775
|
-
|
44778
|
+
filterList.push({
|
44776
44779
|
...item,
|
44777
44780
|
realId: item.id,
|
44778
44781
|
id: random(10),
|
@@ -44780,13 +44783,14 @@ const SearchSelectInput = /* @__PURE__ */ vue.defineComponent({
|
|
44780
44783
|
});
|
44781
44784
|
}
|
44782
44785
|
});
|
44783
|
-
|
44786
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44784
44787
|
...item,
|
44785
44788
|
value: {
|
44786
44789
|
id: keyword.value,
|
44787
44790
|
name: keyword.value
|
44788
44791
|
}
|
44789
44792
|
});
|
44793
|
+
list.push(...filterList);
|
44790
44794
|
}
|
44791
44795
|
});
|
44792
44796
|
} else if (usingItem.value.type === "condition") {
|