Skip to content

schema中type和组件值的对应关系 #1646

Discussion options

You must be logged in to vote

type和值是弱映射关系,因为这个是无法保证的,x-component指定的组件,它onChange返回的数据到底是啥类型,formily根本不知道,formily唯一能做的就是根据type分配不同的字段模型而已,当然,我们还是倾向于让用户遵守这个类型规范,比如用string,自己就传x-component为Input,而不是NumberPicker

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MatriXiao88
Comment options

@janryWang
Comment options

Answer selected by janryWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants