@@ -37,17 +22,14 @@ import { defineComponent, inject } from 'vue';
export default defineComponent({
setup() {
- return { shortcuts: inject(shortcutsKey) };
+ const context = `Modal-` + Math.random().toString(36).slice(2, 6);
+ return { shortcuts: inject(shortcutsKey), context };
},
props: {
openModal: {
default: false,
type: Boolean,
},
- useBackdrop: {
- default: true,
- type: Boolean,
- },
},
emits: ['closemodal'],
watch: {
@@ -61,11 +43,6 @@ export default defineComponent({
}
},
},
- computed: {
- context(): string {
- return `Modal-` + Math.random().toString(36).slice(2, 6);
- },
- },
});