add frontend project

This commit is contained in:
amar
2023-05-30 08:32:18 +02:00
parent 2a564bba38
commit ac3429868a
33 changed files with 12787 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
<template>
<UiDialog
ref="ref"
:width="width"
:header="{
icon: header.icon,
label: header.label,
}"
>
<template #content>
<v-container>
<slot name="header"></slot>
<component
:is="component"
v-if="!!component"
:data="componentProps"
@event="$emit('event', null)"
@onSubmit="onSubmit"
></component>
</v-container>
</template>
</UiDialog>
</template>
<script>
export default {
props: {
component: {
type: String,
default: null,
},
componentProps: {
type: Object,
default: null,
},
width: {
type: String,
default: "800",
},
header: {
type: Object,
default: () => ({ icon: null, label: null }),
},
},
methods: {
open() {
this.$refs.ref.open();
},
close() {
this.$refs.ref.close();
},
onSubmit(e) {
this.$emit("onSubmit", e);
},
},
};
</script>