@douyinfe/semi-ui 2.13.0-beta.0 → 2.13.0

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.
@@ -412,13 +412,15 @@ class Cascader extends BaseComponent<CascaderProps, CascaderState> {
412
412
  realValue as SimpleValueType[][] :
413
413
  [realValue] as SimpleValueType[][];
414
414
  } else {
415
- normallizedValue = [[realValue]];
415
+ if (realValue !== undefined) {
416
+ normallizedValue = [[realValue]];
417
+ }
416
418
  }
417
419
  // formatValuePath is used to save value of valuePath
418
420
  const formatValuePath: (string | number)[][] = [];
419
421
  normallizedValue.forEach((valueItem: SimpleValueType[]) => {
420
422
  const formatItem: (string | number)[] = onChangeWithObject ?
421
- (valueItem as CascaderData[]).map(i => i.value) :
423
+ (valueItem as CascaderData[]).map(i => i?.value) :
422
424
  valueItem as (string | number)[];
423
425
  formatValuePath.push(formatItem);
424
426
  });
package/dist/css/semi.css CHANGED
@@ -12523,6 +12523,7 @@ body[theme-mode=dark], body .semi-always-dark {
12523
12523
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
12524
12524
  position: relative;
12525
12525
  margin: 80px auto;
12526
+ color: var(--semi-color-text-0);
12526
12527
  }
12527
12528
  .semi-modal-mask {
12528
12529
  position: fixed;
@@ -17479,6 +17480,7 @@ body[theme-mode=dark], body .semi-always-dark {
17479
17480
  .semi-tabs-pane {
17480
17481
  width: 100%;
17481
17482
  overflow: hidden;
17483
+ color: var(--semi-color-text-0);
17482
17484
  }
17483
17485
  .semi-tabs-pane:focus-visible {
17484
17486
  outline: 2px solid var(--semi-color-primary-light-active);
@@ -18232,6 +18234,12 @@ body[theme-mode=dark], body .semi-always-dark {
18232
18234
  border: 1px solid rgba(0, 0, 0, 0.1);
18233
18235
  border-radius: var(--semi-border-radius-medium);
18234
18236
  }
18237
+ .semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:first-of-type {
18238
+ border-radius: var(--semi-border-radius-medium) 0 0 var(--semi-border-radius-medium);
18239
+ }
18240
+ .semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:last-of-type {
18241
+ border-radius: 0 var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0;
18242
+ }
18235
18243
  .semi-timepicker-range-panel .semi-timepicker-lists > .semi-scrolllist:not(:last-child) .semi-scrolllist-body {
18236
18244
  border-right: 2px solid var(--semi-color-border);
18237
18245
  }
@@ -20390,12 +20398,26 @@ p.semi-typography-extended,
20390
20398
  line-height: 20px;
20391
20399
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
20392
20400
  margin-bottom: 4px;
20401
+ color: var(--semi-color-text-0);
20402
+ }
20403
+ .semi-upload-drag-area-main-text:hover {
20404
+ color: var(--semi-color-text-0);
20405
+ }
20406
+ .semi-upload-drag-area-main-text:active {
20407
+ color: var(--semi-color-text-0);
20393
20408
  }
20394
20409
  .semi-upload-drag-area-sub-text {
20395
20410
  cursor: pointer;
20396
20411
  font-size: 12px;
20397
20412
  line-height: 16px;
20398
20413
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
20414
+ color: var(--semi-color-text-0);
20415
+ }
20416
+ .semi-upload-drag-area-sub-text:hover {
20417
+ color: var(--semi-color-text-0);
20418
+ }
20419
+ .semi-upload-drag-area-sub-text:active {
20420
+ color: var(--semi-color-text-0);
20399
20421
  }
20400
20422
  .semi-upload-drag-area-tips {
20401
20423
  font-size: 12px;