Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持设置 Form 以外的组件 #63

Open
wulucxy opened this issue Mar 22, 2024 · 4 comments
Open

是否支持设置 Form 以外的组件 #63

wulucxy opened this issue Mar 22, 2024 · 4 comments

Comments

@wulucxy
Copy link

wulucxy commented Mar 22, 2024

是否支持设置 Form 以外的组件,比如 Tab:

例如如下场景:

image

@drdevelop
Copy link
Owner

参数设置和资源设置是一样的schema吗?或者你可以通过参数设置、资源设置定义一个type,然后type注入到globalState里,globalState变化,schema会重渲染的,schema里根据拿到的type进行动态更改当前表单schema。或者直接定义两套schema。资源设置里可以看看是哪些表单项吗,我可以写个完整例子示范下

@drdevelop
Copy link
Owner

支持是肯定支持的,我们以前有业务场景也有这么搞过,表单引擎schema有分组渲染功能,你可以在组于组之间插入一个组,那个组通过自定义渲染器groupRender返回Tab组件

@wulucxy
Copy link
Author

wulucxy commented Apr 2, 2024

我的意思是是否支持表单元素意外的schema,比如 Tab

@drdevelop
Copy link
Owner

我的意思是是否支持表单元素意外的schema,比如 Tab

你是想表单与表单之间插入一个非表单元素Tab这样的渲染,还是想表单项自定义组件(例如Tab)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants