ywana-core8 0.0.234 → 0.0.238
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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -3
package/dist/index.umd.js
CHANGED
@@ -4830,13 +4830,15 @@
|
|
4830
4830
|
|
4831
4831
|
function renderGroupLabel(groupName) {
|
4832
4832
|
var grouper = schema[groupBy];
|
4833
|
+
if (!groupName || !grouper) return "";
|
4833
4834
|
|
4834
4835
|
if (grouper.options) {
|
4835
4836
|
var options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options;
|
4836
4837
|
var option = options.find(function (option) {
|
4837
4838
|
return option.value === groupName;
|
4838
4839
|
});
|
4839
|
-
|
4840
|
+
console.log(groupName, options, option);
|
4841
|
+
return option ? option.label : groupName;
|
4840
4842
|
} else {
|
4841
4843
|
return groupName;
|
4842
4844
|
}
|
@@ -4911,8 +4913,8 @@
|
|
4911
4913
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
|
4912
4914
|
key: groupName
|
4913
4915
|
}, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4914
|
-
title: groupName
|
4915
|
-
},
|
4916
|
+
title: renderGroupLabel(groupName)
|
4917
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
4916
4918
|
className: "size"
|
4917
4919
|
}, groupSize)), /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
|
4918
4920
|
onRowSelection: select,
|