EasyUI Forum

General Category => EasyUI for Vue => Topic started by: fengdie on October 09, 2018, 08:09:36 PM



Title: treegrid add column row-number fail
Post by: fengdie on October 09, 2018, 08:09:36 PM
Code:
                    <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


Title: Re: treegrid add column row-number fail
Post by: stworthy on October 09, 2018, 10:51:19 PM
Please notice that the rowIndex isn't available in the TreeGrid component.


Title: Re: treegrid add column row-number fail
Post by: hjzhbb7758 on October 11, 2018, 03:13:15 AM
你做的项目,使用vx-easyui 了?


Title: Re: treegrid add column row-number fail
Post by: fengdie on October 11, 2018, 10:05:49 PM
在用,


Title: Re: treegrid add column row-number fail
Post by: hjzhbb7758 on October 15, 2018, 02:16:45 AM
空了 把你不涉密的一些界面效果 贴出来 。让我等屁民瞻仰一下呗