ui-kit-ck-consultant 0.6.32 → 0.6.34
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 +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -916,10 +916,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
916
916
|
});
|
917
917
|
|
918
918
|
if (headerRow) {
|
919
|
-
console.log('headerRow 1', headerRow);
|
920
|
-
console.log('headerRow 2', _this.getArray(headerRow.props.children));
|
921
|
-
console.log('headerRow 3', _this.getArray(headerRow.props.children)[0]);
|
922
|
-
|
923
919
|
var headers = _this.getArray(headerRow.props.children)[0].props.children[0].map(function (th) {
|
924
920
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
925
921
|
}).join(';');
|
@@ -929,15 +925,21 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
929
925
|
}
|
930
926
|
|
931
927
|
if (tbody) {
|
932
|
-
_this.getArray(tbody.props.children).
|
933
|
-
|
934
|
-
var rowData = _this.getArray(row.props.children)[0].props.children[0].map(function (td) {
|
935
|
-
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
936
|
-
}).join(';');
|
937
|
-
|
938
|
-
dataCSV += rowData + '\n';
|
939
|
-
}
|
928
|
+
var bodyRow = _this.getArray(tbody.props.children).find(function (row) {
|
929
|
+
return row.type.name === 'Tr';
|
940
930
|
});
|
931
|
+
|
932
|
+
console.log('tbody 1', bodyRow);
|
933
|
+
console.log('tbody 2', _this.getArray(bodyRow.props.children));
|
934
|
+
console.log('tbody 3', _this.getArray(bodyRow.props.children)[0]);
|
935
|
+
|
936
|
+
if (bodyRow) {
|
937
|
+
var body = _this.getArray(bodyRow.props.children)[0].props.children[0].map(function (th) {
|
938
|
+
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
939
|
+
}).join(';');
|
940
|
+
|
941
|
+
dataCSV += body + '\n';
|
942
|
+
}
|
941
943
|
}
|
942
944
|
}
|
943
945
|
}
|