feat(projects): 主题配置:页面功能和页面显示

This commit is contained in:
Soybean
2021-09-07 18:08:07 +08:00
parent 1128ae1870
commit a0392b3d28
10 changed files with 129 additions and 47 deletions

View File

@ -1,5 +1,4 @@
import setupSmoothScroll from './smooth-scroll';
import setupNaive from './naive';
import setupWindicssDarkMode from './dark-mode';
export { setupSmoothScroll, setupNaive, setupWindicssDarkMode };
export { setupSmoothScroll, setupWindicssDarkMode };

View File

@ -1,30 +0,0 @@
import {
create,
NLayout,
NLayoutSider,
NLayoutHeader,
NLayoutContent,
NLayoutFooter,
NSpace,
NButton,
NDatePicker,
NInput
} from 'naive-ui';
import type { App } from 'vue';
export default function setupNaive(app: App) {
const naive = create({
components: [
NLayout,
NLayoutSider,
NLayoutHeader,
NLayoutContent,
NLayoutFooter,
NSpace,
NButton,
NDatePicker,
NInput
]
});
app.use(naive);
}