File tree 4 files changed +36
-13
lines changed
4 files changed +36
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @alauda/ui " : patch
3
+ ---
4
+
5
+ style: date picker panel row main axis between
Original file line number Diff line number Diff line change @@ -13,23 +13,35 @@ $block: aui-calendar-header;
13
13
& __nav-content {
14
14
flex : 1 ;
15
15
display : flex ;
16
+ flex-wrap : wrap ;
16
17
justify-content : center ;
17
18
align-items : center ;
18
19
font-size : use-var (font-size-l );
19
20
color : use-text-color (main );
20
21
font-weight : use-var (font-weight-bolder );
21
22
22
- a {
23
+ .separator {
24
+ margin : 0 use-var (spacing-s );
25
+ }
26
+
27
+ .aui-button--text {
23
28
color : use-text-color (main );
24
29
30
+ .aui-button__content {
31
+ font-size : use-var (font-size-l );
32
+ font-weight : use-var (font-weight-bolder );
33
+ padding : 0 ;
34
+ }
35
+
25
36
& :hover {
37
+ background-color : transparent ;
26
38
color : use-rgb (primary );
27
39
text-decoration : none !important ;
28
40
}
29
- }
30
41
31
- a + a {
32
- margin-left : 5px ;
42
+ + .aui-button--text {
43
+ margin-left : 0 ;
44
+ }
33
45
}
34
46
}
35
47
}
Original file line number Diff line number Diff line change 17
17
*ngIf ="dateNavRange === DateNavRange.Month "
18
18
[class] ="bem.element('nav-content') "
19
19
>
20
- < a
21
- href =" javascript:; "
20
+ < button
21
+ aui-button =" text "
22
22
(click) ="clickNav(DateNavRange.Year) "
23
23
>
24
24
{{ headerRange?.start?.year() }}{{ 'year_suffix' | auiI18n }}
25
- </ a >
26
- < a
27
- href ="javascript:; "
25
+ </ button >
26
+ < div class ="separator ">
27
+ < span *ngIf ="!('year_suffix' | auiI18n) && !('month_suffix' | auiI18n) ">
28
+ /
29
+ </ span >
30
+ </ div >
31
+ < button
32
+ aui-button ="text "
28
33
(click) ="clickNav(DateNavRange.Month) "
29
34
>
30
35
{{ headerRange?.start?.month() + 1 }}{{ 'month_suffix' | auiI18n }}
31
- </ a >
36
+ </ button >
32
37
</ span >
33
38
34
39
< span
35
40
*ngIf ="dateNavRange === DateNavRange.Year "
36
41
[class] ="bem.element('nav-content') "
37
42
>
38
- < a
39
- href =" javascript:; "
43
+ < button
44
+ aui-button =" text "
40
45
(click) ="clickNav(DateNavRange.Year) "
41
46
>
42
47
{{ headerRange?.start?.year() }}{{ 'year_suffix' | auiI18n }}
43
- </ a >
48
+ </ button >
44
49
</ span >
45
50
46
51
< span
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ $left-mask-shadow: -12px 0 0 0 use-rgb(popper-bg);
61
61
flex : 1 ;
62
62
display : flex ;
63
63
align-items : center ;
64
+ justify-content : space-between ;
64
65
@include text-set (m);
65
66
66
67
width : 100% ;
You can’t perform that action at this time.
0 commit comments