2021-09-29 18:50:45 +03:00
|
|
|
<template>
|
2023-05-24 11:50:15 +03:00
|
|
|
<div>
|
|
|
|
<div :class="$style.label" @click="focus"><slot name="label"></slot></div>
|
|
|
|
<div :class="$style.content">
|
2021-09-29 18:50:45 +03:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
2023-05-24 11:50:15 +03:00
|
|
|
<div :class="$style.caption"><slot name="caption"></slot></div>
|
2021-09-29 18:50:45 +03:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-05 12:51:23 +03:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2021-09-29 18:50:45 +03:00
|
|
|
|
2022-09-05 12:51:23 +03:00
|
|
|
function focus() {
|
|
|
|
// TODO
|
|
|
|
}
|
2021-09-29 18:50:45 +03:00
|
|
|
</script>
|
|
|
|
|
2023-05-24 11:50:15 +03:00
|
|
|
<style lang="scss" module>
|
|
|
|
.label {
|
|
|
|
font-size: 0.85em;
|
|
|
|
padding: 0 0 8px 0;
|
|
|
|
user-select: none;
|
2021-09-29 18:50:45 +03:00
|
|
|
|
2023-05-24 11:50:15 +03:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
2021-09-29 18:50:45 +03:00
|
|
|
}
|
2023-05-24 11:50:15 +03:00
|
|
|
}
|
2021-09-29 18:50:45 +03:00
|
|
|
|
2023-05-24 11:50:15 +03:00
|
|
|
.caption {
|
|
|
|
font-size: 0.85em;
|
|
|
|
padding: 8px 0 0 0;
|
|
|
|
color: var(--fgTransparentWeak);
|
2021-09-29 18:50:45 +03:00
|
|
|
|
2023-05-24 11:50:15 +03:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
2021-09-29 18:50:45 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|