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

大佬,这个怎么设置naive-ui #3

Open
wangwy opened this issue Apr 28, 2024 · 1 comment
Open

大佬,这个怎么设置naive-ui #3

wangwy opened this issue Apr 28, 2024 · 1 comment

Comments

@wangwy
Copy link

wangwy commented Apr 28, 2024

No description provided.

@imengyu
Copy link
Owner

imengyu commented Apr 29, 2024

可以参考一下文档哈 https://docs.imengyu.top/vue-dynamic-form-docs/guide/register-controls.html
主要就两个步骤,

  1. 一个是配置 Form 与 FormItem,参考文档中的 configDefaultDynamicFormOptions 函数,它的作用是覆盖组件内置的表单,你可以从naive-ui导入表单组件,传入 internalWidgets 就可以使用它的表单组件了。
  2. 配置需要使用的表单组件:你只需要把需要使用的组件从naive-ui包中导入进来 import { NButton } from 'naive-ui',然后如文档一样注册到表单组件里面就可以使用了。

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