File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
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" line-position =" out 80" :color-fill =" emptyColorFill" :progress =" progress" >
41
+ <ve-progress
42
+ :size =" 600"
43
+ line-position =" out "
44
+ empty-line-position =" out"
45
+ :empty-color-fill =" emptyColorFill"
46
+ empty-color =" transparent"
47
+ :progress =" progress"
48
+ :no-data =" noData"
49
+ >
42
50
</ve-progress >
43
51
</div >
44
52
<ve-progress
Original file line number Diff line number Diff line change 7
7
transform: `rotate(${angle}deg)`,
8
8
}"
9
9
>
10
+ <circle
11
+ class =" ep-circle--empty__fill"
12
+ :r =" emptyFillRadius"
13
+ :cx =" position"
14
+ :cy =" position"
15
+ :fill =" computedEmptyColorFill"
16
+ :class =" { 'ep-circle--nodata': !dataIsAvailable }"
17
+ :style =" {
18
+ transitionDuration: animationDuration,
19
+ transitionTimingFunction: styles.transitionTimingFunction,
20
+ }"
21
+ >
22
+ </circle >
10
23
<circle
11
24
class =" ep-circle--empty"
12
25
:r =" emptyRadius"
13
26
:cx =" position"
14
27
:cy =" position"
15
28
:stroke =" computedEmptyColor"
16
29
:stroke-dasharray =" emptyDasharray"
17
- : fill =" computedEmptyColorFill "
30
+ fill =" transparent "
18
31
:class =" { 'ep-circle--nodata': !dataIsAvailable }"
19
32
:style =" {
20
33
transitionDuration: animationDuration,
30
43
</fade-in-transition >
31
44
<circle
32
45
class =" ep-circle--progress__fill"
33
- :class =" animationClass"
34
46
:r =" fillRadius"
35
47
:cx =" position"
36
48
:cy =" position"
37
49
:fill =" computedColorFill"
50
+ :class =" { 'ep-circle--nodata': !dataIsAvailable }"
38
51
:style =" { transition: styles.transition }"
39
52
>
40
53
</circle >
Original file line number Diff line number Diff line change @@ -42,6 +42,15 @@ export default {
42
42
emptyRadius ( ) {
43
43
return emptyRadius ( this . options ) ;
44
44
} ,
45
+ emptyFillRadius ( ) {
46
+ const { offset, position } = this . options . emptyLinePosition ;
47
+ if ( position === "center" ) {
48
+ return this . emptyRadius ;
49
+ }
50
+ return position === "out"
51
+ ? this . emptyRadius - offset - this . emptyThickness / 2
52
+ : this . emptyRadius + this . emptyThickness / 2 ;
53
+ } ,
45
54
46
55
dataIsAvailable ( ) {
47
56
return isValidNumber ( this . computedProgress ) && ! this . options . noData ;
You can’t perform that action at this time.
0 commit comments