Merge pull request #12537 from dataease/pr@dev-v2_st

feat(查询组件): 查询组件可以上传图片当作背景 #11585
This commit is contained in:
dataeaseShu 2024-09-29 16:50:01 +08:00 committed by GitHub
commit 276d5043dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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