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.cjs
CHANGED
@@ -4531,7 +4531,11 @@ var FileGridItem = function FileGridItem(props) {
|
|
4531
4531
|
var FilesTableView = function FilesTableView(props) {
|
4532
4532
|
var columns = props.columns,
|
4533
4533
|
_props$files4 = props.files,
|
4534
|
-
files = _props$files4 === void 0 ? [] : _props$files4
|
4534
|
+
files = _props$files4 === void 0 ? [] : _props$files4,
|
4535
|
+
onSelect = props.onSelect;
|
4536
|
+
function select(row) {
|
4537
|
+
if (onSelect) onSelect(row.id);
|
4538
|
+
}
|
4535
4539
|
var table = {
|
4536
4540
|
columns: columns ? columns : [{
|
4537
4541
|
id: "icon",
|
@@ -4547,7 +4551,9 @@ var FilesTableView = function FilesTableView(props) {
|
|
4547
4551
|
};
|
4548
4552
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
4549
4553
|
className: "files-table"
|
4550
|
-
}, /*#__PURE__*/React__default["default"].createElement(DataTable, table
|
4554
|
+
}, /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
|
4555
|
+
onRowSelection: select
|
4556
|
+
})));
|
4551
4557
|
};
|
4552
4558
|
|
4553
4559
|
/**
|