fix: 处理预览背景图展示问题

This commit is contained in:
奔跑的面条 2022-08-05 08:32:21 +08:00
parent 2de57e93f5
commit 3eb3527226

View File

@ -28,7 +28,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
const computedBackground = canvas.selectColor const computedBackground = canvas.selectColor
? { background: canvas.background } ? { background: canvas.background }
: { : {
background: `url(${canvas.backgroundImage}) no-repeat center/100% !important` background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important`
} }
return { return {
position: 'relative' as const, position: 'relative' as const,