@momo-kits/calendar 0.121.0-rc.3 → 0.121.0-rc.4
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/CalendarPro.tsx +251 -340
- package/Day.tsx +113 -193
- package/LunarDateConverter.ts +14 -0
- package/Month.tsx +96 -93
- package/MonthList.tsx +199 -262
- package/TabHeader.tsx +3 -3
- package/Util.ts +27 -32
- package/index.tsx +266 -383
- package/package.json +1 -1
- package/types.ts +7 -6
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -5,8 +5,9 @@ export type Holidays = {
|
|
|
5
5
|
solar: object;
|
|
6
6
|
lunar: any[];
|
|
7
7
|
mixedLabel?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
label?: string;
|
|
9
|
+
day: number;
|
|
10
|
+
month: number;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export type PriceInfo = {
|
|
@@ -59,7 +60,7 @@ export type CalendarProState = {
|
|
|
59
60
|
|
|
60
61
|
export type DoubleDate = {
|
|
61
62
|
first: Moment.Moment;
|
|
62
|
-
second: Moment.Moment;
|
|
63
|
+
second: Moment.Moment | null;
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
export type CalendarProps = {
|
|
@@ -144,7 +145,7 @@ export type MonthListState = {
|
|
|
144
145
|
};
|
|
145
146
|
|
|
146
147
|
export type MonthListRef = {
|
|
147
|
-
scrollToMonth: () => void;
|
|
148
|
+
scrollToMonth: (date: Moment.Moment) => void;
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
export type MonthProps = {
|
|
@@ -163,10 +164,10 @@ export type MonthProps = {
|
|
|
163
164
|
|
|
164
165
|
export type DayProps = {
|
|
165
166
|
onChoose?: (date: Moment.Moment) => void;
|
|
166
|
-
date
|
|
167
|
+
date?: Moment.Moment;
|
|
167
168
|
minDate: Moment.Moment;
|
|
168
169
|
maxDate: Moment.Moment;
|
|
169
|
-
|
|
170
|
+
isEmpty?: boolean;
|
|
170
171
|
index: number;
|
|
171
172
|
isShowLunar: boolean;
|
|
172
173
|
isDoubleDateMode: boolean;
|