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.modern.js
CHANGED
@@ -4826,13 +4826,15 @@ var TableEditor = function TableEditor(props) {
|
|
4826
4826
|
|
4827
4827
|
function renderGroupLabel(groupName) {
|
4828
4828
|
var grouper = schema[groupBy];
|
4829
|
+
if (!groupName || !grouper) return "";
|
4829
4830
|
|
4830
4831
|
if (grouper.options) {
|
4831
4832
|
var options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options;
|
4832
4833
|
var option = options.find(function (option) {
|
4833
4834
|
return option.value === groupName;
|
4834
4835
|
});
|
4835
|
-
|
4836
|
+
console.log(groupName, options, option);
|
4837
|
+
return option ? option.label : groupName;
|
4836
4838
|
} else {
|
4837
4839
|
return groupName;
|
4838
4840
|
}
|
@@ -4907,8 +4909,8 @@ var TableEditor = function TableEditor(props) {
|
|
4907
4909
|
return /*#__PURE__*/React.createElement(Fragment, {
|
4908
4910
|
key: groupName
|
4909
4911
|
}, /*#__PURE__*/React.createElement(Header, {
|
4910
|
-
title: groupName
|
4911
|
-
},
|
4912
|
+
title: renderGroupLabel(groupName)
|
4913
|
+
}, /*#__PURE__*/React.createElement("span", {
|
4912
4914
|
className: "size"
|
4913
4915
|
}, groupSize)), /*#__PURE__*/React.createElement(DataTable, _extends({}, table, {
|
4914
4916
|
onRowSelection: select,
|