File tree 3 files changed +10
-2
lines changed 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 38
38
<input type="checkbox" v-model="circles[3].loading" />
39
39
</div>-->
40
40
<div style =" border : 1px solid red ; display : inline-block " >
41
- <ve-progress :size =" 600" color-fill =" red" :progress =" progress" > </ve-progress >
41
+ <ve-progress :size =" 600" line-position =" out 80" :color-fill =" emptyColorFill" :progress =" progress" >
42
+ </ve-progress >
42
43
</div >
43
44
<ve-progress
44
45
dot =" 20 green"
Original file line number Diff line number Diff line change 31
31
<circle
32
32
class =" ep-circle--progress__fill"
33
33
:class =" animationClass"
34
- :r =" radius "
34
+ :r =" fillRadius "
35
35
:cx =" position"
36
36
:cy =" position"
37
37
:fill =" computedColorFill"
Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ export default {
32
32
radius ( ) {
33
33
return radius ( this . options ) ;
34
34
} ,
35
+ fillRadius ( ) {
36
+ const { offset, position } = this . options . linePosition ;
37
+ if ( position === "center" ) {
38
+ return this . radius ;
39
+ }
40
+ return position === "out" ? this . radius - offset - this . thickness / 2 : this . radius + this . thickness / 2 ;
41
+ } ,
35
42
emptyRadius ( ) {
36
43
return emptyRadius ( this . options ) ;
37
44
} ,
You can’t perform that action at this time.
0 commit comments