ui-kit-ck-consultant 0.6.38 → 0.6.39
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.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -914,16 +914,17 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
914
914
|
});
|
915
915
|
|
916
916
|
if (thead) {
|
917
|
-
var headerRow = _this.getArray(thead.props.children).
|
917
|
+
var headerRow = _this.getArray(thead.props.children).filter(function (row) {
|
918
918
|
return row.type.name === 'Tr';
|
919
919
|
});
|
920
920
|
|
921
921
|
if (headerRow) {
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
922
|
+
_this.getArray(headerRow).forEach(function (row) {
|
923
|
+
var header = row.props.children[0].map(function (th) {
|
924
|
+
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
925
|
+
}).join(';');
|
926
|
+
dataCSV += header + '\n';
|
927
|
+
});
|
927
928
|
}
|
928
929
|
}
|
929
930
|
|
@@ -934,8 +935,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
934
935
|
|
935
936
|
if (bodyRow) {
|
936
937
|
_this.getArray(bodyRow).forEach(function (row) {
|
937
|
-
console.log('1', row.props.children);
|
938
|
-
console.log('2', row.props.children[0]);
|
939
938
|
var body = row.props.children[0].map(function (th) {
|
940
939
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
941
940
|
}).join(';');
|