@momo-kits/calendar 0.79.6-beta.6 → 0.79.6-beta.7

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.
Files changed (3) hide show
  1. package/Day.tsx +5 -4
  2. package/index.tsx +5 -0
  3. package/package.json +1 -1
package/Day.tsx CHANGED
@@ -98,10 +98,11 @@ class Day extends Component<DayProps> {
98
98
  this.isLunarDayStart = this.lunarDate && this.lunarDate.lunarDay === 1;
99
99
  this.isSolarHoliday = isSolarHoliday;
100
100
  this.isInScope = isDoubleDateMode
101
- ? (tabSelected === 0 || tabSelected === 1) &&
102
- startDate &&
103
- date &&
104
- date.isSameOrAfter(startDate, 'day')
101
+ ? tabSelected === 0 ||
102
+ (tabSelected === 1 &&
103
+ startDate &&
104
+ date &&
105
+ date.isSameOrAfter(startDate, 'day'))
105
106
  : true;
106
107
 
107
108
  return this.isFocus || this.diffPrice;
package/index.tsx CHANGED
@@ -258,6 +258,11 @@ class Calendar extends Component<CalendarProps, CalendarState> {
258
258
  this.tabSelected = 1;
259
259
  this.cellHeader2.current?.setActiveTab(true);
260
260
  this.cellHeader1.current?.setActiveTab(false);
261
+ this.calendarPicker?.current?.setDoubleDateAndTabIndex(
262
+ this.doubleDate.first,
263
+ this.doubleDate.second,
264
+ this.tabSelected,
265
+ );
261
266
 
262
267
  if (onCTAStateChange) {
263
268
  onCTAStateChange(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/calendar",
3
- "version": "0.79.6-beta.6",
3
+ "version": "0.79.6-beta.7",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {