chore: remove object spead (#8514)

This commit is contained in:
neverland
2021-04-12 20:57:24 +08:00
committed by GitHub
parent 0b764b6347
commit 9deca34d1d
41 changed files with 204 additions and 241 deletions
+3 -3
View File
@@ -10,6 +10,7 @@ import {
// Utils
import {
extend,
isHidden,
unitToPx,
getScrollTop,
@@ -76,12 +77,11 @@ export default defineComponent({
return;
}
const style: CSSProperties = {
...getZIndexStyle(props.zIndex),
const style: CSSProperties = extend(getZIndexStyle(props.zIndex), {
width: `${state.width}px`,
height: `${state.height}px`,
[props.position]: `${offset.value}px`,
};
});
if (state.transform) {
style.transform = `translate3d(0, ${state.transform}px, 0)`;