Skip to content

Support app-wide config #3700

Closed
Closed
@tobiasdiez

Description

@tobiasdiez

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
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions