mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 新增主题配置
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import setupSmoothScroll from './smooth-scroll';
|
||||
import setupElementPlus from './element-plus';
|
||||
import setupNaive from './naive';
|
||||
import NProgress from './nprogress';
|
||||
|
||||
export { setupSmoothScroll, setupElementPlus, NProgress };
|
||||
export { setupSmoothScroll, setupNaive, NProgress };
|
||||
|
9
src/plugins/naive.ts
Normal file
9
src/plugins/naive.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { create, NSpace, NButton, NDatePicker, NInput } from 'naive-ui';
|
||||
import type { App } from 'vue';
|
||||
|
||||
export default function setupNaive(app: App) {
|
||||
const naive = create({
|
||||
components: [NSpace, NButton, NDatePicker, NInput]
|
||||
});
|
||||
app.use(naive);
|
||||
}
|
Reference in New Issue
Block a user