yootd 0.2.8 → 0.2.9

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.
@@ -63,7 +63,6 @@ export var TreeInternal = /*#__PURE__*/forwardRef(function (_ref, ref) {
63
63
  notRequireSchool = _ref.notRequireSchool,
64
64
  titleRender = _ref.titleRender,
65
65
  props = _objectWithoutProperties(_ref, _excluded);
66
- console.log('props', props);
67
66
  var mb = useBem('tree');
68
67
  var _useState = useState([]),
69
68
  _useState2 = _slicedToArray(_useState, 2),
@@ -164,11 +163,12 @@ export var TreeInternal = /*#__PURE__*/forwardRef(function (_ref, ref) {
164
163
  key: item.key
165
164
  }, strTitle);
166
165
  if (item.children) {
167
- return {
168
- title: title,
166
+ return _objectSpread(_objectSpread({
167
+ title: title
168
+ }, item), {}, {
169
169
  key: item.key,
170
170
  children: loop(item.children)
171
- };
171
+ });
172
172
  }
173
173
  return _objectSpread(_objectSpread({
174
174
  title: title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "基于 Antd 二次开发的组件库",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",