Merge pull request #7318 from dataease/pr@dev@fix_mult_required_tips

fix: 多选下拉过滤器必填时空值没有提示
This commit is contained in:
fit2cloud-chenyw 2023-12-25 14:22:48 +08:00 committed by GitHub
commit 55008d0714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ export default {
return this.element.serviceName === 'textSelectWidget' && this.element.options.attrs.selectFirst
},
showRequiredTips() {
return this.inDraw && this.element.options.attrs.required && !this.value
return this.inDraw && this.element.options.attrs.required && (!this.value || this.value.length === 0)
}
},