Skip to content

Commit 31fb9a2

Browse files
author
Ramsey Feng
committed
revert unnecessary callback
1 parent 3ea31e7 commit 31fb9a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/Snackbar.vue

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const props = defineProps({
88
required: true
99
},
1010
location: {
11-
type: String as () => 'top' | 'bottom' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right',
11+
type: String,
1212
required: true
1313
},
1414
level: {
@@ -18,10 +18,6 @@ const props = defineProps({
1818
notifyOptions: {
1919
type: Object,
2020
default: () => ({})
21-
},
22-
onCloseSnackbar: {
23-
type: Function,
24-
default: () => {}
2521
}
2622
})
2723
@@ -34,7 +30,6 @@ let showSnackbar = ref(true)
3430
// ------- METHODS -------
3531
function close(){
3632
showSnackbar.value = false
37-
props.onCloseSnackbar()
3833
emit('closeSnackbar')
3934
}
4035
</script>

0 commit comments

Comments
 (0)