Skip to content

Commit 2a49738

Browse files
committed
fix(types): define slots in firebase file upload dialog
1 parent 41c97d4 commit 2a49738

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/runtime/components/firebase/FirebaseFileUploadDialog.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import { ref } from 'vue'
77
import { mdiFilePlus } from '@mdi/js'
88
import { useToast, useErrorMessage, pluralize } from '#imports'
99
10-
// Props
10+
// SLOTS
11+
defineSlots<{
12+
guidelines?: (props: object) => any
13+
}>()
14+
15+
// PROPS
1116
const props = defineProps({
1217
docRef: {
1318
type: Object as PropType<DocumentReference>,
@@ -59,17 +64,18 @@ const props = defineProps({
5964
},
6065
})
6166
62-
// App state
67+
// STATE - GLOBAL
6368
const errorMessage = useErrorMessage()
6469
const toast = useToast()
6570
66-
// Component state
71+
// STATE - LOCAL
6772
const emit = defineEmits(['updated'])
6873
const dialog = ref(false)
6974
const form = ref<VForm>()
7075
const loading = ref(false)
7176
const fileRefs = ref<string[]>([])
7277
78+
// METHODS
7379
async function submitForm() {
7480
// Check if the form is valid
7581
const res = await form.value?.validate()

0 commit comments

Comments
 (0)