From a0d5d2211460015cd0f06b514573d1ae69ae0a56 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Sat, 23 Dec 2023 20:21:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(uts):=20=E8=B0=83=E6=95=B4=20render=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-app-uts/src/plugins/android/uvue/compiler/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uni-app-uts/src/plugins/android/uvue/compiler/utils.ts b/packages/uni-app-uts/src/plugins/android/uvue/compiler/utils.ts index c5c7bfca02..2cc5dfb0cb 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/compiler/utils.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/compiler/utils.ts @@ -18,7 +18,8 @@ TemplateCompilerOptions): string { // if(inline){ // return `(): VNode | null =>` // } - return `function ${className}Render(): VNode | null` + // 调整返回值类型为 any | null, 支持 + return `function ${className}Render(): any | null` } export function rewriteObjectExpression( -- GitLab