fix: 下拉过滤器设置首项和必填删除过滤器视图未更新
This commit is contained in:
parent
80d0822a24
commit
2204cad555
@ -362,14 +362,16 @@ export default {
|
||||
resetDefaultValue(ele) {
|
||||
const id = ele.id
|
||||
const eleVal = ele.options.value.toString()
|
||||
if (this.inDraw && this.manualModify && this.element.id === id && this.value.toString() !== eleVal && this.defaultValueStr === eleVal) {
|
||||
if (this.inDraw && this.manualModify && this.element.id === id) {
|
||||
if (this.selectFirst) {
|
||||
this.fillFirstValue()
|
||||
this.firstChange(this.value)
|
||||
return
|
||||
}
|
||||
this.value = this.fillValueDerfault()
|
||||
this.changeValue(this.value)
|
||||
if (this.value.toString() !== eleVal && this.defaultValueStr === eleVal) {
|
||||
this.value = this.fillValueDerfault()
|
||||
this.changeValue(this.value)
|
||||
}
|
||||
}
|
||||
},
|
||||
onBlur() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user