<TreeGrid :checkbox="true" :border="false" :data="menu" idField="id" treeField="name">
<GridColumn align="center" cellCss="datagrid-td-rownumber" :width="30">
<template slot="body" slot-scope="scope">
{{scope.rowIndex + 1}}
</template>
</GridColumn>
<GridColumn field="name" title="权限名称" :width="200"></GridColumn>
<GridColumn field="code" title="标识码" :width="200"></GridColumn>
<GridColumn field="remark" title="备注" :width="220"></GridColumn>
</TreeGrid>
通过控制台调试.consle.log(scope) 里面rowIndex 是undefine