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