ywana-core8 0.0.896 → 0.0.897
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,12 @@
|
|
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
|
+
console.log(id);
|
4531
|
+
if (onSelect) onSelect(row.id);
|
4532
|
+
}
|
4528
4533
|
var table = {
|
4529
4534
|
columns: columns ? columns : [{
|
4530
4535
|
id: "icon",
|
@@ -4540,7 +4545,9 @@
|
|
4540
4545
|
};
|
4541
4546
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
4542
4547
|
className: "files-table"
|
4543
|
-
}, /*#__PURE__*/React__default["default"].createElement(DataTable, table
|
4548
|
+
}, /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
|
4549
|
+
onRowSelection: select
|
4550
|
+
})));
|
4544
4551
|
};
|
4545
4552
|
|
4546
4553
|
/**
|