feat: 设备header卡片添加 append-info 插槽以支持自定义底部内容

This commit is contained in:
yangsy
2025-12-22 15:17:51 +08:00
parent a7c36079cf
commit e8ac939795

View File

@@ -14,6 +14,10 @@ const props = defineProps<{
station: Station;
}>();
defineSlots<{
'append-info': () => any;
}>();
const { ndmDevice, station } = toRefs(props);
const type = computed(() => {
@@ -150,6 +154,9 @@ onBeforeUnmount(() => {
</div>
</div>
</template>
<template #footer>
<slot name="append-info"></slot>
</template>
</NCard>
</template>