日志样式修复

This commit is contained in:
zhbaor 2024-09-23 20:30:54 +08:00
parent 7a34437ab2
commit 2d9d9ee316

View file

@ -6,9 +6,21 @@ const log_ele = inject('log_ele')
</script>
<template>
<n-config-provider :theme="darkTheme" style="flex-grow: 1">
<n-card style="height: 100%">
<n-log :log="log" style="height: 100%" ref="log_ele" />
<n-config-provider :theme="darkTheme" class="provider">
<n-card class="full" ref="log_ele" content-style="height: 100%">
<n-log :log="log" class="full" />
</n-card>
</n-config-provider>
</template>
<style scoped>
.provider {
flex-grow: 1;
overflow: hidden;
}
.full {
height: 100% !important;
box-sizing: border-box;
}
</style>