Skip to content

Commit 8ea0de3

Browse files
committed
fix(tabs): 修复 h5 环境下样式报错的问题
1 parent 1ef87d2 commit 8ea0de3

File tree

1 file changed

+1
-2
lines changed
  • packages/taro-ui/src/components/tabs

1 file changed

+1
-2
lines changed

packages/taro-ui/src/components/tabs/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
169169
transformStyle = `translate3d(-${current * 100}%, 0px, 0px)`
170170
}
171171
Object.assign(bodyStyle, {
172-
transform: transformStyle,
173-
'-webkit-transform': transformStyle
172+
transform: transformStyle
174173
})
175174
if (!animated) {
176175
bodyStyle.transition = 'unset'

0 commit comments

Comments
 (0)