Skip to content

Commit

Permalink
del objectSpread
Browse files Browse the repository at this point in the history
  • Loading branch information
wenwenhua committed Nov 4, 2024
1 parent 426e227 commit 75e8cdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ const _View = forwardRef<HandlerRef<View, _ViewProps>, _ViewProps>((viewProps, r
layoutProps
} = useLayout({ props, hasSelfPercent, setWidth, setHeight, nodeRef })

const viewStyle = { ...innerStyle, ...layoutStyle }
const viewStyle = Object.assign({}, innerStyle, layoutStyle)
const innerProps = useInnerProps(props, {
ref: nodeRef,
style: viewStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ const TransformInitial: ExtendedViewStyle = {
// translateZ: 0,
}
// 动画默认初始值
const InitialValue: ExtendedViewStyle = {
...TransformInitial,
const InitialValue: ExtendedViewStyle = Object.assign({
opacity: 1,
backgroundColor: 'transparent',
width: 0,
Expand All @@ -83,7 +82,7 @@ const InitialValue: ExtendedViewStyle = {
bottom: 0,
left: 0,
transformOrigin: ['50%', '50%', 0]
}
}, TransformInitial)
const TransformOrigin = 'transformOrigin'
// deg 角度
// const isDeg = (key: RuleKey) => ['rotateX', 'rotateY', 'rotateZ', 'rotate', 'skewX', 'skewY'].includes(key)
Expand Down

0 comments on commit 75e8cdf

Please sign in to comment.