Commit 724a607712a6184bb25bf2cce6fda47dcc324323
1 parent
6e1f8f40
update Progress style
Showing
2 changed files
with
24 additions
and
0 deletions
Show diff stats
examples/routers/progress.vue
| ... | ... | @@ -5,6 +5,12 @@ |
| 5 | 5 | <Progress vertical :percent="65" status="wrong"></Progress> |
| 6 | 6 | <Progress vertical :percent="100"></Progress> |
| 7 | 7 | <Progress vertical :percent="25" hide-info></Progress> |
| 8 | + | |
| 9 | + <Progress :percent="25"></Progress> | |
| 10 | + <Progress :percent="45" status="active"></Progress> | |
| 11 | + <Progress :percent="65" status="wrong"></Progress> | |
| 12 | + <Progress :percent="100"></Progress> | |
| 13 | + <Progress :percent="25" hide-info></Progress> | |
| 8 | 14 | </div> |
| 9 | 15 | </template> |
| 10 | 16 | <script> | ... | ... |
src/styles/components/progress.less
| ... | ... | @@ -89,6 +89,13 @@ |
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + &-vertical&-active{ | |
| 93 | + .@{progress-prefix-cls}-bg:before { | |
| 94 | + top: auto; | |
| 95 | + animation: ivu-progress-active-vertical 2s @ease-in-out infinite; | |
| 96 | + } | |
| 97 | + } | |
| 98 | + | |
| 92 | 99 | &-wrong { |
| 93 | 100 | .@{progress-prefix-cls}-bg { |
| 94 | 101 | background-color: @error-color; |
| ... | ... | @@ -118,3 +125,14 @@ |
| 118 | 125 | width: 100%; |
| 119 | 126 | } |
| 120 | 127 | } |
| 128 | + | |
| 129 | +@keyframes ivu-progress-active-vertical { | |
| 130 | + 0% { | |
| 131 | + opacity: .3; | |
| 132 | + height: 0; | |
| 133 | + } | |
| 134 | + 100% { | |
| 135 | + opacity: 0; | |
| 136 | + height: 100%; | |
| 137 | + } | |
| 138 | +} | ... | ... |