vue2 render函数中 this._l是什么意思

在看element-ui中table组件的源码,看到如下代码:

render(h) {
    const columnsHidden = this.columns.map((column, index) => this.isColumnHidden(index));
    return (
      <table
        class="el-table__body"
        cellspacing="0"
        cellpadding="0"
        border="0">
        <colgroup>
          {
            this._l(this.columns, column =>
              <col
                name={ column.id }
                width={ column.realWidth || column.width }
              />)
          }
        </colgroup>
        <tbody>

其中的this._l是什么意思呀?

阅读 9.7k
1 个回答

vue源码 render#L116

Vue.prototype._l = renderList

能猜到,_l是用来渲染list的方法简写

妄自揣测,轻拍

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题