refactor(components): 用NCard组件替换ShadowCard

This commit is contained in:
Soybean
2021-11-06 01:53:17 +08:00
parent 4487f9fbdc
commit 048eae6748
16 changed files with 167 additions and 158 deletions

View File

@ -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>