update: 更新日志的加载效果
This commit is contained in:
parent
bac71a30f0
commit
fe53c33821
@ -3,7 +3,7 @@ import { ref } from 'vue';
|
|||||||
|
|
||||||
import { MarkdownPreviewer, Page } from '@vben/common-ui';
|
import { MarkdownPreviewer, Page } from '@vben/common-ui';
|
||||||
|
|
||||||
import { Skeleton } from 'ant-design-vue';
|
import { Spin } from 'ant-design-vue';
|
||||||
|
|
||||||
import changelog from '../../../../../../CHANGELOG.md?raw';
|
import changelog from '../../../../../../CHANGELOG.md?raw';
|
||||||
|
|
||||||
@ -14,11 +14,13 @@ const loading = ref(true);
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Page :auto-content-height="true">
|
<Page :auto-content-height="true">
|
||||||
<Skeleton v-show="loading" active />
|
<Spin :spinning="loading" tip="加载markdown中...">
|
||||||
<MarkdownPreviewer
|
<MarkdownPreviewer
|
||||||
v-model:value="content"
|
v-model:value="content"
|
||||||
height="100%"
|
height="100%"
|
||||||
@mounted="loading = false"
|
class="min-h-[50vh]"
|
||||||
/>
|
@mounted="loading = false"
|
||||||
|
/>
|
||||||
|
</Spin>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user