-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(b-media): improve aside right handling (#5965)
* fix(b-media): removed utility classes and added style * fix(b-media): removed utility classes and added style * fix(b-media): Changes according to suggestions for media * feat(b-media): added prop desc in component's package.json * feat(b-media-asign): advanced `right` handling Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
- Loading branch information
1 parent
5e82e7f
commit 49a3f00
Showing
11 changed files
with
95 additions
and
78 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.media-aside { | ||
display: flex; | ||
margin-right: 1rem; | ||
} | ||
|
||
.media-aside-right { | ||
margin-right: 0; | ||
margin-left: 1rem; | ||
} |
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 @@ | ||
@import "media"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
import Vue, { mergeData } from '../../vue' | ||
import { NAME_MEDIA_BODY } from '../../constants/components' | ||
|
||
// --- Props --- | ||
|
||
export const props = { | ||
tag: { | ||
type: String, | ||
default: 'div' | ||
} | ||
} | ||
|
||
// --- Main component --- | ||
// @vue/component | ||
export const BMediaBody = /*#__PURE__*/ Vue.extend({ | ||
name: NAME_MEDIA_BODY, | ||
functional: true, | ||
props, | ||
render(h, { props, data, children }) { | ||
return h( | ||
props.tag, | ||
mergeData(data, { | ||
staticClass: 'media-body' | ||
}), | ||
children | ||
) | ||
return h(props.tag, mergeData(data, { staticClass: 'media-body' }), children) | ||
} | ||
}) |
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
Oops, something went wrong.