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
+5 -4
View File
@@ -2,6 +2,7 @@ import { PropType, Transition, CSSProperties, defineComponent } from 'vue';
import {
noop,
isDef,
extend,
UnknownProp,
preventDefault,
createNamespace,
@@ -34,10 +35,10 @@ export default defineComponent({
};
const renderOverlay = lazyRender(() => {
const style: CSSProperties = {
...getZIndexStyle(props.zIndex),
...props.customStyle,
};
const style: CSSProperties = extend(
getZIndexStyle(props.zIndex),
props.customStyle
);
if (isDef(props.duration)) {
style.animationDuration = `${props.duration}s`;