mirror of
https://github.com/romancm/gamebrary
synced 2025-02-17 11:38:24 +00:00
clean up page title component
This commit is contained in:
parent
c85a9ead62
commit
1a105bd43d
1 changed files with 2 additions and 15 deletions
|
@ -1,22 +1,9 @@
|
|||
<template lang="html">
|
||||
<header>
|
||||
<div class="d-none d-sm-flex align-items-center justify-content-between">
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
<slot />
|
||||
|
||||
<b-button
|
||||
v-if="actionText"
|
||||
variant="primary"
|
||||
class="d-none d-sm-block"
|
||||
@click="$emit('action')"
|
||||
>
|
||||
{{ actionText }}
|
||||
</b-button>
|
||||
</div>
|
||||
<portal to="pageTitle">{{ title }}</portal>
|
||||
|
||||
<portal to="dock">
|
||||
<div class="d-sm-none">
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<slot />
|
||||
|
||||
<b-button
|
||||
|
|
Loading…
Add table
Reference in a new issue