type:解决类型问题

This commit is contained in:
奔跑的面条
2022-04-26 11:37:25 +08:00
parent 880f9d535c
commit d5656ea07c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
background: `url(${canvas.backgroundImage}) no-repeat center/100% !important`
}
return {
position: 'relative',
position: 'relative' as const,
width: canvas.width ? `${canvas.width || 100}px` : '100%',
height: canvas.height ? `${canvas.height}px` : '100%',
...computedBackground