Skip to content

Commit

Permalink
style: 注释语义化
Browse files Browse the repository at this point in the history
  • Loading branch information
ilukemagic committed May 15, 2022
1 parent c95e585 commit 1c98fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime-core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function finishComponentSetup(instance) {
const Component = instance.type;

if (!instance.render) {
// 如果 compile 有值 并且当然组件没有 render 函数,那么就需要把 template 编译成 render 函数
// 如果 compile 有值 并且当组件没有 render 函数,那么就需要把 template 编译成 render 函数
if (compile && !Component.render) {
if (Component.template) {
// 这里就是 runtime 模块和 compile 模块结合点
Expand Down

0 comments on commit 1c98fed

Please sign in to comment.