2023-09-29 15:02:04 +07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
title: String,
|
|
|
|
|
close: {
|
|
|
|
|
type: Function,
|
|
|
|
|
default: () => console.log("not function"),
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
const close = async () => {
|
|
|
|
|
props.close();
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<q-toolbar class="q-py-md">
|
|
|
|
|
<q-toolbar-title class="header-text">{{ title }}</q-toolbar-title>
|
2024-09-03 11:28:01 +07:00
|
|
|
<q-btn
|
|
|
|
|
icon="close"
|
|
|
|
|
unelevated
|
|
|
|
|
round
|
|
|
|
|
dense
|
|
|
|
|
@click="close"
|
|
|
|
|
style="color: #ff8080; background-color: #ffdede"
|
|
|
|
|
/>
|
2023-09-29 15:02:04 +07:00
|
|
|
</q-toolbar>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.header-text {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 26px;
|
2024-09-03 11:28:01 +07:00
|
|
|
color: #35373c;
|
2023-09-29 15:02:04 +07:00
|
|
|
}
|
|
|
|
|
</style>
|