feat: 设备header卡片添加 append-info 插槽以支持自定义底部内容
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user