ywana-core8 0.0.619 → 0.0.620

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.
@@ -5947,18 +5947,20 @@ var CollectionTree = function CollectionTree(props) {
5947
5947
 
5948
5948
  if (!node) {
5949
5949
  var name = field[by];
5950
+ var title = field[by];
5950
5951
 
5951
5952
  if (options) {
5952
5953
  var opt = options.find(function (option) {
5953
5954
  return option.value === field[by];
5954
5955
  });
5955
- if (opt) name = opt.label;
5956
+ if (opt) title = opt.label;
5956
5957
  }
5957
5958
 
5958
5959
  node = {
5959
5960
  name: name,
5960
5961
  items: [],
5961
- field: by
5962
+ field: by,
5963
+ title: title
5962
5964
  };
5963
5965
  nodes.push(node);
5964
5966
  }
@@ -5979,7 +5981,7 @@ var CollectionTree = function CollectionTree(props) {
5979
5981
 
5980
5982
  function renderNodes(nodes) {
5981
5983
  return nodes.map(function (node) {
5982
- var title = typeof node.name === 'boolean' ? node.field + " = " + node.name : node.name;
5984
+ var title = typeof node.name === 'boolean' ? node.field + " = " + node.name : node.title;
5983
5985
  return /*#__PURE__*/React.createElement(TreeNode, {
5984
5986
  key: node.name,
5985
5987
  icon: null,