mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +08:00
[Improvement] Circle: optimzie linecap (#624)
This commit is contained in:
parent
c11c0bb4c7
commit
c2773b49a6
@ -52,7 +52,7 @@ export default create({
|
||||
},
|
||||
|
||||
beforeCreate() {
|
||||
this.perimeter = Math.PI * 1000;
|
||||
this.perimeter = 3140;
|
||||
this.path = 'M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0';
|
||||
},
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
&__layer {
|
||||
fill: none;
|
||||
stroke-linecap: round;
|
||||
stroke-dasharray: 3140;
|
||||
stroke-dashoffset: 3140;
|
||||
transform: rotate(90deg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user