提交 a0d5d221 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(uts): 调整 render 返回值类型

上级 c46460e5
...@@ -18,7 +18,8 @@ TemplateCompilerOptions): string { ...@@ -18,7 +18,8 @@ TemplateCompilerOptions): string {
// if(inline){ // if(inline){
// return `(): VNode | null =>` // return `(): VNode | null =>`
// } // }
return `function ${className}Render(): VNode | null` // 调整返回值类型为 any | null, 支持 <template>some text</template>
return `function ${className}Render(): any | null`
} }
export function rewriteObjectExpression( export function rewriteObjectExpression(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册