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