hrms-mgt/src/components/DialogHeader.vue

30 lines
557 B
Vue
Raw Normal View History

2023-06-01 12:54:58 +07:00
<template>
<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({
tittle: String,
close: {
type: Function,
default: () => console.log("not function"),
},
2023-06-01 12:54:58 +07:00
});
const close = async () => {
props.close();
2023-06-01 12:54:58 +07:00
};
</script>