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,4 @@
|
||||
import setupSmoothScroll from './smooth-scroll';
|
||||
import setupNaive from './naive';
|
||||
import NProgress from './nprogress';
|
||||
|
||||
export { setupSmoothScroll, setupNaive, NProgress };
|
||||
export { setupSmoothScroll, setupNaive };
|
||||
|
@ -1,9 +1,30 @@
|
||||
import { create, NSpace, NButton, NDatePicker, NInput } from 'naive-ui';
|
||||
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: [NSpace, NButton, NDatePicker, NInput]
|
||||
components: [
|
||||
NLayout,
|
||||
NLayoutSider,
|
||||
NLayoutHeader,
|
||||
NLayoutContent,
|
||||
NLayoutFooter,
|
||||
NSpace,
|
||||
NButton,
|
||||
NDatePicker,
|
||||
NInput
|
||||
]
|
||||
});
|
||||
app.use(naive);
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
import NProgress from 'nprogress'; // 顶部进度条
|
||||
import '../styles/css/nprogress.css';
|
||||
|
||||
NProgress.configure({
|
||||
easing: 'ease',
|
||||
speed: 500,
|
||||
trickleSpeed: 200,
|
||||
showSpinner: false
|
||||
});
|
||||
export default NProgress;
|
Reference in New Issue
Block a user