Skip to content

Commit

Permalink
fix(b-img-lazy): fix blank-src not work error (#6302)
Browse files Browse the repository at this point in the history
use BImgLazy computed value props overwrite default BImg props

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
  • Loading branch information
kagawagao and jacobmllr95 committed Jan 8, 2021
1 parent 555f5e2 commit a6ace2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/image/img-lazy.js
Expand Up @@ -140,15 +140,15 @@ export const BImgLazy = /*#__PURE__*/ Vue.extend({
return h(BImg, {
directives,
props: {
// Passthrough props
...pluckProps(imgProps, this.$props),
// Computed value props
src: this.computedSrc,
blank: this.computedBlank,
width: this.computedWidth,
height: this.computedHeight,
srcset: this.computedSrcset || null,
sizes: this.computedSizes || null,
// Passthrough props
...pluckProps(imgProps, this.$props)
sizes: this.computedSizes || null
}
})
}
Expand Down

0 comments on commit a6ace2f

Please sign in to comment.