forked from github/dataease
组件样式清空背景色后,无法选中白色 #5239
This commit is contained in:
parent
96d32a3095
commit
2eb9e3ec13
@ -50,6 +50,8 @@
|
||||
style="padding-top: 5px"
|
||||
>
|
||||
<el-color-picker
|
||||
ref="colorPicker"
|
||||
@change="colorChange"
|
||||
v-model="curComponent.commonBackground.color"
|
||||
:disabled="!curComponent.commonBackground.backgroundColorSelect"
|
||||
size="mini"
|
||||
@ -312,6 +314,12 @@ export default {
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
colorChange(val) {
|
||||
if (val === null) {
|
||||
this.$refs.colorPicker.color.value = ''
|
||||
this.curComponent.commonBackground.color = ''
|
||||
}
|
||||
},
|
||||
init() {
|
||||
if (this.curComponent && this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') {
|
||||
this.fileList.push({ url: imgUrlTrans(this.curComponent.commonBackground.outerImage) })
|
||||
|
Loading…
Reference in New Issue
Block a user