@momo-kits/calendar 0.79.6-beta.4 → 0.79.6-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/Day.tsx +4 -5
- package/MonthList.tsx +0 -1
- package/index.tsx +4 -5
- package/package.json +1 -1
package/Day.tsx
CHANGED
|
@@ -98,11 +98,10 @@ 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 ||
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
date.isSameOrAfter(startDate, 'day'))
|
|
101
|
+
? (tabSelected === 0 || tabSelected === 1) &&
|
|
102
|
+
startDate &&
|
|
103
|
+
date &&
|
|
104
|
+
date.isSameOrAfter(startDate, 'day')
|
|
106
105
|
: true;
|
|
107
106
|
|
|
108
107
|
return this.isFocus || this.diffPrice;
|
package/MonthList.tsx
CHANGED
|
@@ -262,7 +262,6 @@ export default class MonthList extends Component<
|
|
|
262
262
|
onViewableItemsChanged={this.getCurrentVisibleMonth}
|
|
263
263
|
onScrollToIndexFailed={() => {}}
|
|
264
264
|
scrollEnabled
|
|
265
|
-
removeClippedSubviews
|
|
266
265
|
initialNumToRender={3}
|
|
267
266
|
maxToRenderPerBatch={MAX_RENDER_PER_BATCH}
|
|
268
267
|
windowSize={1}
|
package/index.tsx
CHANGED
|
@@ -254,11 +254,10 @@ class Calendar extends Component<CalendarProps, CalendarState> {
|
|
|
254
254
|
);
|
|
255
255
|
this.doubleDate.first = moment(this.selectedDate);
|
|
256
256
|
this.doubleDate.second = null;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
257
|
+
|
|
258
|
+
this.tabSelected = 1;
|
|
259
|
+
this.cellHeader2.current?.setActiveTab(true);
|
|
260
|
+
this.cellHeader1.current?.setActiveTab(false);
|
|
262
261
|
|
|
263
262
|
if (onCTAStateChange) {
|
|
264
263
|
onCTAStateChange(false);
|