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
+2 -2
View File
@@ -2,7 +2,7 @@ import { PropType, defineComponent } from 'vue';
// Utils
import { bem, isImageFile, UploaderFileListItem } from './utils';
import { isDef, getSizeStyle } from '../utils';
import { isDef, getSizeStyle, extend } from '../utils';
import { callInterceptor, Interceptor } from '../utils/interceptor';
// Components
@@ -77,7 +77,7 @@ export default defineComponent({
const { index, item } = props;
return (
<div class={bem('preview-cover')}>
{slots['preview-cover']({ index, ...item })}
{slots['preview-cover'](extend({ index }, item))}
</div>
);
}