2021-04-21 15:39:13 +00:00
|
|
|
<template lang="html">
|
|
|
|
<header class="d-flex align-items-center justify-content-between">
|
|
|
|
<h1 class="d-none d-sm-block">{{ title }}</h1>
|
|
|
|
|
2021-04-29 18:26:12 +00:00
|
|
|
<slot />
|
2021-04-21 15:39:13 +00:00
|
|
|
<b-button
|
|
|
|
v-if="actionText"
|
|
|
|
variant="primary"
|
|
|
|
class="d-none d-sm-block"
|
|
|
|
@click="$emit('action')"
|
|
|
|
>
|
|
|
|
{{ actionText }}
|
|
|
|
</b-button>
|
|
|
|
|
|
|
|
<portal to="dock">
|
2021-04-29 18:26:12 +00:00
|
|
|
|
2021-04-21 15:39:13 +00:00
|
|
|
<div class="d-sm-none" v-if="actionText">
|
2021-04-29 18:26:12 +00:00
|
|
|
<slot />
|
|
|
|
|
2021-04-21 15:39:13 +00:00
|
|
|
<b-button
|
|
|
|
variant="primary"
|
|
|
|
@click="$emit('action')"
|
|
|
|
>
|
|
|
|
{{ actionText }}
|
|
|
|
</b-button>
|
|
|
|
</div>
|
|
|
|
</portal>
|
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
title: String,
|
|
|
|
actionText: String,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
|
|
</style>
|