-
-
Notifications
You must be signed in to change notification settings - Fork 163
docs(BProgress): Parity pass #2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,8 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress variant="success" :value="25" striped animated /> | ||
<BProgress class="mt-3" variant="info" :value="50" striped animated /> | ||
<BProgress class="mt-3" variant="warning" :value="75" striped animated /> | ||
<BProgress class="mt-3" variant="danger" :value="100" striped animated /> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,8 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress variant="success" :value="25" /> | ||
<BProgress class="mt-3" variant="info" :value="50" /> | ||
<BProgress class="mt-3" variant="warning" :value="75" /> | ||
<BProgress class="mt-3" variant="danger" :value="100" /> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,9 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress :value="0" /> | ||
<BProgress class="mt-3" :value="25" /> | ||
<BProgress class="mt-3" :value="50" /> | ||
<BProgress class="mt-3" :value="75" /> | ||
<BProgress class="mt-3" :value="100" /> | ||
<!-- #endregion template --> | ||
</template> |
17 changes: 17 additions & 0 deletions
17
apps/docs/src/docs/components/demo/ProgressCustomLabels.vue
This file contains hidden or 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,17 @@ | ||
<template> | ||
<!-- #region template --> | ||
<h5>Custom label via default slot</h5> | ||
<BProgress :max="50" height="2rem"> | ||
<BProgressBar :value="33.333333"> | ||
<span | ||
>Progress: <strong>{{ (33.333333).toFixed(2) }} / {{ 50 }}</strong></span | ||
> | ||
</BProgressBar> | ||
</BProgress> | ||
|
||
<h5 class="mt-3">Custom label via property</h5> | ||
<BProgress :max="50"> | ||
<BProgressBar :value="33.333333" :label="`${((33.333333 / 50) * 100).toFixed(2)}%`" /> | ||
</BProgress> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,6 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress :value="25" height="1px" /> | ||
<BProgress class="mt-3" :value="25" height="20px" /> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,14 @@ | ||
<template> | ||
<!-- #region template --> | ||
<h5>No label</h5> | ||
<BProgress :value="33.3333" :max="50" /> | ||
<h5>Value label</h5> | ||
<BProgress :value="33.3333" :max="50" show-value /> | ||
<h5>Progress label</h5> | ||
<BProgress :value="33.3333" :max="50" show-progress /> | ||
<h5>Value label with precision</h5> | ||
<BProgress :value="33.3333" :max="50" :precision="2" show-value /> | ||
<h5>Progress label with precision</h5> | ||
<BProgress :value="33.3333" :max="50" :precision="2" show-progress /> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,9 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress> | ||
<BProgressBar :value="15" /> | ||
<BProgressBar :value="30" variant="success" /> | ||
<BProgressBar :value="20" variant="info" /> | ||
</BProgress> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,9 @@ | ||
<template> | ||
<!-- #region template --> | ||
<BProgress striped :value="10" /> | ||
<BProgress striped class="mt-3" variant="success" :value="25" /> | ||
<BProgress striped class="mt-3" variant="info" :value="50" /> | ||
<BProgress striped class="mt-3" variant="warning" :value="75" /> | ||
<BProgress striped class="mt-3" variant="danger" :value="100" /> | ||
<!-- #endregion template --> | ||
</template> |
This file contains hidden or 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,11 @@ | ||
<template> | ||
<!-- #region template --> | ||
<h5>Default width</h5> | ||
<BProgress :value="75" class="mb-3" /> | ||
|
||
<h5>Custom widths</h5> | ||
<BProgress :value="75" class="w-75 mb-2" /> | ||
<BProgress :value="75" class="w-50 mb-2" /> | ||
<BProgress :value="75" class="w-25" /> | ||
<!-- #endregion template --> | ||
</template> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.