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