laden von erweiterungen implementiert

This commit is contained in:
Martin Drechsel
2025-05-15 09:28:45 +02:00
parent a653111071
commit ad3aa4293a
40 changed files with 1454 additions and 784 deletions

View File

@ -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");
}
});