File tree Expand file tree Collapse file tree 6 files changed +12
-1
lines changed Expand file tree Collapse file tree 6 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -170,3 +170,4 @@ You also can specify `type` attribute to `dashboard` to use dashboard progress b
170
170
| color | background color of progress bar. Overrides ` status ` prop | string/function/array | — | '' |
171
171
| width | the canvas width of circle progress bar | number | — | 126 |
172
172
| show-text | whether to show percentage | boolean | — | true |
173
+ | stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
Original file line number Diff line number Diff line change @@ -168,3 +168,4 @@ Puede utilizar el atributo `color` para establecer el color de la barra de progr
168
168
| color | color de fondo de la barra de progreso. Sobreescribe la propiedad ` status ` | string/function/array | — | '' |
169
169
| width | ancho del canvas que contiene la barra de progreso circula | number | — | 126 |
170
170
| show-text | mostrar porcentaje | boolean | — | true |
171
+ | stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
Original file line number Diff line number Diff line change @@ -171,3 +171,4 @@ Vous pouvez également spécifier l'attribut `type` de `dashboard` pour utiliser
171
171
| color | La couleur de fon de la barre. Écrase ` status ` . | string/function/array | — | '' |
172
172
| width | La largeur du canvas dans le cas d'une barre circulaire. | number | — | 126 |
173
173
| show-text | Si le pourcentage doit être affiché. | boolean | — | true |
174
+ | stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
Original file line number Diff line number Diff line change @@ -174,3 +174,4 @@ Progress 组件可通过 `type` 属性来指定使用环形进度条,在环形
174
174
| color | 进度条背景色(会覆盖 status 状态颜色) | string/function/array | — | '' |
175
175
| width | 环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用) | number | | 126 |
176
176
| show-text | 是否显示进度条文字内容 | boolean | — | true |
177
+ | stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round |
Original file line number Diff line number Diff line change 35
35
:d =" trackPath"
36
36
:stroke =" stroke"
37
37
fill =" none"
38
- stroke-linecap =" round "
38
+ : stroke-linecap =" strokeLinecap "
39
39
:stroke-width =" percentage ? relativeStrokeWidth : 0"
40
40
:style =" circlePathStyle" ></path >
41
41
</svg >
73
73
type: Number ,
74
74
default: 6
75
75
},
76
+ strokeLinecap: {
77
+ type: String ,
78
+ default: ' round'
79
+ },
76
80
textInside: {
77
81
type: Boolean ,
78
82
default: false
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ export declare class ElProgress extends ElementUIComponent {
14
14
/** The width of progress bar */
15
15
strokeWidth : number
16
16
17
+ /** Circle progress bar stroke line cap */
18
+ strokeLinecap : string
19
+
17
20
/** Whether to place the percentage inside progress bar, only works when type is 'line' */
18
21
textInside : boolean
19
22
You can’t perform that action at this time.
0 commit comments