53 lines
940 B
Vue
53 lines
940 B
Vue
<template>
|
|
<div class="pageTitle" :style="`margin-bottom: ${marginBottom}px;background-color: ${backgroundColor}`">
|
|
<div class="title">
|
|
<div class="font">{{ title }}</div>
|
|
</div>
|
|
<div class="cnetr">
|
|
<slot name="center"></slot>
|
|
</div>
|
|
<div class="right">
|
|
<slot> </slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
title: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
marginBottom: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
backgroundColor: {
|
|
type: String,
|
|
default: "rgb(255, 255, 255, 0)"
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang = "scss" scoped>
|
|
.pageTitle {
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
min-height: 52px;
|
|
.title {
|
|
display: flex;
|
|
margin: auto 0;
|
|
.icon {
|
|
margin: auto 0;
|
|
}
|
|
.font {
|
|
vertical-align: middle;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
}
|
|
</style> |