📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
11.48k
stars
1.49k
forks
source link
[Feature Request] @formly/antd里面的form-item 组件 asterisk的获取优先级 能否改成 props传入的最高,其次 判断 输入态 是否required; #2832
Closed
Likj closed 2 years ago
What problem does this feature solve?
const takeAsterisk = () => { if (field.required && field.pattern !== 'readPretty') { return true } if ('asterisk' in props) { return props.asterisk } return false }
看这个代码的判断,props.asterisk变成啦第二优先级别。有可能场景就是不需要展示*
What does the proposed API look like?