ywana-core8 0.0.896 → 0.0.898
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.umd.js
CHANGED
@@ -4524,7 +4524,11 @@
|
|
4524
4524
|
var FilesTableView = function FilesTableView(props) {
|
4525
4525
|
var columns = props.columns,
|
4526
4526
|
_props$files4 = props.files,
|
4527
|
-
files = _props$files4 === void 0 ? [] : _props$files4
|
4527
|
+
files = _props$files4 === void 0 ? [] : _props$files4,
|
4528
|
+
onSelect = props.onSelect;
|
4529
|
+
function select(row) {
|
4530
|
+
if (onSelect) onSelect(row.id);
|
4531
|
+
}
|
4528
4532
|
var table = {
|
4529
4533
|
columns: columns ? columns : [{
|
4530
4534
|
id: "icon",
|
@@ -4540,7 +4544,9 @@
|
|
4540
4544
|
};
|
4541
4545
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
4542
4546
|
className: "files-table"
|
4543
|
-
}, /*#__PURE__*/React__default["default"].createElement(DataTable, table
|
4547
|
+
}, /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
|
4548
|
+
onRowSelection: select
|
4549
|
+
})));
|
4544
4550
|
};
|
4545
4551
|
|
4546
4552
|
/**
|