ui-kit-ck-consultant 0.6.37 → 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 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -12
- 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
|
|
@@ -932,14 +933,8 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
932
933
|
return row.type.name === 'Tr';
|
933
934
|
});
|
934
935
|
|
935
|
-
console.log('tbody 1', bodyRow);
|
936
|
-
console.log('tbody 2', _this.getArray(bodyRow.props.children));
|
937
|
-
console.log('tbody 3', _this.getArray(bodyRow.props.children)[0]);
|
938
|
-
|
939
936
|
if (bodyRow) {
|
940
937
|
_this.getArray(bodyRow).forEach(function (row) {
|
941
|
-
console.log('1', row.props.children);
|
942
|
-
console.log('2', row.props.children[0]);
|
943
938
|
var body = row.props.children[0].map(function (th) {
|
944
939
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
945
940
|
}).join(';');
|