fix(design): select visible-change事件名写错

This commit is contained in:
roymondchen 2025-11-13 20:27:49 +08:00
parent da9884645f
commit 27555d6b2f

View File

@ -25,7 +25,7 @@ defineOptions({
const props = defineProps<SelectProps>();
const emit = defineEmits(['change', 'update:modelValue', 'visibleHandler']);
const emit = defineEmits(['change', 'update:modelValue', 'visible-change']);
const ui = getDesignConfig('components')?.select;
@ -44,7 +44,7 @@ const updateModelValue = (...args: any[]) => {
};
const visibleHandler = (...args: any[]) => {
emit('visibleHandler', ...args);
emit('visible-change', ...args);
};
const scrollbarWrap = ref<HTMLDivElement | undefined>();