From 98a60c64113539a347785f0ad39cd7c0e92189fb Mon Sep 17 00:00:00 2001 From: mackwang Date: Wed, 15 Jan 2025 16:59:13 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E8=A1=A5=E5=85=85=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=BC=8Fapi=20options.shallowReactivePattern=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs-vuepress/api/optional-api.md | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/docs-vuepress/api/optional-api.md b/docs-vuepress/api/optional-api.md index 6a67628eab..e69c6b145f 100644 --- a/docs-vuepress/api/optional-api.md +++ b/docs-vuepress/api/optional-api.md @@ -1,5 +1,57 @@ # 选项式 API +### options.shallowReactivePattern +- **类型:** `RegExp` +- **详细:** + +取消data/properties内数据的深度响应。 + +适用于每次更新均为整体的更新而非局部少量数据更新的大型数据,可减少掉对应属性“数据响应初始化”以及“diff比较”两个阶段的耗时 + +```html + + + + + + +``` + +> 注意 + ### onAppInit - **类型:** `Function` - **详细:**