mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[bugfix] Tabs:修复开启animated属性时导致的滚动问题 (#2238)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
v-show="parent.animated || isSelected"
|
||||
:class="b('pane', { float: parent.animated })"
|
||||
:style="paneStyle"
|
||||
:class="b('pane', { inactive: !isSelected, active: isSelected })"
|
||||
>
|
||||
<slot v-if="inited" />
|
||||
<div
|
||||
@@ -51,12 +49,6 @@ export default create({
|
||||
this.inited = this.inited || this.isSelected;
|
||||
},
|
||||
|
||||
'parent.computedWidth'(width) {
|
||||
this.paneStyle = {
|
||||
width: `${width}px`
|
||||
};
|
||||
},
|
||||
|
||||
title() {
|
||||
this.parent.setLine();
|
||||
}
|
||||
|
Reference in New Issue
Block a user