Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cuixiaorui/mini-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jun 22, 2022
2 parents 5bb98eb + 0a5ed74 commit 29078ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/reactivity/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2730,9 +2730,9 @@ minimatch@^3.0.4:
brace-expansion "^1.1.7"

minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.nlark.com/minimist/download/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=
version "1.2.6"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==

[email protected]:
version "2.1.2"
Expand Down
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
1 change: 0 additions & 1 deletion src/runtime-core/helpers/renderSlot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getCurrentInstance } from "../component";
import { createVNode, Fragment } from "../vnode";

/**
Expand Down

0 comments on commit 29078ac

Please sign in to comment.