51 lines
1.0 KiB
Vue
51 lines
1.0 KiB
Vue
|
<template>
|
||
|
<div :class="$style.header">
|
||
|
<div :class="$style.title">{{ title }}</div>
|
||
|
<div :class="$style.actions" v-if="showInfo">
|
||
|
<a-button type="text" :class="$style.button">
|
||
|
<template #icon><info-circle-outlined /></template>
|
||
|
</a-button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
import { InfoCircleOutlined } from '@ant-design/icons-vue';
|
||
|
|
||
|
defineProps<{
|
||
|
title: string;
|
||
|
showInfo?: boolean;
|
||
|
}>();
|
||
|
</script>
|
||
|
|
||
|
<style module lang="scss">
|
||
|
.header {
|
||
|
height: $header-height;
|
||
|
padding: 0 $content-padding;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
border-bottom: 1px solid var(--vscode-panel-border);
|
||
|
background-color: var(--vscode-editor-background);
|
||
|
}
|
||
|
|
||
|
.title {
|
||
|
font-size: 16px;
|
||
|
font-weight: 600;
|
||
|
color: var(--vscode-foreground);
|
||
|
}
|
||
|
|
||
|
.actions {
|
||
|
display: flex;
|
||
|
gap: 8px;
|
||
|
}
|
||
|
|
||
|
.button {
|
||
|
color: var(--vscode-description-foreground);
|
||
|
|
||
|
&:hover {
|
||
|
color: var(--vscode-foreground);
|
||
|
background-color: var(--vscode-list-hover-background);
|
||
|
}
|
||
|
}
|
||
|
</style>
|