mirror of
https://github.com/romancm/gamebrary
synced 2024-12-23 09:33:09 +00:00
40 lines
751 B
Vue
40 lines
751 B
Vue
|
<template lang="html">
|
||
|
<header class="d-flex align-items-center justify-content-between">
|
||
|
<h1 class="d-none d-sm-block">{{ title }}</h1>
|
||
|
|
||
|
<b-button
|
||
|
v-if="actionText"
|
||
|
variant="primary"
|
||
|
class="d-none d-sm-block"
|
||
|
@click="$emit('action')"
|
||
|
>
|
||
|
{{ actionText }}
|
||
|
</b-button>
|
||
|
|
||
|
<portal to="dock">
|
||
|
<div class="d-sm-none" v-if="actionText">
|
||
|
<b-button
|
||
|
variant="primary"
|
||
|
@click="$emit('action')"
|
||
|
>
|
||
|
{{ actionText }}
|
||
|
</b-button>
|
||
|
|
||
|
<slot />
|
||
|
</div>
|
||
|
</portal>
|
||
|
</header>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: {
|
||
|
title: String,
|
||
|
actionText: String,
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
||
|
</style>
|