aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-27 13:41:02 +0200
committerMateja <mail@matejamaric.com>2021-07-27 13:41:02 +0200
commitf847f7dd0f3728b9aab319a156c54a8cab388f0d (patch)
tree4997af47e5a7e5853736072326909d5eafcab30a /client/src
parentc81886746bec43bdf0cd6e96991783a43a95d005 (diff)
downloadmevn-ecommerce-f847f7dd0f3728b9aab319a156c54a8cab388f0d.tar.gz
mevn-ecommerce-f847f7dd0f3728b9aab319a156c54a8cab388f0d.zip
Add Model component.
Diffstat (limited to 'client/src')
-rw-r--r--client/src/components/Modal.vue30
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/components/Modal.vue b/client/src/components/Modal.vue
new file mode 100644
index 0000000..90574bb
--- /dev/null
+++ b/client/src/components/Modal.vue
@@ -0,0 +1,30 @@
+<template>
+ <div class="modal d-block" tabindex="-1">
+ <div class="modal-dialog modal-dialog-centered">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title">{{ title }}</h5>
+ <button type="button" class="btn-close" @click="close"></button>
+ </div>
+ <div class="modal-body">
+ <slot></slot>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="modal-backdrop show"></div>
+</template>
+
+<script>
+export default {
+ name: 'Modal',
+ props: {
+ title: String,
+ },
+ methods: {
+ close() {
+ this.$emit('close');
+ }
+ }
+}
+</script>