@douyinfe/semi-ui 2.39.2-alpha.0 → 2.39.3

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.
@@ -85794,6 +85794,14 @@ class Tree extends BaseComponent {
85794
85794
  // Return a value that uniquely identifies this item.
85795
85795
  return item.key;
85796
85796
  };
85797
+ this.option = _ref2 => {
85798
+ let {
85799
+ index,
85800
+ style,
85801
+ data
85802
+ } = _ref2;
85803
+ return this.renderTreeNode(data[index], index, style);
85804
+ };
85797
85805
  this.state = {
85798
85806
  inputValue: '',
85799
85807
  keyEntities: {},
@@ -86052,11 +86060,11 @@ class Tree extends BaseComponent {
86052
86060
  updateState: states => {
86053
86061
  this.setState(Object.assign({}, states));
86054
86062
  },
86055
- notifyExpand: (expandedKeys, _ref2) => {
86063
+ notifyExpand: (expandedKeys, _ref3) => {
86056
86064
  let {
86057
86065
  expanded: bool,
86058
86066
  node
86059
- } = _ref2;
86067
+ } = _ref3;
86060
86068
  this.props.onExpand && this.props.onExpand([...expandedKeys], {
86061
86069
  expanded: bool,
86062
86070
  node
@@ -86157,14 +86165,6 @@ class Tree extends BaseComponent {
86157
86165
  renderTreeNode: this.renderTreeNode
86158
86166
  });
86159
86167
  }
86160
- const option = _ref3 => {
86161
- let {
86162
- index,
86163
- style,
86164
- data
86165
- } = _ref3;
86166
- return this.renderTreeNode(data[index], index, style);
86167
- };
86168
86168
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(AutoSizer, {
86169
86169
  defaultHeight: virtualize.height,
86170
86170
  defaultWidth: virtualize.width
@@ -86185,7 +86185,7 @@ class Tree extends BaseComponent {
86185
86185
  style: {
86186
86186
  direction
86187
86187
  }
86188
- }, option);
86188
+ }, this.option);
86189
86189
  });
86190
86190
  }
86191
86191
  render() {
@@ -88843,7 +88843,9 @@ class UploadFoundation extends foundation {
88843
88843
  });
88844
88844
  this._adapter.updateFileList(newFileList, () => {
88845
88845
  this._adapter.resetReplaceInput();
88846
- this.upload(newFileItem);
88846
+ if (!newFileItem._sizeInvalid) {
88847
+ this.upload(newFileItem);
88848
+ }
88847
88849
  });
88848
88850
  }
88849
88851
  buildFileItem(fileInstance, uploadTrigger) {