trepur_components 0.2.60 → 0.2.61
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.
|
@@ -100,7 +100,12 @@ const TextAndTitle = _ref => {
|
|
|
100
100
|
const destructChildren = children => {
|
|
101
101
|
let data = '';
|
|
102
102
|
children && children.map(child => {
|
|
103
|
-
|
|
103
|
+
const obj = JSON.parse(JSON.stringify(child));
|
|
104
|
+
console.log(obj);
|
|
105
|
+
obj.props.children[0].props.childen.map(item => {
|
|
106
|
+
console.log('item: ', item);
|
|
107
|
+
if (item.props) data += item.props.children;else data += item;
|
|
108
|
+
});
|
|
104
109
|
});
|
|
105
110
|
return data;
|
|
106
111
|
};
|