From 01276871e172dbe7d6b5ca17b5ded859120a5751 Mon Sep 17 00:00:00 2001
From: zhenyuWang <13641039885@163.com>
Date: Mon, 22 Apr 2024 21:42:31 +0800
Subject: [PATCH] =?UTF-8?q?feat(lifecycle):=20=E4=BC=98=E5=8C=96=E7=94=9F?=
=?UTF-8?q?=E5=91=BD=E5=91=A8=E6=9C=9F=E7=A4=BA=E4=BE=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/CompositionAPILifecycle.uvue | 285 ++++++++++++------
components/OptionsAPILifecycle.uvue | 169 +++++++----
.../component-lifecycle.uvue | 6 +-
.../page-lifecycle/page-lifecycle.uvue | 62 +++-
pages/lifecycle/component/component.uvue | 3 +-
pages/lifecycle/page/page.uvue | 64 +++-
6 files changed, 431 insertions(+), 158 deletions(-)
diff --git a/components/CompositionAPILifecycle.uvue b/components/CompositionAPILifecycle.uvue
index 9fdb92d..1c29587 100644
--- a/components/CompositionAPILifecycle.uvue
+++ b/components/CompositionAPILifecycle.uvue
@@ -1,101 +1,198 @@
title: {{ title }}
+
+ onLoad 触发:
+ {{ isOnloadTriggered }}
+
+
+ onPageShow 触发:
+ {{ isOnShowTriggered }}
+
+
+ onReady 触发:
+ {{ isOnReadyTriggered }}
+
+
+ onBeforeMount 触发:
+ {{ isOnBeforeMountTriggered }}
+
+
+ onMounted 触发:
+ {{ isOnMountedTriggered }}
+
+
+ onBeforeUpdate 触发:
+ {{ isOnBeforeUpdateTriggered }}
+
+
+ onUpdated 触发:
+ {{ isOnUpdatedTriggered }}
+
+
+ onBeforeUnmount 触发:
+ {{ isOnBeforeUnmountTriggered }}
+
+
+ onUnmounted 触发:
+ {{ isOnUnmountedTriggered }}
+
+
+ onPullDownRefresh 触发:
+ {{ isOnPullDownRefreshTriggered }}
+
+
+ onReachBottom 触发:
+ {{ isOnReachBottomTriggered }}
+
+
+ onBackPress 触发:
+ {{ isOnBackPressTriggered }}
+
+
+ onPageHide 触发:
+ {{ isOnHideTriggered }}
+
+
+ onResize 触发:
+ {{ isOnResizeTriggered }}
+
-
\ No newline at end of file
+
+
+
diff --git a/components/OptionsAPILifecycle.uvue b/components/OptionsAPILifecycle.uvue
index 9a1e385..1f72d8a 100644
--- a/components/OptionsAPILifecycle.uvue
+++ b/components/OptionsAPILifecycle.uvue
@@ -1,63 +1,122 @@
title: {{ title }}
+
+ beforeCreate 触发:
+ {{ isBeforeCreateTriggered }}
+
+
+ created 触发:
+ {{ isCreatedTriggered }}
+
+
+ beforeMount 触发:
+ {{ isBeforeMountTriggered }}
+
+
+ mounted 触发:
+ {{ isMountedTriggered }}
+
+
+ beforeUpdate 触发:
+ {{ isBeforeUpdateTriggered }}
+
+
+ updated 触发:
+ {{ isUpdatedTriggered }}
+
+
+ beforeUnmount 触发:
+ {{ isBeforeUnmountTriggered }}
+
+
+ unmounted 触发:
+ {{ isUnmountedTriggered }}
+
-
\ No newline at end of file
+ },
+};
+
+
+
diff --git a/pages/composition-api/lifecycle/component-lifecycle/component-lifecycle.uvue b/pages/composition-api/lifecycle/component-lifecycle/component-lifecycle.uvue
index b850f25..7b442e5 100644
--- a/pages/composition-api/lifecycle/component-lifecycle/component-lifecycle.uvue
+++ b/pages/composition-api/lifecycle/component-lifecycle/component-lifecycle.uvue
@@ -2,17 +2,17 @@
-
- component lifecycle
+
+
-