fix: 修复因画布未默认设置背景色或背景图片导致预览时的混合状态未生效问题
This commit is contained in:
parent
f0f8c86b0d
commit
bd7d3fe23e
@ -33,7 +33,7 @@ export const getStatusStyle = (attr: StatusType) => {
|
|||||||
export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
|
export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
|
||||||
// 背景
|
// 背景
|
||||||
const computedBackground = canvas.selectColor
|
const computedBackground = canvas.selectColor
|
||||||
? { background: canvas.background }
|
? { background: canvas.background || '#000000' }
|
||||||
: {
|
: {
|
||||||
background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important`
|
background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user