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