File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { ExtractPropTypes , type PropType } from 'vue' ;
2
+ import type { CalendarDateType , DisabledScrollType , LangType } from './types' ;
3
+ import {
4
+ makeDateProp ,
5
+ makeNumberProp ,
6
+ makeStringProp ,
7
+ truthProp ,
8
+ } from './utils' ;
9
+
10
+ export const yearMonthPickerProps = {
11
+ minDate : makeDateProp ( null ) ,
12
+ maxDate : makeDateProp ( null ) ,
13
+ disabledDate : {
14
+ type : Function ,
15
+ default : ( ) => false ,
16
+ } ,
17
+ scrollChangeDate : truthProp ,
18
+ checkedDayClassName : makeStringProp < string > ( '' ) ,
19
+ notCurrentMonthDayClassName : makeStringProp < string > ( '' ) ,
20
+ disabledClassName : makeStringProp < string > ( '' ) ,
21
+ type : String ,
22
+ calendarTitleHeight : makeNumberProp ( 0 ) ,
23
+ calendarContentHeight : makeNumberProp ( 0 ) ,
24
+ disabledScroll : {
25
+ type : [ Boolean , String ] as PropType < DisabledScrollType > ,
26
+ default : ( ) => false ,
27
+ } ,
28
+ calendarDate : {
29
+ type : Object as PropType < CalendarDateType > ,
30
+ default : ( ) => ( { } ) ,
31
+ } ,
32
+ lang : makeStringProp < LangType > ( 'CN' ) ,
33
+ } ;
34
+
35
+ export type YearMonthPickerPropsType = ExtractPropTypes <
36
+ typeof yearMonthPickerProps
37
+ > ;
Original file line number Diff line number Diff line change 21
21
background : none ;
22
22
height : 710px ;
23
23
z-index : 1 ;
24
+
25
+ .calendar_content {
26
+ top : 0 ;
27
+ }
24
28
}
25
29
26
30
.calendar_content {
You can’t perform that action at this time.
0 commit comments