|
|
@ -341,12 +341,10 @@ export default defineComponent({
|
|
|
|
const onToggleOpen = (newOpen?: boolean) => {
|
|
|
|
const onToggleOpen = (newOpen?: boolean) => {
|
|
|
|
const nextOpen = newOpen !== undefined ? newOpen : !mergedOpen.value;
|
|
|
|
const nextOpen = newOpen !== undefined ? newOpen : !mergedOpen.value;
|
|
|
|
|
|
|
|
|
|
|
|
if (!props.disabled) {
|
|
|
|
if (mergedOpen.value !== nextOpen && !props.disabled) {
|
|
|
|
setInnerOpen(nextOpen);
|
|
|
|
setInnerOpen(nextOpen);
|
|
|
|
if (mergedOpen.value !== nextOpen) {
|
|
|
|
|
|
|
|
props.onDropdownVisibleChange && props.onDropdownVisibleChange(nextOpen);
|
|
|
|
props.onDropdownVisibleChange && props.onDropdownVisibleChange(nextOpen);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const tokenWithEnter = computed(() =>
|
|
|
|
const tokenWithEnter = computed(() =>
|
|
|
|