Update LifecycleDoc.vue

pull/4186/head
mertsincan 2023-07-10 18:40:30 +01:00
parent a74912ad28
commit 08801b82e9
1 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
<template> <template>
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs">
<p> <p>
Lifecycle hooks of components are exposed as pass through using the <i>hooks</i> property so that callback functions can be registered. Available callbacks are <i>beforeCreate</i>, <i>created</i>, <i>beforeUpdate</i>, Lifecycle hooks of components are exposed as pass through using the <i>hooks</i> property so that callback functions can be registered. Available callbacks are <i>onBeforeCreate</i>, <i>onCreated</i>, <i>onBeforeUpdate</i>,
<i>updated</i>,<i>beforeMount</i>, <i>mounted</i>,<i>beforeUnmount</i> and <i>unmounted</i>. Refer to the Vue.js documentation for detailed information about lifecyce hooks. <i>onUpdated</i>, <i>onBeforeMount</i>, <i>onMounted</i>, <i>onBeforeUnmount</i> and <i>onUnmounted</i>. Refer to the Vue.js documentation for detailed information about lifecycle hooks.
</p> </p>
</DocSectionText> </DocSectionText>
@ -31,10 +31,10 @@ export default {
return { return {
panelPT: { panelPT: {
hooks: { hooks: {
mounted: () => { onMounted: () => {
//panel mounted //panel mounted
}, },
unmounted: () => { onUnmounted: () => {
//panel unmounted //panel unmounted
} }
} }
@ -55,10 +55,10 @@ import { ref } from 'vue';
const panelPt = ref({ const panelPt = ref({
hooks: { hooks: {
mounted: () => { onMounted: () => {
//panel mounted //panel mounted
}, },
unmounted: () => { onUnmounted: () => {
//panel unmounted //panel unmounted
} }
} }