Skip to content

博主您好,在vue的源码阅读中,initInternalComponent是在什么情况下会被调用呢? #7

Description

@DaZhaoLis

是不是由于vue.component('componentName',opts:默认为vue.extend),由于vue.extend已经处理过一次options了。所以这里可以直接赋值options而不用管mixin合并策略和mixin/directive这些,即else的分支
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions