File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -156,13 +156,12 @@ const InternalTabs = defineComponent({
156
156
const rtl = computed ( ( ) => direction . value === 'rtl' ) ;
157
157
const mergedAnimated = computed < AnimatedConfig > ( ( ) => {
158
158
const { animated, tabPosition } = props ;
159
- const isDoAnimate = [ 'top' , 'bottom' ] . includes ( tabPosition ) ;
160
- if ( animated === false ) {
159
+ if ( animated === false || [ 'left' , 'right' ] . includes ( tabPosition ) ) {
161
160
return {
162
161
inkBar : false ,
163
162
tabPane : false ,
164
163
} ;
165
- } else if ( animated === true && isDoAnimate ) {
164
+ } else if ( animated === true ) {
166
165
return {
167
166
inkBar : true ,
168
167
tabPane : true ,
@@ -171,7 +170,7 @@ const InternalTabs = defineComponent({
171
170
return {
172
171
inkBar : true ,
173
172
tabPane : false ,
174
- ...( typeof animated === 'object' && isDoAnimate ? animated : { } ) ,
173
+ ...( typeof animated === 'object' ? animated : { } ) ,
175
174
} ;
176
175
}
177
176
} ) ;
You can’t perform that action at this time.
0 commit comments