mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix(Tabs): should emit click-tab after before-change (#9805)
This commit is contained in:
@@ -295,13 +295,6 @@ export default defineComponent({
|
||||
const { title, disabled } = children[index];
|
||||
const name = getTabName(children[index], index);
|
||||
|
||||
emit('click-tab', {
|
||||
name,
|
||||
title,
|
||||
event,
|
||||
disabled,
|
||||
});
|
||||
|
||||
if (disabled) {
|
||||
// @deprecated
|
||||
// should be removed in next major version
|
||||
@@ -321,6 +314,13 @@ export default defineComponent({
|
||||
|
||||
route(item as ComponentPublicInstance<RouteProps>);
|
||||
}
|
||||
|
||||
emit('click-tab', {
|
||||
name,
|
||||
title,
|
||||
event,
|
||||
disabled,
|
||||
});
|
||||
};
|
||||
|
||||
const onStickyScroll = (params: {
|
||||
|
Reference in New Issue
Block a user