2024-10-08 13:17:06 +11:00
|
|
|
<template>
|
2024-10-09 17:55:19 +11:00
|
|
|
<HeaderButton @click="() => close()">
|
2024-10-09 00:37:27 +11:00
|
|
|
<XMarkIcon />
|
|
|
|
|
</HeaderButton>
|
2024-10-08 13:17:06 +11:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-10-08 18:08:52 +11:00
|
|
|
import { MinusIcon, XMarkIcon } from "@heroicons/vue/16/solid";
|
2024-10-08 13:17:06 +11:00
|
|
|
import { getCurrentWindow } from "@tauri-apps/api/window";
|
|
|
|
|
|
2024-10-09 17:55:19 +11:00
|
|
|
async function close(){
|
|
|
|
|
console.log(window);
|
|
|
|
|
const result = await window.close();
|
|
|
|
|
console.log(`closed window: ${result}`);
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-08 13:17:06 +11:00
|
|
|
const window = getCurrentWindow();
|
|
|
|
|
</script>
|