Skip to content

Commit

Permalink
Merge pull request #26 from BKWLD/support-custom-responsive-sources
Browse files Browse the repository at this point in the history
Support overriding responsiveSources
  • Loading branch information
weotch authored May 21, 2024
2 parents 1e9ccf0 + 17e965d commit d1cad9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/responsive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default
portraitImage: String
portraitVideo: String
portraitAspect: Number
# Support customizing response sources configuration
customResponsiveSources: Array
}
# Add preload link tag
Expand Down Expand Up @@ -98,6 +101,7 @@ export default
# Make responsive sources
responsiveSources: ->
return unless @isResponsiveImage
return @customResponsiveSources if @customResponsiveSources
[
{
attrs:
Expand Down

0 comments on commit d1cad9e

Please sign in to comment.