From 23899fc5c617b7cf0e201f3c53b9f19568bb262d Mon Sep 17 00:00:00 2001 From: Jingsong Gao Date: Fri, 8 Jan 2021 21:34:56 +0800 Subject: [PATCH] fix(b-img-lazy): fix blank-src not work error use BImgLazy computed value props overwrite default BImg props --- src/components/image/img-lazy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/image/img-lazy.js b/src/components/image/img-lazy.js index 6c3c2de6471..fa8d0a84705 100644 --- a/src/components/image/img-lazy.js +++ b/src/components/image/img-lazy.js @@ -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 } }) }