File tree Expand file tree Collapse file tree
src/runtime/components/firebase Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ import { ref } from 'vue'
77import { mdiFilePlus } from ' @mdi/js'
88import { useToast , useErrorMessage , pluralize } from ' #imports'
99
10- // Props
10+ // SLOTS
11+ defineSlots <{
12+ guidelines? : (props : object ) => any
13+ }>()
14+
15+ // PROPS
1116const 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
6368const errorMessage = useErrorMessage ()
6469const toast = useToast ()
6570
66- // Component state
71+ // STATE - LOCAL
6772const emit = defineEmits ([' updated' ])
6873const dialog = ref (false )
6974const form = ref <VForm >()
7075const loading = ref (false )
7176const fileRefs = ref <string []>([])
7277
78+ // METHODS
7379async function submitForm() {
7480 // Check if the form is valid
7581 const res = await form .value ?.validate ()
You can’t perform that action at this time.
0 commit comments