shineout 3.6.0-beta.5 → 3.6.0-beta.6

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/cjs/index.js CHANGED
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.6.0-beta.5'
510
+ version: '3.6.0-beta.6'
511
511
  };
package/dist/shineout.js CHANGED
@@ -4116,11 +4116,18 @@ const figma = [
4116
4116
  describe: '分割线',
4117
4117
  locked: false,
4118
4118
  },
4119
+ {
4120
+ name: '填充色',
4121
+ token: 'Neutral-fill-7',
4122
+ value: '#666C7C',
4123
+ describe: '',
4124
+ locked: true,
4125
+ },
4119
4126
  {
4120
4127
  name: '填充色',
4121
4128
  token: 'Neutral-fill-5',
4122
4129
  value: '#B3B7C1',
4123
- describe: '点击',
4130
+ describe: '',
4124
4131
  locked: true,
4125
4132
  },
4126
4133
  {
@@ -12115,7 +12122,7 @@ var handleStyle = function handleStyle(style) {
12115
12122
  };
12116
12123
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12117
12124
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12118
- /* harmony default export */ var version = ('3.6.0-beta.5');
12125
+ /* harmony default export */ var version = ('3.6.0-beta.6');
12119
12126
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12120
12127
 
12121
12128
 
@@ -12441,6 +12448,7 @@ var Token = {
12441
12448
  'Neutral-text-1': '#FFFFFF',
12442
12449
  'Neutral-border-2': '#CCCFD7',
12443
12450
  'Neutral-border-1': '#E8EBF0',
12451
+ 'Neutral-fill-7': '#666C7C',
12444
12452
  'Neutral-fill-5': '#B3B7C1',
12445
12453
  'Neutral-fill-9': '#141737',
12446
12454
  'Neutral-fill-10': '#020B18',
@@ -13359,7 +13367,8 @@ var checkboxTokens = {
13359
13367
 
13360
13368
  var collapseTokens = {
13361
13369
  collapseIconColor: 'Neutral-text-4',
13362
- collapseIconHoverBackgroundColor: 'Neutral-fill-3',
13370
+ collapseIconHoverBackgroundColor: 'Neutral-fill-2',
13371
+ collapseIconActiveBackgroundColor: 'Neutral-fill-3',
13363
13372
  collapseExtraMargin: 'Spacing-24',
13364
13373
  collapseWrapperBorderSize: 'Border-1',
13365
13374
  collapseWrapperBorderRadius: 'Radius-default',
@@ -13520,7 +13529,7 @@ var datePickerTokens = {
13520
13529
  var descriptionsTokens = {
13521
13530
  descriptionsTitlePaddingBottom: 'Spacing-12',
13522
13531
  descriptionsLabelPaddingBottom: 'Spacing-12',
13523
- descriptionsLabelPaddingRight: 'Spacing-24',
13532
+ descriptionsLabelPaddingRight: 'Spacing-8',
13524
13533
  descriptionsValuePaddingBottom: 'Spacing-12',
13525
13534
  descriptionsTitleSmallSize: 'Font-14',
13526
13535
  descriptionsTitleDefaultSize: 'Font-16',
@@ -15160,14 +15169,15 @@ var treeSelectTokens = {
15160
15169
  // This file was generated automatically by a script. Please do not modify it directly.
15161
15170
 
15162
15171
  var uploadTokens = {
15163
- uploadResultPaddingX: 'Spacing-16',
15172
+ uploadResultPaddingX: 'Spacing-12',
15164
15173
  uploadResultPaddingY: 'Spacing-5',
15165
15174
  uploadResultBackgroundColor: 'Neutral-fill-2',
15166
15175
  uploadResultGap: 'Spacing-4',
15167
15176
  uploadResultMarginY: 'Spacing-8',
15168
15177
  uploadResultIconSize: 'Size-7',
15169
- uploadResultIconColor: 'Neutral-text-4',
15170
- uploadResultIconHoverBackgroundColor: 'Neutral-fill-2',
15178
+ uploadResultIconColor: 'Neutral-text-5',
15179
+ uploadResultIconHoverBackgroundColor: 'Neutral-fill-3',
15180
+ uploadResultIconHoverColor: 'Brand-6',
15171
15181
  uploadResultFontSize: 'Font-14',
15172
15182
  uploadResultFontColor: 'Neutral-text-5',
15173
15183
  uploadResultBorderRadius: 'Radius-default',
@@ -15177,16 +15187,19 @@ var uploadTokens = {
15177
15187
  uploadResultDeletedFontColor: 'Neutral-text-3',
15178
15188
  uploadResultUploadingIconColor: 'Brand-6',
15179
15189
  uploadImageBorderRadius: 'Radius-default',
15180
- uploadImageHandlerBorderColor: 'Neutral-border-1',
15190
+ uploadImageHandlerBorderColor: 'Neutral-border-2',
15181
15191
  uploadImageHandlerBackgroundColor: 'Neutral-fill-1',
15182
15192
  uploadImageHandlerFontColor: 'Neutral-text-4',
15183
15193
  uploadImageHandlerHoverBorderColor: 'Brand-6',
15184
15194
  uploadImageHandlerHoverFontColor: 'Brand-6',
15195
+ uploadImageHandlerActiveBorderColor: 'Brand-7',
15196
+ uploadImageHandlerActiveFontColor: 'Brand-7',
15185
15197
  uploadImageHandlerErrorBorderColor: 'Danger-6',
15186
15198
  uploadImageHandlerErrorFontColor: 'Danger-6',
15187
15199
  uploadImageHandlerDisabledBorderColor: 'Neutral-border-2',
15188
15200
  uploadImageHandlerDisabledBackgroundColor: 'Neutral-fill-2',
15189
15201
  uploadImageHandlerDisabledFontColor: 'Neutral-text-2',
15202
+ uploadImageHandlerIconColor: 'Neutral-text-3',
15190
15203
  uploadImageResultBorderColor: 'Neutral-border-1',
15191
15204
  uploadImageResultBtnSize: 'Size-7',
15192
15205
  uploadImageResultBtnCloseColor: 'Danger-6',
@@ -17662,7 +17675,6 @@ var collapseItemStyle = {
17662
17675
  justifyContent: 'space-between',
17663
17676
  boxSizing: 'border-box',
17664
17677
  overflow: 'hidden',
17665
- gap: src.collapseHeaderGap,
17666
17678
  fontSize: src.collapseHeaderFontSize,
17667
17679
  fontWeight: src.collapseHeaderFontWeight,
17668
17680
  color: src.collapseHeaderColor,
@@ -17702,6 +17714,7 @@ var collapseItemStyle = {
17702
17714
  color: src.collapseIconColor,
17703
17715
  lineHeight: src.lineHeightDynamic,
17704
17716
  zIndex: 0,
17717
+ marginRight: src.collapseHeaderGap,
17705
17718
  '& svg': {
17706
17719
  zIndex: 1,
17707
17720
  width: src.collapseHeaderIconWidth
@@ -17719,6 +17732,11 @@ var collapseItemStyle = {
17719
17732
  borderRadius: '50%',
17720
17733
  background: src.collapseIconHoverBackgroundColor
17721
17734
  }
17735
+ },
17736
+ '&:active:hover': {
17737
+ '&:after': {
17738
+ background: src.collapseIconActiveBackgroundColor
17739
+ }
17722
17740
  }
17723
17741
  },
17724
17742
  title: {
@@ -18882,6 +18900,10 @@ var dropdown_dropdown = {
18882
18900
  minWidth: '0',
18883
18901
  '& + $caret': {
18884
18902
  marginLeft: src.dropdownCaretMarginLeft
18903
+ },
18904
+ '& > svg': {
18905
+ display: 'block',
18906
+ margin: '0 auto'
18885
18907
  }
18886
18908
  },
18887
18909
  button: {
@@ -24566,7 +24588,7 @@ var stepsStyle = {
24566
24588
  overflow: 'hidden'
24567
24589
  },
24568
24590
  '& $icon': {
24569
- marginRight: 12
24591
+ marginRight: 16
24570
24592
  },
24571
24593
  '& $title, $description': {
24572
24594
  textAlign: 'left'
@@ -24696,11 +24718,13 @@ var stepsStyle = {
24696
24718
  },
24697
24719
  '& $icon': {
24698
24720
  lineHeight: 0,
24721
+ marginRight: 6,
24699
24722
  padding: '8px 10px'
24700
24723
  },
24701
24724
  '& $process': {
24702
24725
  '& $icon': {
24703
24726
  marginTop: 0,
24727
+ marginRight: 8,
24704
24728
  padding: '7px 8px'
24705
24729
  },
24706
24730
  '& $tail': {
@@ -26715,6 +26739,8 @@ var TagStyle = {
26715
26739
  rootClass: {},
26716
26740
  tag: {
26717
26741
  display: 'inline-flex',
26742
+ // 消除 inline-flex 看不见的空白高度
26743
+ verticalAlign: 'top',
26718
26744
  padding: "".concat(src.tagPaddingY, " ").concat(src.tagPaddingX),
26719
26745
  fontSize: src.tagFontSize,
26720
26746
  fontWeight: src.tagFontWeight,
@@ -26726,11 +26752,25 @@ var TagStyle = {
26726
26752
  }
26727
26753
  },
26728
26754
  input: {
26729
- '&[data-soui-input-border]': {
26730
- width: 100,
26731
- '& input': {
26732
- padding: "0 ".concat(src.tagInputPaddingX)
26733
- }
26755
+ paddingLeft: '0 !important',
26756
+ paddingRight: '0 !important',
26757
+ width: 100,
26758
+ '& > div': {
26759
+ padding: '0 !important'
26760
+ },
26761
+ '& > div > input': {
26762
+ fontSize: src.tagFontSize,
26763
+ padding: "0 ".concat(src.tagPaddingX),
26764
+ lineHeight: "calc(".concat(src.tagFontSize, " + 8px)")
26765
+ },
26766
+ '$small& > div > input': {
26767
+ padding: "0 ".concat(src.tagSmallPaddingX),
26768
+ lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
26769
+ },
26770
+ '$large& > div > input': {
26771
+ fontSize: src.tagLargeFontSize,
26772
+ padding: "0 ".concat(src.tagLargePaddingX),
26773
+ lineHeight: "calc(".concat(src.tagLargeFontSize, " + 8px)")
26734
26774
  }
26735
26775
  },
26736
26776
  wrapper: {
@@ -28105,11 +28145,11 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28105
28145
  // },
28106
28146
  },
28107
28147
  optionActive: {
28108
- color: src.treeSelectOptionActiveColor,
28109
- backgroundColor: src.treeSelectOptionActiveBackgroundColor,
28110
- '&>div': {
28111
- color: src.treeSelectOptionActiveColor
28112
- }
28148
+ // color: token.treeSelectOptionActiveColor,
28149
+ // backgroundColor: token.treeSelectOptionActiveBackgroundColor,
28150
+ // '&>div': {
28151
+ // color: token.treeSelectOptionActiveColor,
28152
+ // },
28113
28153
  },
28114
28154
  optionDisabled: {
28115
28155
  cursor: 'not-allowed',
@@ -28222,7 +28262,7 @@ var uploadStyle = {
28222
28262
  border: "1px dashed ".concat(src.uploadImageHandlerBorderColor),
28223
28263
  backgroundColor: src.uploadImageHandlerBackgroundColor,
28224
28264
  color: src.uploadImageHandlerFontColor,
28225
- '&:hover': {
28265
+ '&:hover, &:hover *': {
28226
28266
  borderColor: src.uploadImageHandlerHoverBorderColor,
28227
28267
  color: src.uploadImageHandlerHoverFontColor
28228
28268
  },
@@ -28233,14 +28273,28 @@ var uploadStyle = {
28233
28273
  },
28234
28274
  '& svg': {
28235
28275
  color: src.uploadImageResultBtnRecoverColor
28276
+ },
28277
+ '&:active': {
28278
+ color: src.uploadImageHandlerActiveFontColor,
28279
+ borderColor: src.uploadImageHandlerActiveBorderColor
28280
+ },
28281
+ '&:active *': {
28282
+ color: src.uploadImageHandlerActiveFontColor
28236
28283
  }
28237
28284
  }
28238
28285
  },
28239
28286
  result: {
28240
28287
  display: 'flex',
28241
28288
  alignItems: 'center',
28242
- marginTop: src.uploadResultMarginY,
28243
- gap: src.uploadResultGap
28289
+ gap: '8px',
28290
+ borderRadius: src.uploadResultBorderRadius,
28291
+ padding: "".concat(src.uploadResultPaddingY, " ").concat(src.uploadResultPaddingX),
28292
+ '&:hover': {
28293
+ backgroundColor: src.uploadResultBackgroundColor
28294
+ },
28295
+ '$handler+&, $dropItem+&': {
28296
+ marginTop: src.uploadResultMarginY
28297
+ }
28244
28298
  },
28245
28299
  icon: {
28246
28300
  width: src.uploadResultIconSize,
@@ -28256,25 +28310,10 @@ var uploadStyle = {
28256
28310
  }
28257
28311
  },
28258
28312
  iconHover: {
28259
- position: 'relative',
28260
- '&::before': {
28261
- content: '""',
28262
- position: 'absolute',
28263
- top: '-5px',
28264
- left: '-5px',
28265
- right: '-5px',
28266
- bottom: '-5px',
28313
+ '&:hover': {
28314
+ color: src.uploadResultIconHoverColor,
28267
28315
  borderRadius: '50%',
28268
- display: 'none',
28269
28316
  backgroundColor: src.uploadResultIconHoverBackgroundColor
28270
- },
28271
- '& svg': {
28272
- position: 'relative'
28273
- },
28274
- '&:hover': {
28275
- '&::before': {
28276
- display: 'block'
28277
- }
28278
28317
  }
28279
28318
  },
28280
28319
  resultError: {},
@@ -28302,17 +28341,12 @@ var uploadStyle = {
28302
28341
  fontSize: src.uploadResultFontSize,
28303
28342
  color: src.uploadResultFontColor,
28304
28343
  lineHeight: src.lineHeightDynamic,
28305
- padding: "".concat(src.uploadResultPaddingY, " ").concat(src.uploadResultPaddingX),
28306
- borderRadius: src.uploadResultBorderRadius,
28307
28344
  '$resultError &': {
28308
28345
  color: src.uploadResultErrorFontColor
28309
28346
  },
28310
28347
  '$resultDeleted &': {
28311
28348
  textDecoration: 'line-through',
28312
28349
  color: src.uploadResultDeletedFontColor
28313
- },
28314
- '&:hover': {
28315
- backgroundColor: src.uploadResultBackgroundColor
28316
28350
  }
28317
28351
  },
28318
28352
  resultTextBody: {
@@ -28321,7 +28355,11 @@ var uploadStyle = {
28321
28355
  },
28322
28356
  resultClose: {
28323
28357
  cursor: 'pointer',
28324
- margin: '0 6px'
28358
+ '&$icon': {
28359
+ boxSizing: 'content-box',
28360
+ padding: '0 4px',
28361
+ height: src.lineHeightDynamic
28362
+ }
28325
28363
  },
28326
28364
  imageHandler: {
28327
28365
  boxSizing: 'border-box',
@@ -28338,6 +28376,13 @@ var uploadStyle = {
28338
28376
  borderColor: src.uploadImageHandlerHoverBorderColor,
28339
28377
  color: src.uploadImageHandlerHoverFontColor
28340
28378
  },
28379
+ '$wrapper:not($wrapperDisabled) &:hover *': {
28380
+ color: "".concat(src.uploadImageHandlerHoverFontColor, " !important")
28381
+ },
28382
+ '$wrapper:not($wrapperDisabled) &:active, $wrapper:not($wrapperDisabled) &:active *': {
28383
+ color: "".concat(src.uploadImageHandlerActiveFontColor, " !important"),
28384
+ borderColor: src.uploadImageHandlerActiveBorderColor
28385
+ },
28341
28386
  '$wrapperDisabled &': {
28342
28387
  borderColor: src.uploadImageHandlerDisabledBorderColor,
28343
28388
  backgroundColor: src.uploadImageHandlerDisabledBackgroundColor,
@@ -28347,9 +28392,13 @@ var uploadStyle = {
28347
28392
  imageHandlerIcon: {
28348
28393
  display: 'flex',
28349
28394
  alignItems: 'center',
28395
+ color: src.uploadImageHandlerIconColor,
28350
28396
  '& > svg': {
28351
28397
  width: 20,
28352
28398
  height: 20
28399
+ },
28400
+ '$wrapperDisabled &': {
28401
+ color: src.uploadImageHandlerDisabledFontColor
28353
28402
  }
28354
28403
  },
28355
28404
  imageResult: {
@@ -28487,10 +28536,20 @@ var uploadStyle = {
28487
28536
  dropItem: {
28488
28537
  ':not(wrapperDisabled) &[data-soui-dragover="true"]': {
28489
28538
  '& $handler, & $imageHandler, & $imageResult': {
28490
- borderColor: src.uploadImageHandlerHoverBorderColor,
28491
- borderStyle: 'dashed',
28492
- borderWidth: '2px',
28539
+ borderColor: 'transparent !important',
28540
+ color: src.uploadImageHandlerHoverFontColor,
28541
+ position: 'relative'
28542
+ },
28543
+ '& $handler *, & $imageHandler *, & $imageResult *': {
28493
28544
  color: src.uploadImageHandlerHoverFontColor
28545
+ },
28546
+ '& $handler:after, & $imageHandler:after, & $imageResult:after': {
28547
+ content: '" "',
28548
+ position: 'absolute',
28549
+ inset: 0,
28550
+ pointerEvents: 'none',
28551
+ border: "2px dashed ".concat(src.uploadImageHandlerHoverBorderColor),
28552
+ borderRadius: src.uploadImageBorderRadius
28494
28553
  }
28495
28554
  }
28496
28555
  },
@@ -29991,9 +30050,6 @@ var usePositionStyle = function usePositionStyle(config) {
29991
30050
  };
29992
30051
  context.containerRect = containerRect;
29993
30052
  context.containerScroll = containerScroll;
29994
- console.log('======================');
29995
- console.log('targetPosition: >>', targetPosition);
29996
- console.log('======================');
29997
30053
  if (verticalPosition.includes(targetPosition)) {
29998
30054
  var _targetPosition$split = targetPosition.split('-'),
29999
30055
  _targetPosition$split2 = slicedToArray_default()(_targetPosition$split, 2),
@@ -33959,9 +34015,10 @@ var useCheckboxInputable = function useCheckboxInputable(props) {
33959
34015
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
33960
34016
  setCheckedState(!!props.value);
33961
34017
  }, [props.value]);
33962
- var onInputableCheckboxChange = function onInputableCheckboxChange(c) {
34018
+ var onInputableCheckboxChange = function onInputableCheckboxChange(c, ignoreOnChange) {
33963
34019
  var _props$onChange;
33964
34020
  setCheckedState(c);
34021
+ if (ignoreOnChange) return;
33965
34022
  props === null || props === void 0 || (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, undefined, c, undefined);
33966
34023
  };
33967
34024
  var onInputChange = function onInputChange(_value) {
@@ -35340,7 +35397,7 @@ var checkbox_Checkbox = function Checkbox(props) {
35340
35397
 
35341
35398
  // 兼容Checkbox在createPortal中使用时,无法改变勾选状态的问题
35342
35399
  if ('value' in props && props.checked === undefined) {
35343
- onInputableCheckboxChange(checked);
35400
+ onInputableCheckboxChange(checked, true);
35344
35401
  }
35345
35402
  if (props.onRawChange) {
35346
35403
  props.onRawChange(checked ? htmlValue : undefined, checked, htmlValue);
@@ -37440,6 +37497,7 @@ function use_tree_toArray(value) {
37440
37497
  if (!Array.isArray(value)) return [value];
37441
37498
  return value;
37442
37499
  }
37500
+ var global_tree_map = new Map();
37443
37501
  var MODE = {
37444
37502
  /**
37445
37503
  * 返回全选数据,包含父节点和子节点
@@ -39359,6 +39417,7 @@ var useTag = function useTag(props) {
39359
39417
 
39360
39418
 
39361
39419
 
39420
+
39362
39421
  var TagInput = function TagInput(props) {
39363
39422
  var _jssStyle$tag;
39364
39423
  var value = props.value,
@@ -39399,7 +39458,7 @@ var TagInput = function TagInput(props) {
39399
39458
  size: size,
39400
39459
  style: style,
39401
39460
  inputRef: inputRef,
39402
- className: classnames_default()(tagStyle.input),
39461
+ className: classnames_default()(tagStyle.input, defineProperty_default()(defineProperty_default()({}, tagStyle.small, size === 'small'), tagStyle.large, size === 'large')),
39403
39462
  jssStyle: jssStyle,
39404
39463
  onKeyUp: handleKeyUp,
39405
39464
  onChange: handleChange,
@@ -39494,6 +39553,7 @@ var Tag = function Tag(props) {
39494
39553
  };
39495
39554
  var renderInput = function renderInput() {
39496
39555
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tag_input, {
39556
+ size: size,
39497
39557
  value: value,
39498
39558
  className: classnames_default()(tagStyle.input),
39499
39559
  jssStyle: jssStyle,
@@ -40451,7 +40511,7 @@ var Cascader = function Cascader(props0) {
40451
40511
  });
40452
40512
  var renderClearable = function renderClearable() {
40453
40513
  if (!mode !== undefined && !showArrow) return null;
40454
- var defaultIcon = compressed ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
40514
+ var defaultIcon = compressed || multiple ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
40455
40515
  var arrow = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
40456
40516
  className: classnames_default()(compressed && styles.compressedIcon, styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
40457
40517
  onClick: handleResultClick,
@@ -42234,6 +42294,7 @@ var CollapseItem = function CollapseItem(props) {
42234
42294
  }, getHeaderIconProps({
42235
42295
  className: collapseItemIconClassName
42236
42296
  })), {}, {
42297
+ role: "button",
42237
42298
  children: headerIcon
42238
42299
  }));
42239
42300
  };
@@ -42245,7 +42306,7 @@ var CollapseItem = function CollapseItem(props) {
42245
42306
  }));
42246
42307
  };
42247
42308
  var collapseItemClassName = classnames_default()(className, jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.wrapper, judgeExpanded && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.active), (disabled || triggerRegion === 'disabled') && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.disabled), !border && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.borderLess));
42248
- var collapseItemHeaderClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.header, !showExpandIcon && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.noIcon), !triggerRegion && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.region));
42309
+ var collapseItemHeaderClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.header, !showExpandIcon && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.noIcon), triggerRegion !== 'icon' && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.region));
42249
42310
  var collapseItemContentClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.content, judgeExpanded && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.expanded));
42250
42311
  var renderContent = function renderContent() {
42251
42312
  return /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
@@ -47392,7 +47453,8 @@ var Dropdown = function Dropdown(props) {
47392
47453
  var type = props.type,
47393
47454
  text = props.text,
47394
47455
  outline = props.outline,
47395
- mode = props.mode;
47456
+ mode = props.mode,
47457
+ shape = props.shape;
47396
47458
 
47397
47459
  // 默认使用 secondary text 样式
47398
47460
  if (type === undefined && text === undefined && outline === undefined && mode === undefined) {
@@ -47436,6 +47498,7 @@ var Dropdown = function Dropdown(props) {
47436
47498
  className: classnames_default()(dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.button, !placeholder && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.splitButton)),
47437
47499
  mode: mode,
47438
47500
  type: type,
47501
+ shape: shape,
47439
47502
  size: size,
47440
47503
  text: text,
47441
47504
  children: child
@@ -56428,6 +56491,7 @@ var MenuItem = function MenuItem(props) {
56428
56491
  _useState2 = slicedToArray_default()(_useState, 2),
56429
56492
  popOpen = _useState2[0],
56430
56493
  setOpen = _useState2[1];
56494
+ var liRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
56431
56495
  var hasExpandAbleChildren = children.some(function (item) {
56432
56496
  return item && item.children && (props.looseChildren || item.children.length);
56433
56497
  });
@@ -56502,6 +56566,10 @@ var MenuItem = function MenuItem(props) {
56502
56566
  };
56503
56567
  if (shoudPop) {
56504
56568
  var position = isVertical || isSubHorizontal ? isUp ? 'right-bottom' : 'right-top' : 'bottom';
56569
+ var offset = isVertical && props.isEdgeItem ? [0, 4] : undefined;
56570
+ var popoverContentStyle = props.level === 0 && liRef.current ? {
56571
+ minWidth: liRef.current.clientWidth
56572
+ } : undefined;
56505
56573
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
56506
56574
  mouseLeaveDelay: toggleDuration,
56507
56575
  className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.popover),
@@ -56515,7 +56583,8 @@ var MenuItem = function MenuItem(props) {
56515
56583
  showArrow: mode !== 'horizontal',
56516
56584
  position: position,
56517
56585
  lazy: false,
56518
- offset: isVertical && props.isEdgeItem ? [0, 4] : undefined,
56586
+ offset: offset,
56587
+ style: popoverContentStyle,
56519
56588
  children: function children(close) {
56520
56589
  return content(close);
56521
56590
  }
@@ -56602,6 +56671,7 @@ var MenuItem = function MenuItem(props) {
56602
56671
  onMouseEnter: handleMouseEnter,
56603
56672
  onMouseLeave: handleMouseLeave,
56604
56673
  dir: config.direction,
56674
+ ref: liRef,
56605
56675
  children: [renderItem(), renderChildren()]
56606
56676
  });
56607
56677
  };
@@ -65773,7 +65843,7 @@ var upload_result_Result = function Result(props) {
65773
65843
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageBg,
65774
65844
  src: src,
65775
65845
  jssStyle: props.jssStyle,
65776
- fit: "center",
65846
+ fit: "fill",
65777
65847
  width: "auto",
65778
65848
  height: 0
65779
65849
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@@ -65967,6 +66037,7 @@ var Upload = function Upload(props0) {
65967
66037
  className: classnames_default()(listType === 'image' ? uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageHandler : uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.handler),
65968
66038
  style: listType === 'image' ? imageStyle : undefined
65969
66039
  }, wrapperProps), {}, {
66040
+ role: "button",
65970
66041
  children: [listType === 'image' && (props.children || /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
65971
66042
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageHandlerIcon,
65972
66043
  children: icons_config.upload.AddImage
@@ -68643,7 +68714,7 @@ var upload_interface = __webpack_require__(8821);
68643
68714
 
68644
68715
 
68645
68716
  /* harmony default export */ var src_0 = ({
68646
- version: '3.6.0-beta.5'
68717
+ version: '3.6.0-beta.6'
68647
68718
  });
68648
68719
  }();
68649
68720
  /******/ return __webpack_exports__;