mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Tab): remove unused logic (#8086)
This commit is contained in:
parent
7b94ac9199
commit
08f032e431
@ -372,7 +372,7 @@ export default createComponent({
|
||||
() => children.length,
|
||||
() => {
|
||||
if (state.inited) {
|
||||
setCurrentIndexByName((props.active || props.active === 0) ? props.active : currentName.value);
|
||||
setCurrentIndexByName(props.active);
|
||||
setLine();
|
||||
nextTick(() => {
|
||||
scrollIntoView(true);
|
||||
@ -397,7 +397,7 @@ export default createComponent({
|
||||
);
|
||||
|
||||
const init = () => {
|
||||
setCurrentIndexByName((props.active || props.active === 0) ? props.active : currentName.value);
|
||||
setCurrentIndexByName(props.active);
|
||||
nextTick(() => {
|
||||
state.inited = true;
|
||||
tabHeight = getVisibleHeight(wrapRef.value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user