adding slots method, variables section, and stubbing out lifecycle hooks
This commit is contained in:
@ -1,34 +1,56 @@
|
|||||||
<snippet>
|
<snippet>
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useAttrs, reactive, ref, computed, watch, onBeforeMount, onMounted, provide, inject } from 'vue'
|
import { useAttrs, useSlots, reactive, ref, computed, watch, onBeforeMount, onMounted, onBeforeUpdate, onBeforeUnmount, onUnmounted, provide, inject } from 'vue'
|
||||||
import { useForm, usePage } from '@inertiajs/inertia-vue3'
|
import { Head, Link, useForm, usePage } from '@inertiajs/inertia-vue3'
|
||||||
import AppLayout from '@/Layouts/AppLayout.vue'
|
import AppLayout from '@/Layouts/AppLayout.vue'
|
||||||
|
|
||||||
const emit = defineEmits([])
|
const emit = defineEmits([])
|
||||||
|
|
||||||
const attrs = useAttrs()
|
const attrs = useAttrs()
|
||||||
|
|
||||||
|
const slots = useSlots()
|
||||||
|
|
||||||
const props = defineProps({})
|
const props = defineProps({})
|
||||||
|
|
||||||
|
// variables
|
||||||
|
|
||||||
// computed properties
|
// computed properties
|
||||||
|
|
||||||
// watchers
|
// watchers
|
||||||
|
|
||||||
// lifecycle hooks
|
// lifecycle hooks
|
||||||
|
onBeforeMount(() => {
|
||||||
|
//
|
||||||
|
})
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
//
|
||||||
|
})
|
||||||
|
|
||||||
|
onBeforeUpdate(() => {
|
||||||
|
//
|
||||||
|
})
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
//
|
||||||
|
})
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
//
|
||||||
|
})
|
||||||
// methods
|
// methods
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<app-layout title="${1:TITLE}">
|
<AppLayout title="${1:TITLE}">
|
||||||
<template #header>${1:TITLE}</template>
|
<template #header>${1:TITLE}</template>
|
||||||
|
|
||||||
<div class="col-span-6">
|
<div class="col-span-6">
|
||||||
<!-- content goes here -->
|
<!-- content goes here -->
|
||||||
</div>
|
</div>
|
||||||
</app-layout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
]]></content>
|
]]></content>
|
||||||
|
Reference in New Issue
Block a user