tree-table-vue icon indicating copy to clipboard operation
tree-table-vue copied to clipboard

一点小修改

Open scjyyhl opened this issue 6 years ago • 0 comments
trafficstars

修复:不响应row-click事件的bug 允许第一列使用slot

添加primaryKey参数,当修改数据源时,可以根据primaryKey的值,来保持之前的折叠状态。避免了每次push新数据,所有节点都被折叠了的问题 primaryKey用法: <TreeTable ref="refTreeTable" stripe :tree-type="treeType" :expandType="expandType" :selectable="selectable" :show-header="showHeader" :columns="categoryColumns" :data="categoryData" @row-click="actOnRowClick" primary-key="categoryId">

categoryId就是data数组里面的一个字段,根据这个字段来判断这个数据的唯一性

scjyyhl avatar Apr 10 '19 11:04 scjyyhl