Form add hide-required-mark prop

This commit is contained in:
梁灏 2019-09-16 10:26:49 +08:00
parent 738c852458
commit 66e8d1cb7b
2 changed files with 13 additions and 1 deletions

View file

@ -37,6 +37,11 @@
return oneOf(value, ['on', 'off']);
},
default: 'off'
},
// 4.0.0
hideRequiredMark: {
type: Boolean,
default: false
}
},
provide() {
@ -53,7 +58,8 @@
`${prefixCls}`,
`${prefixCls}-label-${this.labelPosition}`,
{
[`${prefixCls}-inline`]: this.inline
[`${prefixCls}-inline`]: this.inline,
[`${prefixCls}-hide-required-mark`]: this.hideRequiredMark
}
];
}