Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
0c31a0a4
Commit
0c31a0a4
authored
Oct 31, 2019
by
iamkun
Committed by
Zhi Cun
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Progress: add strokeLinecap prop (#17552)
* Progress: add strokeLinecap prop * update docs
parent
42e74d1d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
1 deletion
+12
-1
examples/docs/en-US/progress.md
examples/docs/en-US/progress.md
+1
-0
examples/docs/es/progress.md
examples/docs/es/progress.md
+1
-0
examples/docs/fr-FR/progress.md
examples/docs/fr-FR/progress.md
+1
-0
examples/docs/zh-CN/progress.md
examples/docs/zh-CN/progress.md
+1
-0
packages/progress/src/progress.vue
packages/progress/src/progress.vue
+5
-1
types/progress.d.ts
types/progress.d.ts
+3
-0
No files found.
examples/docs/en-US/progress.md
View file @
0c31a0a4
...
...
@@ -170,3 +170,4 @@ You also can specify `type` attribute to `dashboard` to use dashboard progress b
| color | background color of progress bar. Overrides
`status`
prop | string/function/array | — | '' |
| width | the canvas width of circle progress bar | number | — | 126 |
| show-text | whether to show percentage | boolean | — | true |
| stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
\ No newline at end of file
examples/docs/es/progress.md
View file @
0c31a0a4
...
...
@@ -168,3 +168,4 @@ Puede utilizar el atributo `color` para establecer el color de la barra de progr
| color | color de fondo de la barra de progreso. Sobreescribe la propiedad
`status`
| string/function/array | — | '' |
| width | ancho del canvas que contiene la barra de progreso circula | number | — | 126 |
| show-text | mostrar porcentaje | boolean | — | true |
| stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
\ No newline at end of file
examples/docs/fr-FR/progress.md
View file @
0c31a0a4
...
...
@@ -171,3 +171,4 @@ Vous pouvez également spécifier l'attribut `type` de `dashboard` pour utiliser
| color | La couleur de fon de la barre. Écrase
`status`
. | string/function/array | — | '' |
| width | La largeur du canvas dans le cas d'une barre circulaire. | number | — | 126 |
| show-text | Si le pourcentage doit être affiché. | boolean | — | true |
| stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
\ No newline at end of file
examples/docs/zh-CN/progress.md
View file @
0c31a0a4
...
...
@@ -174,3 +174,4 @@ Progress 组件可通过 `type` 属性来指定使用环形进度条,在环形
| color | 进度条背景色(会覆盖 status 状态颜色) | string/function/array | — | '' |
| width | 环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用) | number | | 126 |
| show-text | 是否显示进度条文字内容 | boolean | — | true |
| stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round |
\ No newline at end of file
packages/progress/src/progress.vue
View file @
0c31a0a4
...
...
@@ -35,7 +35,7 @@
:d=
"trackPath"
:stroke=
"stroke"
fill=
"none"
stroke-linecap=
"round
"
:stroke-linecap=
"strokeLinecap
"
:stroke-width=
"percentage ? relativeStrokeWidth : 0"
:style=
"circlePathStyle"
></path>
</svg>
...
...
@@ -73,6 +73,10 @@
type
:
Number
,
default
:
6
},
strokeLinecap
:
{
type
:
String
,
default
:
'
round
'
},
textInside
:
{
type
:
Boolean
,
default
:
false
...
...
types/progress.d.ts
View file @
0c31a0a4
...
...
@@ -14,6 +14,9 @@ export declare class ElProgress extends ElementUIComponent {
/** The width of progress bar */
strokeWidth
:
number
/** Circle progress bar stroke line cap */
strokeLinecap
:
string
/** Whether to place the percentage inside progress bar, only works when type is 'line' */
textInside
:
boolean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment