MorJS processPlaceholderComponents - 是否处理占位组件
- 类型:
boolean - 默认值:
undefined
用于配置是否需要编译页面或组件中配置的占位组件(componentPlaceholder)。
默认情况下:
- 当
compileType 为 miniprogram 或 plugin 时默认为 true,即处理占位组件 - 当
compileType 为 subpackage 或 component 时默认为 false,即不处理占位组件
有关占位组件的用途可参考以下文档:
注意:字节小程序的占位组件和微信小程序的占位组件渲染时机和逻辑不一致,可能会引起问题。