bkui-vue 0.0.1-beta.368 → 0.0.1-beta.369
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 +46 -46
- package/dist/index.esm.js +8 -4
- package/dist/index.umd.js +48 -48
- package/lib/select/index.d.ts +24 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -14689,7 +14689,7 @@ var BkOption = defineComponent({
|
|
14689
14689
|
}
|
14690
14690
|
});
|
14691
14691
|
var OptionGroup = defineComponent({
|
14692
|
-
name: "
|
14692
|
+
name: "OptionGroup",
|
14693
14693
|
props: {
|
14694
14694
|
label: PropTypes.string.def(""),
|
14695
14695
|
disabled: PropTypes.bool.def(false),
|
@@ -15310,7 +15310,8 @@ var Component$j = defineComponent({
|
|
15310
15310
|
inputSearch: PropTypes.bool.def(true),
|
15311
15311
|
enableVirtualRender: PropTypes.bool.def(false),
|
15312
15312
|
allowEmptyValues: PropTypes.array.def([]),
|
15313
|
-
autoFocus: PropTypes.bool.def(false)
|
15313
|
+
autoFocus: PropTypes.bool.def(false),
|
15314
|
+
keepSearchValue: PropTypes.bool.def(false)
|
15314
15315
|
},
|
15315
15316
|
emits: ["update:modelValue", "change", "toggle", "clear", "scroll-end", "focus", "blur"],
|
15316
15317
|
setup(props2, {
|
@@ -15342,7 +15343,8 @@ var Component$j = defineComponent({
|
|
15342
15343
|
autoHeight,
|
15343
15344
|
popoverOptions,
|
15344
15345
|
allowEmptyValues,
|
15345
|
-
autoFocus
|
15346
|
+
autoFocus,
|
15347
|
+
keepSearchValue
|
15346
15348
|
} = toRefs(props2);
|
15347
15349
|
const formItem = useFormItem();
|
15348
15350
|
const inputRef = ref();
|
@@ -15464,7 +15466,9 @@ var Component$j = defineComponent({
|
|
15464
15466
|
const isInput = computed(() => (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value);
|
15465
15467
|
watch(isPopoverShow, (isShow) => {
|
15466
15468
|
if (!isShow) {
|
15467
|
-
|
15469
|
+
if (!keepSearchValue.value) {
|
15470
|
+
searchKey.value = "";
|
15471
|
+
}
|
15468
15472
|
} else {
|
15469
15473
|
setTimeout(() => {
|
15470
15474
|
focusInput();
|