From 954100f1cb0b8a05bf71210ec4004048de2246c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=9A=E7=AA=97=E5=90=AC=E9=9B=A8=E4=B8=BF=E9=86=89?= =?UTF-8?q?=E6=97=A0=E5=BF=83?= <994039348@qq.com> Date: Wed, 16 Aug 2023 18:04:25 +0800 Subject: [PATCH] =?UTF-8?q?[docs]=20=E9=83=A8=E5=88=86=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=A4=A7=E7=BA=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mixte/src/deepClone/index.md | 2 +- packages/mixte/src/deepMerge/index.md | 2 +- packages/use/src/wheneverEffectScope/index.md | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mixte/src/deepClone/index.md b/packages/mixte/src/deepClone/index.md index 284388ac..0ef82914 100644 --- a/packages/mixte/src/deepClone/index.md +++ b/packages/mixte/src/deepClone/index.md @@ -1,5 +1,5 @@ --- -outline: [3,4] +outline: [1,4] --- - 创建传入值的深拷贝 diff --git a/packages/mixte/src/deepMerge/index.md b/packages/mixte/src/deepMerge/index.md index 6894d537..16bf06ae 100644 --- a/packages/mixte/src/deepMerge/index.md +++ b/packages/mixte/src/deepMerge/index.md @@ -1,5 +1,5 @@ --- -outline: [3,4] +outline: [1,4] --- - 深拷贝合并一个或多个来源对象 `sources` 的属性到目标对象 `target` diff --git a/packages/use/src/wheneverEffectScope/index.md b/packages/use/src/wheneverEffectScope/index.md index 715e3eef..da106a3d 100644 --- a/packages/use/src/wheneverEffectScope/index.md +++ b/packages/use/src/wheneverEffectScope/index.md @@ -1,3 +1,7 @@ +--- +outline: [1,3] +--- + - 监听传入值为 truthy 时, 创建一个 effect 作用域 - 当传入值改变但依旧为 truthy 时, 会停止之前创建的 effect 作用域并创建一个新的 effect 作用域 - 当值变为 falsy 时, 将会停止之前创建的 effect 作用域