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:
@ -6,13 +6,20 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { onActivated } from 'vue';
|
||||
import { useLoading } from '@/hooks';
|
||||
import { DataCard, NavCard } from './components';
|
||||
|
||||
const loading = ref(true);
|
||||
const { loading, startLoading, endLoading } = useLoading(true);
|
||||
|
||||
setTimeout(() => {
|
||||
loading.value = false;
|
||||
}, 1500);
|
||||
function handleEndLoading() {
|
||||
startLoading();
|
||||
setTimeout(() => {
|
||||
endLoading();
|
||||
}, 1000);
|
||||
}
|
||||
onActivated(() => {
|
||||
handleEndLoading();
|
||||
});
|
||||
</script>
|
||||
<style scoped></style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="flex-y-center flex-col h-500px bg-white">
|
||||
<n-spin class="flex-y-center flex-col h-500px bg-white" :show="loading">
|
||||
<n-gradient-text type="primary" size="32">工作台</n-gradient-text>
|
||||
<n-space>
|
||||
<n-button>Default</n-button>
|
||||
@ -10,8 +10,7 @@
|
||||
<n-button type="warning">Warning</n-button>
|
||||
<n-button type="error">Error</n-button>
|
||||
</n-space>
|
||||
<n-spin v-show="loading" />
|
||||
</div>
|
||||
</n-spin>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
Reference in New Issue
Block a user