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

select 如何自定义请求类型,请求头? #156

Open
Tangmingwei123 opened this issue Jul 7, 2020 · 2 comments
Open

select 如何自定义请求类型,请求头? #156

Tangmingwei123 opened this issue Jul 7, 2020 · 2 comments

Comments

@Tangmingwei123
Copy link

你好,请问我使用select enumSourceRemote如何改变methods,添加headers,谢谢作者大大
期待你的回复

@daniel-dx
Copy link
Collaborator

这个涉及实际组件的开发逻辑,当前开箱即用的 select widget 的实现上没有提供 method 和 header 的配置,具体看源码:

https://github.com/ncform/ncform/blob/master/packages/ncform-theme-elementui/src/components/control-comps/select.vue#L124

那解决方法就是:

  1. 通过自定义widget的方式,根据 select 的源码重新开发自己的 widget

  2. 官方 select widget 开放这些配置(如果你能贡献最好了,哈哈)

@Tangmingwei123
Copy link
Author

好的谢谢您,我试着改改,成功了就贡献上去(抱拳)

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