Skip to content

Commit

Permalink
add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 28, 2021
1 parent ad1ab41 commit dc8e4b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime-core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function setupStatefulComponent(instance) {
// todo
// 1. 先创建代理 proxy
console.log("创建 proxy");
// 用户声明的对象就是 instance.type
// const Component = {setup(),render()} ....
const Component = instance.type;
// 2. 调用 setup

Expand Down

0 comments on commit dc8e4b6

Please sign in to comment.