Skip to content

Commit

Permalink
fix: next links
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Feb 26, 2024
1 parent 2d36275 commit 53bb27f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/optimized.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ component.setData({

对于不支持模板递归的小程序(微信、QQ、京东小程序),在 DOM 层级达到一定数量后,Taro 会使用原生自定义组件协助递归。

简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/next/config-detail#minibaselevel) 修改 N。
简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/config-detail#minibaselevel) 修改 N。

`baseLevel` 设置为 `8` 甚至 `4` 层,能非常有效地提升更新时的性能。但是设置是全局性的,会带来若干问题:

Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const SCOPE_PLUGIN = {

const siteConfig = {
title: 'Taro 文档' /* title for your website */,
tagline: 'Taro 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。',
tagline: 'Taro 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/QQ 小程序/H5/React Native 等应用。',
url: url[BASE_DOMAIN], /* your website url */
baseUrl: baseUrl[BASE_DOMAIN], /* base url for your project */
onBrokenLinks: 'warn',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization.

For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number.

The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N.
The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N.

Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization.

For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number.

The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N.
The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N.

Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ There are two ways for developers to implement this optimization.

For mini program that do not support template recursion (WeChat, QQ, Jingdong mini-program), Taro will use native custom components to assist recursion after the DOM level reaches a certain number.

The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/next/config-detail#minibaselevel) to modify N.
The simple understanding is that after the DOM structure exceeds N levels, the native custom component will be used for rendering. N is 16 levels by default, and can be changed by modifying the configuration item [baseLevel](/docs/config-detail#minibaselevel) to modify N.

Setting `baseLevel` to `8` or even `4` layers can be very effective in improving performance during updates. However, the setting is global and can cause several problems.

Expand Down
2 changes: 1 addition & 1 deletion packages/taro/types/compile/config/h5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export interface IH5Config {
/** 配置需要额外的经由 Taro 预设的 postcss 编译的模块 */
esnextModules?: string[]

/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/next/h5#react-兼容性组件库)。(默认值:false) */
/** 用于控制在 H5 端是否使用兼容性组件库,详情请看 [React 兼容性组件库](https://taro-docs.jd.com/docs/h5#react-兼容性组件库)。(默认值:false) */
useHtmlComponents?: boolean

/** 用于控制在 H5 端是否使用旧版本适配器,旧版本采用全局注册组件,懒加载组件相关依赖;新版本适配器会自动注册相关组件,不再需要引入 @tarojs/components/loader 中的全局 defineCustomElements 方法。(默认值:false) */
Expand Down
2 changes: 1 addition & 1 deletion packages/taro/types/compile/config/rn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IRNConfig {
/** [less](https://lesscss.org/usage/#less-options) 相关配置 */
less?: IOption

/** [stylus](https://github.com/NervJS/taro/blob/next/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */
/** [stylus](https://github.com/NervJS/taro/blob/main/packages/taro-rn-style-transformer/README.md#rnstylus) 相关配置 */
stylus?: IOption

/** 配置 postcss 相关插件 */
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-3.x/optimized.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ component.setData({

对于不支持模板递归的小程序(微信、QQ、京东小程序),在 DOM 层级达到一定数量后,Taro 会使用原生自定义组件协助递归。

简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/next/config-detail#minibaselevel) 修改 N。
简单理解就是 DOM 结构超过 N 层后,会使用原生自定义组件进行渲染。N 默认是 16 层,可以通过修改配置项 [baseLevel](/docs/config-detail#minibaselevel) 修改 N。

`baseLevel` 设置为 `8` 甚至 `4` 层,能非常有效地提升更新时的性能。但是设置是全局性的,会带来若干问题:

Expand Down

0 comments on commit 53bb27f

Please sign in to comment.