API 文档里面为什么没有对于schema的api的描述 #3839
Unanswered
dingchaoyan1983
asked this question in
Q&A [2.x]
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
目前只能看@formily/antd 里面的源码里面有个useFieldSchema, 然后获取到该节点对应的schema, 比如我要查询某些符合条件的schema,就不知道用什么方法了。是否可以补充对于schema的api
const steps: SchemaStep[] = [] schema.mapProperties((schema, name) => { if (schema['x-component']?.indexOf('StepPane') > -1) { steps.push({ name, props: schema['x-component-props'], schema, }) } }) return steps
比如这段代码,是找出来 ·StepPane·的节点 但是
schema.mapProperties
这个方法是什么作用,没有具体说明Beta Was this translation helpful? Give feedback.
All reactions