Commit 8738f4d30456c6074f2d89d5e3ffa13a61045939

Authored by Rijn
1 parent c1af3fac

added outside dots

src/components/carousel/carousel.vue
... ... @@ -101,7 +101,7 @@
101 101 dotsClasses () {
102 102 return [
103 103 `${prefixCls}-dots`,
104   - `${prefixCls}-arrow-${this.dots}`
  104 + `${prefixCls}-dots-${this.dots}`
105 105 ]
106 106 },
107 107 activeDot (n) {
... ...
src/styles/components/carousel.less
... ... @@ -105,11 +105,22 @@
105 105 &-dots {
106 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 118 display: block;
  119 + &-none {
  120 + display: none;
  121 + }
  122 +
  123 + list-style: none;
113 124  
114 125 text-align: center;
115 126  
... ...