We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ea31e7 commit 31fb9a2Copy full SHA for 31fb9a2
src/components/Snackbar.vue
@@ -8,7 +8,7 @@ const props = defineProps({
8
required: true
9
},
10
location: {
11
- type: String as () => 'top' | 'bottom' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right',
+ type: String,
12
13
14
level: {
@@ -18,10 +18,6 @@ const props = defineProps({
18
notifyOptions: {
19
type: Object,
20
default: () => ({})
21
- },
22
- onCloseSnackbar: {
23
- type: Function,
24
- default: () => {}
25
}
26
})
27
@@ -34,7 +30,6 @@ let showSnackbar = ref(true)
34
30
// ------- METHODS -------
35
31
function close(){
36
32
showSnackbar.value = false
37
- props.onCloseSnackbar()
38
33
emit('closeSnackbar')
39
40
</script>
0 commit comments