mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[Improvement] Circle: optimzie linecap (#624)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user