Merge pull request #4075 from dataease/pr@dev@fix_params

fix: 参数设置按钮消失
This commit is contained in:
taojinlong 2022-12-12 17:39:49 +08:00 committed by GitHub
commit c6ab3cc44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,10 +328,13 @@ export default {
created() {
this.attrs = this.controlAttrs
if (this.widget.isTimeWidget && this.widget.isTimeWidget()) {
if (this.widget.isTimeWidget) {
this.showParams = true
this.isRangeParamWidget = this.widget.isRangeParamWidget && this.widget.isRangeParamWidget()
}
if ('timeYearWidget,timeMonthWidget,timeDateWidget,textSelectWidget,numberSelectWidget'.indexOf(this.widget.name) !== -1) {
this.showParams = true
}
},
methods: {
changeDynamicParams(val, name) {