@douyinfe/semi-ui 2.17.0-beta.1 → 2.17.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.
@@ -49749,7 +49749,10 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
49749
49749
  }
49750
49750
 
49751
49751
  isInGroup() {
49752
- return Boolean(this.context && this.context.checkboxGroup);
49752
+ // Why do we need to determine whether there is a value in props?
49753
+ // If there is no value in the props of the checkbox in the context of the checkboxGroup,
49754
+ // it will be considered not to belong to the checkboxGroup。
49755
+ return Boolean(this.context && this.context.checkboxGroup && 'value' in this.props);
49753
49756
  }
49754
49757
 
49755
49758
  focus() {
@@ -99309,23 +99312,20 @@ class foundation_TimePickerFoundation extends foundation {
99309
99312
  timeZone,
99310
99313
  __prevTimeZone
99311
99314
  } = props;
99315
+ let dates = this.parseValue(value);
99316
+ const invalid = this.validateDates(dates);
99312
99317
 
99313
- if (!isNullOrUndefined(value)) {
99314
- let dates = this.parseValue(value);
99315
- const invalid = this.validateDates(dates);
99316
-
99317
- if (!invalid) {
99318
- if (this.isValidTimeZone(timeZone)) {
99319
- dates = map_default()(dates).call(dates, date => date_fns_extra_utcToZonedTime(this.isValidTimeZone(__prevTimeZone) ? date_fns_extra_zonedTimeToUtc(date, __prevTimeZone) : date, timeZone));
99320
- }
99321
-
99322
- const inputValue = this.formatValue(dates);
99323
- this.setState({
99324
- value: dates,
99325
- invalid,
99326
- inputValue
99327
- });
99318
+ if (!invalid) {
99319
+ if (this.isValidTimeZone(timeZone)) {
99320
+ dates = map_default()(dates).call(dates, date => date_fns_extra_utcToZonedTime(this.isValidTimeZone(__prevTimeZone) ? date_fns_extra_zonedTimeToUtc(date, __prevTimeZone) : date, timeZone));
99328
99321
  }
99322
+
99323
+ const inputValue = this.formatValue(dates);
99324
+ this.setState({
99325
+ value: dates,
99326
+ invalid,
99327
+ inputValue
99328
+ });
99329
99329
  }
99330
99330
  }
99331
99331