码迷,mamicode.com
首页 > 其他好文 > 详细

零散事项

时间:2019-01-17 15:20:16      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:contex   父节点   child   undefined   上下文   key   根据   v-once   instance   

  • 底层_l
// 根据columnRows返回vnode数组
this._l(columnRows, (columns, rowIndex) =>{
})
  • vnode对象包括(vnode并不是vue实例,而是vue实例中渲染函数render执行后生成的结果)
    this.tag = tag // 当前节点标签名
    this.data = data // 当前节点数据(VNodeData类型)
    this.children = children // 当前节点子节点
    this.text = text // 当前节点文本
    this.elm = elm // 当前节点对应的真实DOM节点
    this.ns = undefined // 当前节点命名空间
    this.context = context // 当前节点上下文
    this.fnContext = undefined // 函数化组件上下文
    this.fnOptions = undefined // 函数化组件配置项
    this.fnScopeId = undefined // 函数化组件ScopeId
    this.key = data && data.key // 子节点key属性
    this.componentOptions = componentOptions // 组件配置项 
    this.componentInstance = undefined // 组件实例
    this.parent = undefined // 当前节点父节点
    this.raw = false // 是否为原生HTML或只是普通文本
    this.isStatic = false // 静态节点标志 keep-alive
    this.isRootInsert = true // 是否作为根节点插入
    this.isComment = false // 是否为注释节点
    this.isCloned = false // 是否为克隆节点
    this.isOnce = false // 是否为v-once节点
    this.asyncFactory = asyncFactory // 异步工厂方法 
    this.asyncMeta = undefined // 异步Meta
    this.isAsyncPlaceholder = false // 是否为异步占位

零散事项

标签:contex   父节点   child   undefined   上下文   key   根据   v-once   instance   

原文地址:https://www.cnblogs.com/qq3279338858/p/10281956.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!