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

Support app-wide config #3700

Closed
tobiasdiez opened this issue Sep 9, 2022 · 1 comment
Closed

Support app-wide config #3700

tobiasdiez opened this issue Sep 9, 2022 · 1 comment
Labels
feature request New feature or request

Comments

@tobiasdiez
Copy link

This function solves the problem (这个功能解决的问题)

Currently, one has to use the n-config-provider component to customize naive-ui. However, sometimes one has multiple entry points (e.g. multiple layouts) or an additional storybook. In these cases, it would be nice if the config could be specified once for the whole app using an app-level-provide.

Expected API (期望的 API)

Create a NaiveUI vue plugin which then can be used via

createApp(...)
    .use(NaiveUI, {
        // config options here
    })
@07akioni
Copy link
Collaborator

07akioni commented Sep 11, 2022

No, we won't provide it. It doesn't provide any new effect that can't be achieved config provider and would be hard to maintain for the library maintainer.

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

No branches or pull requests

2 participants