fix: 参数设置按钮消失

This commit is contained in:
taojinlong 2022-12-12 17:37:55 +08:00
parent 833a86ba10
commit db4142de50

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) {