提交 4fdb5ece 编写于 作者: C Catouse

* build datagrid.

上级 68e7df8e
/*! /*!
* ZUI: 数据表格② - v1.8.0 - 2018-01-11 * ZUI: 数据表格② - v1.8.0 - 2018-01-16
* http://zui.sexy * http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git * GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2018 cnezsoft.com; Licensed MIT * Copyright (c) 2018 cnezsoft.com; Licensed MIT
......
/*! /*!
* ZUI: 数据表格② - v1.8.0 - 2018-01-11 * ZUI: 数据表格② - v1.8.0 - 2018-01-16
* http://zui.sexy * http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git * GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2018 cnezsoft.com; Licensed MIT * Copyright (c) 2018 cnezsoft.com; Licensed MIT
...@@ -1179,7 +1179,8 @@ ...@@ -1179,7 +1179,8 @@
} }
var dataItem = rowIndex > 0 ? that.getDataItem(rowIndex - 1) : null; var dataItem = rowIndex > 0 ? that.getDataItem(rowIndex - 1) : null;
config.data = dataItem; config.data = dataItem;
config.rowId = rowIndex === 0 ? '#header' : rowIndex; var rowId = dataItem && (dataItem.rowId || dataItem.id);
config.rowId = rowId !== undefined ? rowId : (rowIndex === 0 ? '#header' : rowIndex);
return config; return config;
}; };
......
/*! /*!
* ZUI: 数据表格② - v1.8.0 - 2018-01-11 * ZUI: 数据表格② - v1.8.0 - 2018-01-16
* http://zui.sexy * http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git * GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2018 cnezsoft.com; Licensed MIT * Copyright (c) 2018 cnezsoft.com; Licensed MIT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册