From 45d3b01fadc92780e60a1629f29d416861ce4da5 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 8 Jul 2022 20:02:44 +0800 Subject: [PATCH] fix(mp-qq): add lazyElement (#3502) --- packages/uni-mp-qq/src/compiler/options.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/uni-mp-qq/src/compiler/options.ts b/packages/uni-mp-qq/src/compiler/options.ts index de0ce36c8..2910e2a4a 100644 --- a/packages/uni-mp-qq/src/compiler/options.ts +++ b/packages/uni-mp-qq/src/compiler/options.ts @@ -34,6 +34,14 @@ export const miniProgram: MiniProgramCompilerOptions = { key: true, }, directive: 'qq:', + lazyElement: { + editor: [ + { + name: 'on', + arg: ['ready'], + }, + ], + }, component: { dir: COMPONENTS_DIR, vShow: COMPONENT_CUSTOM_HIDDEN, -- GitLab