mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2024-11-10 09:39:20 +08:00
修复optionData数据更新后调用reloadOptionData方法不会更新选项的问题。
This commit is contained in:
parent
8d6c3d7fbc
commit
6844315b3f
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="field-wrapper" :class="{'design-time-bottom-margin': !!this.designer}" :style="{display: displayStyle}">
|
||||
<div class="static-content-item" v-show="!field.options.hidden || (designState === true)" :style="{display: displayStyle}"
|
||||
<div class="static-content-item" v-if="!field.options.hidden || (designState === true)" :style="{display: displayStyle}"
|
||||
:class="[selected ? 'selected' : '', customClass]" @click.stop="selectField(field)">
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
@ -442,7 +442,7 @@
|
||||
} else if (!!widgetNames && Array.isArray(widgetNames)) {
|
||||
eventParams = [...widgetNames]
|
||||
}
|
||||
this.broadcast('FieldWidget', 'reloadOptionItems', [eventParams])
|
||||
this.broadcast('FieldWidget', 'reloadOptionItems', eventParams)
|
||||
},
|
||||
|
||||
getFormData(needValidation = true) {
|
||||
@ -532,7 +532,10 @@
|
||||
if (!!foundW.widget && (foundW.widget.type === 'sub-form')) {
|
||||
foundW.disableSubForm()
|
||||
} else {
|
||||
!!foundW.setDisabled && foundW.setDisabled(true)
|
||||
//!!foundW.setDisabled && foundW.setDisabled(true)
|
||||
if (!!foundW.setDisabled) {
|
||||
foundW.setDisabled(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -546,7 +549,10 @@
|
||||
if (!!foundW.widget && (foundW.widget.type === 'sub-form')) {
|
||||
foundW.enableSubForm()
|
||||
} else {
|
||||
!!foundW.setDisabled && foundW.setDisabled(false)
|
||||
//!!foundW.setDisabled && foundW.setDisabled(false)
|
||||
if (!!foundW.setDisabled) {
|
||||
foundW.setDisabled(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user