ywana-core8 0.0.147 → 0.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -1091,7 +1091,9 @@ var DataTable = function DataTable(props) {
|
|
1091
1091
|
sortable = _ref.sortable;
|
1092
1092
|
return /*#__PURE__*/React.createElement("th", null, id === "checked" ? /*#__PURE__*/React.createElement(CheckBox, {
|
1093
1093
|
onChange: checkAll
|
1094
|
-
}) : /*#__PURE__*/React.createElement(Text,
|
1094
|
+
}) : /*#__PURE__*/React.createElement(Text, {
|
1095
|
+
key: "th_" + id
|
1096
|
+
}, label), sortable ? /*#__PURE__*/React.createElement(Icon, {
|
1095
1097
|
icon: "arrow_up",
|
1096
1098
|
size: "small",
|
1097
1099
|
clickable: true
|
@@ -1127,8 +1129,9 @@ var DataTableRow = function DataTableRow(props) {
|
|
1127
1129
|
onClick: function onClick(ev) {
|
1128
1130
|
return onSelect(row, ev);
|
1129
1131
|
}
|
1130
|
-
}, columns.map(function (column) {
|
1132
|
+
}, columns.map(function (column, index) {
|
1131
1133
|
return /*#__PURE__*/React.createElement(DataTableCell, {
|
1134
|
+
key: column.id + "_" + index,
|
1132
1135
|
row: row,
|
1133
1136
|
column: column,
|
1134
1137
|
cell: row[column.id],
|
@@ -1293,6 +1296,7 @@ var DataTableCell = function DataTableCell(_ref2) {
|
|
1293
1296
|
};
|
1294
1297
|
|
1295
1298
|
return /*#__PURE__*/React.createElement("td", {
|
1299
|
+
key: column.id,
|
1296
1300
|
className: column.id
|
1297
1301
|
}, render(column.type));
|
1298
1302
|
};
|