1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-16 15:48:19 +09:00
MisskeyIO/packages/client/src/components/form/slot.vue

42 lines
629 B
Vue
Raw Normal View History

2021-09-30 00:50:45 +09:00
<template>
<div class="adhpbeou">
<div class="label" @click="focus"><slot name="label"></slot></div>
<div class="content">
<slot></slot>
</div>
<div class="caption"><slot name="caption"></slot></div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
});
</script>
<style lang="scss" scoped>
.adhpbeou {
> .label {
font-size: 0.85em;
2021-11-28 20:07:37 +09:00
padding: 0 0 8px 0;
2021-09-30 00:50:45 +09:00
user-select: none;
&:empty {
display: none;
}
}
> .caption {
2021-11-28 20:07:37 +09:00
font-size: 0.85em;
padding: 8px 0 0 0;
2021-09-30 00:50:45 +09:00
color: var(--fgTransparentWeak);
&:empty {
display: none;
}
}
}
</style>