forked from github/dataease
Merge pull request #12713 from dataease/pr@dev-v2_st
fix(查询组件): 过滤组件背景图片和背景颜色同时显示
This commit is contained in:
commit
b8e837a0a0
@ -210,7 +210,13 @@ const componentBackgroundStyle = computed(() => {
|
||||
if (backgroundColorSelect && backgroundColor) {
|
||||
colorRGBA = backgroundColor
|
||||
}
|
||||
if (backgroundImageEnable || (config.value.innerType === 'VQuery' && backgroundColorSelect)) {
|
||||
if (config.value.innerType === 'VQuery' && backgroundColorSelect) {
|
||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
||||
} else {
|
||||
style['background-color'] = colorRGBA
|
||||
}
|
||||
} else if (backgroundImageEnable) {
|
||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat ${colorRGBA}`
|
||||
} else {
|
||||
|
@ -876,7 +876,14 @@ const componentBackgroundStyle = computed(() => {
|
||||
if (backgroundColorSelect && backgroundColor) {
|
||||
colorRGBA = backgroundColor
|
||||
}
|
||||
if (backgroundImageEnable || (element.value.innerType === 'VQuery' && backgroundColorSelect)) {
|
||||
|
||||
if (element.value.innerType === 'VQuery' && backgroundColorSelect) {
|
||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat`
|
||||
} else {
|
||||
style['background-color'] = colorRGBA
|
||||
}
|
||||
} else if (backgroundImageEnable) {
|
||||
if (backgroundType === 'outerImage' && typeof outerImage === 'string') {
|
||||
style['background'] = `url(${imgUrlTrans(outerImage)}) no-repeat ${colorRGBA}`
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user