mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-12 13:13:15 +08:00
refactor: empty占位
This commit is contained in:
@@ -393,6 +393,7 @@ async function handleCopy(text: string) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="w-full">
|
||||
<Card
|
||||
v-if="task"
|
||||
:body-style="{ overflowY: 'auto', height: '100%' }"
|
||||
@@ -585,5 +586,8 @@ async function handleCopy(text: string) {
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
<Fallback v-else title="点击左侧选择" />
|
||||
<slot v-else name="empty">
|
||||
<Fallback title="点击左侧选择" />
|
||||
</slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -6,6 +6,8 @@ import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
|
||||
import { Spin } from 'ant-design-vue';
|
||||
|
||||
import { getTaskByBusinessId } from '#/api/workflow/instance';
|
||||
|
||||
import { ApprovalPanel } from '.';
|
||||
@@ -36,6 +38,14 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
|
||||
<template>
|
||||
<BasicModal>
|
||||
<ApprovalPanel :task="taskInfo" type="readonly" />
|
||||
<!-- :task="taskInfo" -->
|
||||
<ApprovalPanel type="readonly">
|
||||
<template #empty>
|
||||
<Spin
|
||||
class="flex h-[200px] w-full items-center justify-center"
|
||||
size="large"
|
||||
/>
|
||||
</template>
|
||||
</ApprovalPanel>
|
||||
</BasicModal>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user