Files
luos/resources/assets/js/components/headers/MultiviewHeader.vue

56 lines
1.1 KiB
Vue
Raw Normal View History

2021-07-07 14:37:35 +00:00
<template>
<div class="pm-multiview-header">
<div class="pm-multiview-header-title"></div>
<div class="pm-multiview-header-actions">
2021-07-08 15:00:07 +00:00
<div>
<button
v-for="action in data.actions"
:key="action.id"
@click="action.onClick(action)"
class="pm-multiview-header-button"
:title="action.title"
>
<div>
<span>
<i :class="action.icon"></i>
</span>
</div>
</button>
</div>
2021-07-07 14:37:35 +00:00
</div>
</div>
</template>
<script>
export default {
name: "MultiviewHeader",
2021-07-08 15:00:07 +00:00
props: ["data"],
2021-07-07 14:37:35 +00:00
data() {
2021-07-08 15:00:07 +00:00
return {};
2021-07-07 14:37:35 +00:00
},
methods: {
classBtn(cls) {
return "btn btn-slim btn-force-radius v-btn-header " + cls;
},
},
};
</script>
<style>
.pm-multiview-header {
}
.pm-multiview-header-title {
}
.pm-multiview-header-actions {
2021-07-08 15:00:07 +00:00
text-align: end;
2021-07-07 14:37:35 +00:00
}
.pm-multiview-header-button {
background-color: transparent;
border-color: white;
font-size: 1.6rem;
color: #007bff;
display: inline-block;
padding: 0px 7px 0px 7px;
}
</style>