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,51 @@
<template>
<div>
<v-dialog v-model="dialog" :max-width="width">
<v-card>
<v-toolbar v-if="!!header" color="primary" dark>
<v-icon>mdi-{{ header.icon }}</v-icon>
<h4 class="ml-2">{{ header.label }}</h4>
<v-spacer></v-spacer>
<v-btn icon dark @click="dialog = false">
<v-icon>mdi-close</v-icon>
</v-btn>
</v-toolbar>
<v-card-text>
<slot name="content"></slot>
</v-card-text>
<v-card-actions class="justify-end">
<slot name="action"></slot>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script>
export default {
props: {
width: {
type: String,
default: '800',
},
header: {
type: Object,
default: null,
},
},
data() {
return {
dialog: false,
}
},
methods: {
open() {
this.dialog = true
},
close() {
this.dialog = false
},
},
}
</script>
<style scoped></style>