未验证 提交 5edddae2 编写于 作者: Z zora-han 提交者: GitHub

对于获取被选中行信息的修改

在data里面就没有存储过rowId或者id,所以除了在选择标题行时,返回的congfig是唯一的,其余行config返回的rowId均为undefined,所以改为直接判断rowIndex从而赋值给congif.rowId即可
上级 d7ae472f
......@@ -1181,7 +1181,7 @@
}
var dataItem = rowIndex > 0 ? that.getDataItem(rowIndex - 1) : null;
config.data = dataItem;
config.rowId = dataItem ? (dataItem.rowId || dataItem.id) : (rowIndex === 0 ? '#header' : rowIndex);
config.rowId = rowIndex === 0 ? '#header' : rowIndex;
return config;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册