mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-17 22:40:51 +01:00
laden von erweiterungen implementiert
This commit is contained in:
@ -50,27 +50,10 @@ export interface IDom {
|
||||
const id = useId();
|
||||
|
||||
defineProps({
|
||||
trigger: {
|
||||
type: Object as PropType<IDom>,
|
||||
default: () => ({
|
||||
class: "",
|
||||
text: "",
|
||||
}),
|
||||
},
|
||||
|
||||
title: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
|
||||
description: {
|
||||
type: Object as PropType<IDom>,
|
||||
default: () => ({
|
||||
class: "",
|
||||
text: "",
|
||||
}),
|
||||
required: false,
|
||||
},
|
||||
});
|
||||
|
||||
const open = defineModel<boolean>("open", { default: false });
|
||||
@ -84,8 +67,8 @@ watch(open, async () => {
|
||||
if (open.value) {
|
||||
await modal.value?.open();
|
||||
} else {
|
||||
const res = await modal.value?.close(true);
|
||||
console.log("close dialog", res);
|
||||
await modal.value?.close(true);
|
||||
console.log("close dialog");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user