-
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(progress): support linear gradient color when mode is circle
- Loading branch information
binbin
authored and
binbin
committed
Sep 15, 2023
1 parent
499cd46
commit d215967
Showing
8 changed files
with
117 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/varlet-ui/src/progress/__tests__/__snapshots__/index.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`test progress component props > test circle progress color 1`] = ` | ||
"<div class=\\"var-progress\\"> | ||
<!--v-if--> | ||
<div class=\\"var-progress__circle\\" style=\\"width: 40px; height: 40px;\\"><svg class=\\"var-progress__circle-svg\\" style=\\"transform: rotate(-90deg);\\" viewBox=\\"0 0 44.44444444444444 44.44444444444444\\"> | ||
<defs> | ||
<linearGradient x1=\\"100%\\" y1=\\"0%\\" x2=\\"0%\\" y2=\\"0%\\" id=\\"var-progress-10\\"> | ||
<stop offset=\\"0%\\" stop-color=\\"#3fecff\\"></stop> | ||
<stop offset=\\"100%\\" stop-color=\\"#6149f6\\"></stop> | ||
</linearGradient> | ||
</defs> | ||
<circle class=\\"var-progress__circle-background\\" cx=\\"50%\\" cy=\\"50%\\" r=\\"20\\" fill=\\"transparent\\" stroke-width=\\"4.444444444444445\\" stroke-dasharray=\\"125.66370614359172\\"></circle> | ||
<circle class=\\"var-progress__circle-certain var-progress__circle--primary\\" cx=\\"50%\\" cy=\\"50%\\" r=\\"20\\" fill=\\"transparent\\" stroke-width=\\"4.444444444444445\\" stroke-dasharray=\\"125.66370614359172\\" stroke-dashoffset=\\"125.66370614359172\\" style=\\"stroke: url(#var-progress-10);\\"></circle> | ||
</svg> | ||
<!--v-if--> | ||
</div> | ||
</div>" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters