Schema内部的状态如何与外部状态交互进行更新 #3799
Unanswered
chongqiangchen
asked this question in
Q&A [2.x]
Replies: 2 comments 2 replies
-
setComponentProps and loading以scope的形式传进去 |
Beta Was this translation helpful? Give feedback.
1 reply
-
可以看看 https://formilyjs.org/zh-CN/guide/advanced/controlled 这篇文档 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我假设有一个schema:
{'x-component': "Input", 'x-component-props': {icon: loading ? 'loading' : null}}
上面的loading状态是一个接口的请求,我这样去写是无效的,有什么方案能够让外部状态和schema内部进行交互?
Beta Was this translation helpful? Give feedback.
All reactions