bkui-vue 0.0.2-beta.14 → 0.0.2-beta.16
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 +21 -21
- package/dist/index.cjs.source.js +21 -8
- package/dist/index.esm.js +2783 -2767
- package/dist/index.esm.source.js +21 -8
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.source.js +21 -8
- package/lib/color-picker/index.js +1 -1
- package/lib/info-box/index.js +1 -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
@@ -26470,7 +26470,10 @@ const InfoBox = (config) => {
|
|
26470
26470
|
isShow.value = false;
|
26471
26471
|
};
|
26472
26472
|
function update(newValue) {
|
26473
|
-
modalFuncProps.value =
|
26473
|
+
modalFuncProps.value = {
|
26474
|
+
...modalFuncProps.value,
|
26475
|
+
...newValue
|
26476
|
+
};
|
26474
26477
|
}
|
26475
26478
|
expose({
|
26476
26479
|
update
|
@@ -26506,6 +26509,8 @@ const InfoBox = (config) => {
|
|
26506
26509
|
class: resolveClassName2("info-wrapper"),
|
26507
26510
|
headerAlign: "center",
|
26508
26511
|
footerAlign: "center",
|
26512
|
+
transfer: true,
|
26513
|
+
fullscreen: false,
|
26509
26514
|
...modalFuncProps.value,
|
26510
26515
|
isShow: isShow.value,
|
26511
26516
|
onClosed,
|
@@ -43647,7 +43652,8 @@ const Component$2 = /* @__PURE__ */ defineComponent({
|
|
43647
43652
|
props: colorPickerProps,
|
43648
43653
|
emits: ["update:modelValue", "change"],
|
43649
43654
|
setup(props2, {
|
43650
|
-
emit
|
43655
|
+
emit,
|
43656
|
+
slots
|
43651
43657
|
}) {
|
43652
43658
|
const formItem = useFormItem();
|
43653
43659
|
const showDropdown = ref(false);
|
@@ -43782,7 +43788,10 @@ const Component$2 = /* @__PURE__ */ defineComponent({
|
|
43782
43788
|
"class": colorPickerCls.value,
|
43783
43789
|
"onKeydown": handleTriggerKeydown,
|
43784
43790
|
"onClick": toggleDropdown
|
43785
|
-
}, [
|
43791
|
+
}, [typeof slots.trigger === "function" ? slots.trigger({
|
43792
|
+
value: colorStr.value,
|
43793
|
+
isShowDropdown: showDropdown.value
|
43794
|
+
}) : createVNode(Fragment, null, [createVNode("div", {
|
43786
43795
|
"class": `${resolveClassName2("color-picker-color")}`
|
43787
43796
|
}, [createVNode("span", {
|
43788
43797
|
"class": `${resolveClassName2("color-picker-color-square")} ${!colorStr.value && `${resolveClassName2("color-picker-empty")}`}`,
|
@@ -43793,7 +43802,7 @@ const Component$2 = /* @__PURE__ */ defineComponent({
|
|
43793
43802
|
"class": `${resolveClassName2("color-picker-icon")}`
|
43794
43803
|
}, [createVNode(angleUp, {
|
43795
43804
|
"class": "icon-angle-down"
|
43796
|
-
}, null)]), createVNode(Transition, {
|
43805
|
+
}, null)])]), createVNode(Transition, {
|
43797
43806
|
"name": "bk-fade-down-transition"
|
43798
43807
|
}, {
|
43799
43808
|
default: () => [withDirectives(createVNode(PickerDropdown, {
|
@@ -44750,15 +44759,16 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44750
44759
|
const isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
44751
44760
|
if (isMatched) {
|
44752
44761
|
list.push(item);
|
44762
|
+
const filterList = [];
|
44753
44763
|
(_a2 = item.children) == null ? void 0 : _a2.forEach((child) => {
|
44754
|
-
|
44764
|
+
filterList.push({
|
44755
44765
|
...item,
|
44756
44766
|
realId: item.id,
|
44757
44767
|
id: random(10),
|
44758
44768
|
value: child
|
44759
44769
|
});
|
44760
44770
|
});
|
44761
|
-
|
44771
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44762
44772
|
...item,
|
44763
44773
|
realId: item.id,
|
44764
44774
|
id: random(10),
|
@@ -44767,10 +44777,12 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44767
44777
|
name: keyword.value
|
44768
44778
|
}
|
44769
44779
|
});
|
44780
|
+
list.push(...filterList);
|
44770
44781
|
} else {
|
44782
|
+
const filterList = [];
|
44771
44783
|
(_b2 = item.children) == null ? void 0 : _b2.forEach((child) => {
|
44772
44784
|
if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
44773
|
-
|
44785
|
+
filterList.push({
|
44774
44786
|
...item,
|
44775
44787
|
realId: item.id,
|
44776
44788
|
id: random(10),
|
@@ -44778,13 +44790,14 @@ const SearchSelectInput = /* @__PURE__ */ defineComponent({
|
|
44778
44790
|
});
|
44779
44791
|
}
|
44780
44792
|
});
|
44781
|
-
|
44793
|
+
!filterList.length && !item.onlyRecommendChildren && filterList.push({
|
44782
44794
|
...item,
|
44783
44795
|
value: {
|
44784
44796
|
id: keyword.value,
|
44785
44797
|
name: keyword.value
|
44786
44798
|
}
|
44787
44799
|
});
|
44800
|
+
list.push(...filterList);
|
44788
44801
|
}
|
44789
44802
|
});
|
44790
44803
|
} else if (usingItem.value.type === "condition") {
|