diff --git a/src/cascader/Cascader.tsx b/src/cascader/Cascader.tsx index 3157ad0a1..7deb79ff1 100644 --- a/src/cascader/Cascader.tsx +++ b/src/cascader/Cascader.tsx @@ -48,7 +48,7 @@ export default defineComponent({ }, }, - emits: ['close', 'change', 'finish', 'update:modelValue'], + emits: ['close', 'change', 'finish', 'update:modelValue', 'click-tab'], setup(props, { slots, emit }) { const state = reactive({ @@ -180,6 +180,10 @@ export default defineComponent({ const onClose = () => emit('close'); + const onClickTab = (tabIndex: number, title: string) => { + emit('click-tab', tabIndex, title); + }; + const renderHeader = () => (