2023-06-01 12:54:58 +07:00
|
|
|
<template>
|
2024-03-12 16:23:38 +07:00
|
|
|
<q-toolbar>
|
|
|
|
|
<q-toolbar-title class="text-subtitle2 text-bold">{{
|
|
|
|
|
tittle
|
|
|
|
|
}}</q-toolbar-title>
|
|
|
|
|
<q-btn
|
|
|
|
|
icon="close"
|
|
|
|
|
unelevated
|
|
|
|
|
round
|
|
|
|
|
dense
|
|
|
|
|
@click="close"
|
|
|
|
|
style="color: #ff8080; background-color: #ffdede"
|
|
|
|
|
/>
|
|
|
|
|
</q-toolbar>
|
2023-06-01 12:54:58 +07:00
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref, useAttrs } from "vue";
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
2024-03-12 16:23:38 +07:00
|
|
|
tittle: String,
|
|
|
|
|
close: {
|
|
|
|
|
type: Function,
|
|
|
|
|
default: () => console.log("not function"),
|
|
|
|
|
},
|
2023-06-01 12:54:58 +07:00
|
|
|
});
|
|
|
|
|
const close = async () => {
|
2024-03-12 16:23:38 +07:00
|
|
|
props.close();
|
2023-06-01 12:54:58 +07:00
|
|
|
};
|
|
|
|
|
</script>
|