chore: remove object spead (#8514)
This commit is contained in:
@@ -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)`;
|
||||
|
||||
Reference in New Issue
Block a user