@douyinfe/semi-ui 2.19.0-alpha.0 → 2.19.0-alpha.1

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.
package/tree/treeNode.tsx CHANGED
@@ -220,8 +220,7 @@ export default class TreeNode extends PureComponent<TreeNodeProps, TreeNodeState
220
220
  );
221
221
  }
222
222
 
223
- renderCheckbox(options: { label: React.ReactNode; icon: React.ReactNode }) {
224
- const { label, icon } = options;
223
+ renderCheckbox() {
225
224
  const { checked, halfChecked, eventKey } = this.props;
226
225
  const disabled = this.isDisabled();
227
226
  return (
@@ -236,10 +235,7 @@ export default class TreeNode extends PureComponent<TreeNodeProps, TreeNodeState
236
235
  indeterminate={halfChecked}
237
236
  checked={checked}
238
237
  disabled={Boolean(disabled)}
239
- >
240
- {icon}
241
- {label}
242
- </Checkbox>
238
+ />
243
239
  </div>
244
240
  );
245
241
  }
@@ -413,8 +409,6 @@ export default class TreeNode extends PureComponent<TreeNodeProps, TreeNodeState
413
409
  });
414
410
  const setsize = get(rest, ['data', 'children', 'length']);
415
411
  const posinset = isString(rest.pos) ? Number(rest.pos.split('-')[level+1]) + 1 : 1;
416
- const label = this.renderRealLabel();
417
- const icon = this.renderIcon();
418
412
  return (
419
413
  <li
420
414
  className={nodeCls}
@@ -439,9 +433,9 @@ export default class TreeNode extends PureComponent<TreeNodeProps, TreeNodeState
439
433
  <span
440
434
  className={labelCls}
441
435
  >
442
- {multiple ? this.renderCheckbox({ label, icon }) : null}
443
- {!multiple && icon}
444
- {!multiple && <span className={`${prefixcls}-label-text`}>{label}</span> }
436
+ {multiple ? this.renderCheckbox() : null}
437
+ {this.renderIcon()}
438
+ <span className={`${prefixcls}-label-text`}>{this.renderRealLabel()}</span>
445
439
  </span>
446
440
  </li>
447
441
  );
package/webpack.config.js CHANGED
@@ -29,9 +29,7 @@ module.exports = function ({ minimize }) {
29
29
  test: /\.tsx?$/,
30
30
  include: [
31
31
  path.join(rootPath, 'packages/semi-ui'),
32
- path.join(rootPath, 'packages/semi-foundation'),
33
- path.join(rootPath, 'packages/semi-animation'),
34
- path.join(rootPath, 'packages/semi-animation-react')
32
+ path.join(rootPath, 'packages/semi-foundation')
35
33
  ],
36
34
  use: [
37
35
  {