使用element-ui table时,获取当前索引值

2020-03-26  本文已影响0人  nora_wang

scope.$index

<el-table
                  :data="list"
                  highlight-current-row
                  border
          >
            <el-table-column prop="name" :label="姓名">
                <template slot-scope="scope">
                {{ scope.$index }}
              </template>
            </el-table-column>
上一篇 下一篇

猜你喜欢

热点阅读