x-extends / vxe-table

Vxe table 的表格组件
https://vxetable.cn
MIT License
7.61k stars 1.05k forks source link

data-grid可以配置 index 行索引吗 #3

Closed lishihong closed 5 years ago

xuliangzhan commented 5 years ago

设置 type=index 就行

lishihong commented 5 years ago

<vxe-grid border resizable height="600" :columns="tableColumn" :loading="loading" :data.sync="tableData"> </vxe-grid> 这种方式的,有可以设置type=index吗

xuliangzhan commented 5 years ago

一模一样。该怎么传还是怎么传

tableColumn=[{type: 'index', label: '序号'}, {prop: 'name', label: '名字'}]
lishihong commented 5 years ago

棒!