Skip to content

Commit

Permalink
fix(tabs): 修复 h5 环境下样式报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed Jan 17, 2024
1 parent 1ef87d2 commit 8ea0de3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/taro-ui/src/components/tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
transformStyle = `translate3d(-${current * 100}%, 0px, 0px)`
}
Object.assign(bodyStyle, {
transform: transformStyle,
'-webkit-transform': transformStyle
transform: transformStyle
})
if (!animated) {
bodyStyle.transition = 'unset'
Expand Down

0 comments on commit 8ea0de3

Please sign in to comment.