@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.
- package/Day.tsx +5 -4
- package/index.tsx +5 -0
- 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
|
-
?
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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);
|