File tree Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Expand file tree Collapse file tree 2 files changed +8
-23
lines changed Original file line number Diff line number Diff line change 2
2
<header >
3
3
<span
4
4
class =" prev"
5
- :class =" { disabled: isLeftNavDisabled }"
5
+ :class =" { disabled: isPreviousDisabled, rtl: isRtl }"
6
6
@click =" $emit('page-change', -1)"
7
7
>
8
8
<slot name =" prevIntervalBtn" >
12
12
<slot />
13
13
<span
14
14
class =" next"
15
- :class =" { disabled: isRightNavDisabled }"
15
+ :class =" { disabled: isNextDisabled, rtl: isRtl }"
16
16
@click =" $emit('page-change', 1)"
17
17
>
18
18
<slot name =" nextIntervalBtn" >
@@ -39,23 +39,5 @@ export default {
39
39
required: true ,
40
40
},
41
41
},
42
- computed: {
43
- /**
44
- * Is the left hand navigation button disabled?
45
- * @return {Boolean}
46
- */
47
- /* istanbul ignore next */
48
- isLeftNavDisabled () {
49
- return this .isRtl ? this .isNextDisabled : this .isPreviousDisabled
50
- },
51
- /**
52
- * Is the right hand navigation button disabled?
53
- * @return {Boolean}
54
- */
55
- /* istanbul ignore next */
56
- isRightNavDisabled () {
57
- return this .isRtl ? this .isPreviousDisabled : this .isNextDisabled
58
- },
59
- },
60
42
}
61
43
</script >
Original file line number Diff line number Diff line change 32
32
}
33
33
34
34
header {
35
- display : block ;
35
+ display : flex ;
36
+ justify-content : space-between ;
36
37
line-height : 40px ;
37
38
38
39
span {
39
40
display : inline-block ;
40
- float : left ;
41
41
text-align : center ;
42
42
width : 71.42857142857143% ;
43
43
}
44
44
45
45
.prev ,
46
46
.next {
47
- float : left ;
48
47
max-height : 40px ;
49
48
position : relative ;
50
49
width : 14.285714285714286% ;
61
60
transform : translateX (-50% ) translateY (-50% );
62
61
}
63
62
}
63
+
64
+ & .rtl {
65
+ transform : rotate (180deg );
66
+ }
64
67
}
65
68
66
69
.prev {
You can’t perform that action at this time.
0 commit comments