File tree Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,20 @@ Custom arrows display
11
11
``` html
12
12
<template >
13
13
<a-carousel arrows >
14
- <template slot =" prevArrow" slot-scope =" props" >
15
- <div
16
- class =" custom-slick-arrow"
17
- >
18
- <a-icon type =" left-square" />
19
- </div >
20
- </template >
21
- <template slot =" nextArrow" slot-scope =" props" >
22
- <div
23
- class =" custom-slick-arrow"
24
- style =" right : -20px "
25
- >
26
- <a-icon type =" right-square" />
27
- </div >
28
- </template >
14
+ <div
15
+ slot =" prevArrow" slot-scope =" props"
16
+ class =" custom-slick-arrow"
17
+ style =" left : 10px ;zIndex : 1 "
18
+ >
19
+ <a-icon type =" left-circle" />
20
+ </div >
21
+ <div
22
+ slot =" nextArrow" slot-scope =" props"
23
+ class =" custom-slick-arrow"
24
+ style =" right : 10px "
25
+ >
26
+ <a-icon type =" right-circle" />
27
+ </div >
29
28
<div ><h3 >1</h3 ></div >
30
29
<div ><h3 >2</h3 ></div >
31
30
<div ><h3 >3</h3 ></div >
@@ -46,16 +45,18 @@ export default {}
46
45
}
47
46
48
47
.ant-carousel >>> .custom-slick-arrow {
49
- display : block ;
48
+ width : 25px ;
49
+ height : 25px ;
50
50
font-size : 25px ;
51
- background : #fff ;
52
- color : #5d5959 ;
51
+ color : #fff ;
52
+ background-color : rgba (31 ,45 ,61 ,.11 );
53
+ opacity : 0.3 ;
53
54
}
54
55
.ant-carousel >>> .custom-slick-arrow :before {
55
56
display : none ;
56
57
}
57
58
.ant-carousel >>> .custom-slick-arrow :hover {
58
- color : #403d3d
59
+ opacity : 0.5 ;
59
60
}
60
61
61
62
.ant-carousel >>> .slick-slide h3 {
You can’t perform that action at this time.
0 commit comments