mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
fix(Tabs): should emit click-tab after before-change (#9805)
This commit is contained in:
parent
f57205f7de
commit
6e3ba5af63
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user