-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add content to v-progress-linear #4106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally I'm not sure whether then content should be vertically centered or maybe we should leave it to dev
Alternatively if the slot content is just a text it could be automatically centered, otherwise it's up to user to style it
@@ -109,6 +109,15 @@ export default { | |||
this.genBar(h, 'long'), | |||
this.genBar(h, 'short') | |||
]) | |||
}, | |||
genContent (h) { | |||
const children = [this.$slots.default] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return this.$slots.default && h('div', {
staticClass: 'v-progress-linear__content'
}, this.$slots.default)
position: absolute | ||
top: 0 | ||
left: 0 | ||
bottom: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left: 0
is not necessary
Changes applied @jacekkarczmarczyk |
Codecov Report
@@ Coverage Diff @@
## dev #4106 +/- ##
========================================
+ Coverage 88.89% 89.6% +0.7%
========================================
Files 227 206 -21
Lines 5376 4876 -500
Branches 1360 1230 -130
========================================
- Hits 4779 4369 -410
+ Misses 479 408 -71
+ Partials 118 99 -19
Continue to review full report at Codecov.
|
590b80c
to
214e561
Compare
Please resolve conflicts. |
@spezzino please resolve conflicts and remove irrelevant commits |
Closing due to inactivity. |
Description
Adds default slot rendering to v-progress-linear, so content can be added inside the progress bar.
Motivation and Context
Resolves #3768
How Has This Been Tested?
visually tested
Markup:
Types of changes
Checklist:
master
for bug fixes,dev
for new features and breaking changes).