We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d802666 commit 5d2044cCopy full SHA for 5d2044c
1 file changed
src/components/form-item/formItem.vue
@@ -97,7 +97,8 @@ export default {
97
computed: {
98
configRequired() {
99
if (!this.prop) return false;
100
- return this.requireds.indexOf(this.prop) > -1;
+ const ruleKey = this.prop.replace(/\[\w+\]/, '[]');
101
+ return this.requireds.indexOf(this.prop) > -1 || this.requireds.indexOf(ruleKey) > -1;
102
},
103
initLabelWidth() {
104
let mode = this.params.mode;
0 commit comments