@lemon-fe/components 1.5.7-alpha.6 → 1.5.7-alpha.8

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.
@@ -336,12 +336,10 @@
336
336
  }
337
337
 
338
338
  &-selected {
339
+ display: inline-flex;
340
+ gap: @space-h;
339
341
  margin-right: @padding-md;
340
342
  color: #333;
341
-
342
- a {
343
- margin-right: @space-h;
344
- }
345
343
  }
346
344
 
347
345
  &-group-rows {
@@ -12,5 +12,5 @@ declare const Modal: Pick<React.FC<AntdModalProps> & import("antd/lib/modal/conf
12
12
  useModal: typeof import("antd/lib/modal/useModal").default;
13
13
  destroyAll: () => void;
14
14
  config: typeof import("antd/lib/modal/confirm").modalGlobalConfig;
15
- }, "warning" | "error" | "success" | "info" | "warn" | "confirm" | "useModal" | "config" | "destroyAll"> & typeof LemonModal;
15
+ }, "success" | "error" | "warning" | "info" | "warn" | "confirm" | "useModal" | "config" | "destroyAll"> & typeof LemonModal;
16
16
  export default Modal;
@@ -106,6 +106,7 @@ export default function SiderTree(props) {
106
106
  var roots = [];
107
107
  mData.forEach(function (item) {
108
108
  var node = _objectSpread(_objectSpread({}, item), {}, {
109
+ children: [],
109
110
  data: item
110
111
  });
111
112
  nodesIndex.set(item.key, node);
@@ -126,7 +127,6 @@ export default function SiderTree(props) {
126
127
  if (node.parent !== undefined) {
127
128
  var parentNode = nodesIndex.get(node.parent);
128
129
  if (parentNode && (matchedNodes.has(parentNode) || filterKeepParents)) {
129
- parentNode.children = parentNode.children || [];
130
130
  parentNode.children.push(node);
131
131
  collectAncestors(parentNode);
132
132
  } else {
@@ -138,7 +138,6 @@ export default function SiderTree(props) {
138
138
  };
139
139
  var collectChildren = function collectChildren(node) {
140
140
  var children = childrenIndex.get(node.key) || [];
141
- node.children = node.children || [];
142
141
  children.forEach(function (child) {
143
142
  if (addedNodes.has(child.key)) {
144
143
  return;
@@ -9,7 +9,7 @@ export interface TreeData<T = string | number> extends Omit<DataNode, 'children'
9
9
 
10
10
  export type TreeNode<T> = Omit<TreeData<T>, 'title'> & {
11
11
  title?: ReactNode;
12
- children?: TreeNode<T>[];
12
+ children: TreeNode<T>[];
13
13
  data: TreeData<T>;
14
14
  };
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.5.7-alpha.6",
3
+ "version": "1.5.7-alpha.8",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "6d26b5ca998c1e9f0455db9dc97880d1aa147bac"
61
+ "gitHead": "fafc78ae4411ae9ae60eabeb3b82234b944d401a"
62
62
  }