Commit 4fffb066ab4f4e70f5164195d2f982b0a544be46
1 parent
ade5dbba
update Spin style
Showing
2 changed files
with
13 additions
and
11 deletions
Show diff stats
examples/routers/spin.vue
| ... | ... | @@ -144,11 +144,11 @@ |
| 144 | 144 | |
| 145 | 145 | <style> |
| 146 | 146 | .demo-spin-article{ |
| 147 | - width: 400px; | |
| 148 | - height: 200px; | |
| 147 | + /*width: 400px;*/ | |
| 148 | + /*height: 200px;*/ | |
| 149 | 149 | padding: 10px; |
| 150 | 150 | position: relative; |
| 151 | - border: 1px solid #eee; | |
| 151 | + border: 1px solid red; | |
| 152 | 152 | text-align: center; |
| 153 | 153 | } |
| 154 | 154 | .demo-spin-article h3{ |
| ... | ... | @@ -174,7 +174,10 @@ |
| 174 | 174 | <p>三山半落青天外,二水中分白鹭洲。</p> |
| 175 | 175 | <p>总为浮云能蔽日,长安不见使人愁。</p> |
| 176 | 176 | </article> |
| 177 | - <Spin size="large" fix v-if="spinShow"></Spin> | |
| 177 | + <Spin size="large" fix v-if="spinShow"> | |
| 178 | + <!--<Icon type="load-c" size=18 class="demo-spin-icon-load"></Icon>--> | |
| 179 | + <!--<div>Loading</div>--> | |
| 180 | + </Spin> | |
| 178 | 181 | </div> |
| 179 | 182 | <br> |
| 180 | 183 | 切换显示状态:<i-switch @on-change="spinShow = !spinShow"></i-switch> | ... | ... |
src/styles/components/spin.less
| ... | ... | @@ -28,19 +28,18 @@ |
| 28 | 28 | &-fix { |
| 29 | 29 | position: absolute; |
| 30 | 30 | top: 0; |
| 31 | - bottom: 0; | |
| 32 | 31 | left: 0; |
| 33 | - right: 0; | |
| 34 | 32 | z-index: @zindex-spin; |
| 35 | - display: table; | |
| 36 | 33 | .square(100%); |
| 37 | - background-color: #fff; | |
| 34 | + background-color: rgba(255,255,255,.95); | |
| 38 | 35 | } |
| 39 | 36 | |
| 40 | 37 | &-fix &-main { |
| 41 | - display: table-cell; | |
| 42 | - vertical-align: middle; | |
| 43 | - .square(inherit); | |
| 38 | + position: absolute; | |
| 39 | + top: 50%; | |
| 40 | + left: 50%; | |
| 41 | + -ms-transform: translate(-50%, -50%); | |
| 42 | + transform: translate(-50%, -50%); | |
| 44 | 43 | } |
| 45 | 44 | |
| 46 | 45 | &-fix &-dot { | ... | ... |