refactor(components): 用NCard组件替换ShadowCard
This commit is contained in:
@ -1,25 +1,11 @@
|
||||
<template>
|
||||
<n-space :vertical="true" :size="16">
|
||||
<header-info />
|
||||
<workbench-header />
|
||||
<workbench-main />
|
||||
</n-space>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { onActivated } from 'vue';
|
||||
import { NSpace } from 'naive-ui';
|
||||
import { useLoading } from '@/hooks';
|
||||
import { HeaderInfo } from './components';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { loading, startLoading, endLoading } = useLoading(true);
|
||||
|
||||
function handleEndLoading() {
|
||||
startLoading();
|
||||
setTimeout(() => {
|
||||
endLoading();
|
||||
}, 800);
|
||||
}
|
||||
onActivated(() => {
|
||||
handleEndLoading();
|
||||
});
|
||||
import { WorkbenchHeader, WorkbenchMain } from './components';
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user