feat(查询组件): 查询组件可以上传图片当作背景 #11585

This commit is contained in:
dataeaseShu 2024-09-29 16:49:35 +08:00
parent f806c4847e
commit 1be811828d

View File

@ -195,7 +195,7 @@ const componentBackgroundStyle = computed(() => {
if (backgroundColorSelect && backgroundColor) { if (backgroundColorSelect && backgroundColor) {
colorRGBA = backgroundColor colorRGBA = backgroundColor
} }
if (backgroundImageEnable) { if (backgroundImageEnable || (config.value.innerType === 'VQuery' && backgroundColorSelect)) {
if (backgroundType === 'outerImage' && typeof outerImage === 'string') { if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat ${colorRGBA}` style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat ${colorRGBA}`
} else { } else {