Commit 8738f4d30456c6074f2d89d5e3ffa13a61045939
1 parent
c1af3fac
added outside dots
Showing
2 changed files
with
15 additions
and
4 deletions
Show diff stats
src/components/carousel/carousel.vue
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ | ||
101 | dotsClasses () { | 101 | dotsClasses () { |
102 | return [ | 102 | return [ |
103 | `${prefixCls}-dots`, | 103 | `${prefixCls}-dots`, |
104 | - `${prefixCls}-arrow-${this.dots}` | 104 | + `${prefixCls}-dots-${this.dots}` |
105 | ] | 105 | ] |
106 | }, | 106 | }, |
107 | activeDot (n) { | 107 | activeDot (n) { |
src/styles/components/carousel.less
@@ -105,11 +105,22 @@ | @@ -105,11 +105,22 @@ | ||
105 | &-dots { | 105 | &-dots { |
106 | @padding: 7px; | 106 | @padding: 7px; |
107 | 107 | ||
108 | - position: absolute; | ||
109 | - bottom: 10px - @padding; | 108 | + position: relative; |
109 | + &-inside { | ||
110 | + position: absolute; | ||
111 | + bottom: 10px - @padding; | ||
112 | + } | ||
113 | + | ||
114 | + &-outside { | ||
115 | + margin-top: 10px - @padding; | ||
116 | + } | ||
110 | 117 | ||
111 | - list-style: none; | ||
112 | display: block; | 118 | display: block; |
119 | + &-none { | ||
120 | + display: none; | ||
121 | + } | ||
122 | + | ||
123 | + list-style: none; | ||
113 | 124 | ||
114 | text-align: center; | 125 | text-align: center; |
115 | 126 |