This commit is contained in:
zlwu committed 2026-06-07 00:40:01 +08:00
1 parent f9676f8759
commit 725774ef0c
155 files changed
+50675 -5242

No files matched your search

@@ -0,0 +1,20 @@
<script setup lang="ts">
const props = withDefaults(defineProps<{
title: string
data?: any[]
emptyText?: string
embedded?: boolean
}>(), {
data: () => [],
emptyText: '暂无数据',
embedded: false,
})
</script>
<template>
<div :class="{ 'dlg-view-section': !embedded }">
<h4 v-if="!embedded" class="dlg-view-section-title">{{ title }}</h4>
<slot v-if="data.length" />
<el-empty v-else :description="emptyText" :image-size="56" />
</div>
</template>