Skip to content

Commit

Permalink
feat: implement disableVariableQuality
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Jun 2, 2020
1 parent 2f5b07b commit 9f83aae
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/plugins/vue-imgix/ix-img.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const IxImgProps = Vue.extend({
width: [String, Number],
height: [String, Number],
attributeConfig: Object,
disableVariableQuality: Boolean,
},
});

Expand All @@ -41,10 +42,16 @@ export class IxImg extends IxImgProps {
}),
};

const { src, srcset } = this.vueImgixSingleton.buildUrlObject(this.src, {
...imgixParamsFromImgAttributes,
...this.imgixParams,
});
const { src, srcset } = this.vueImgixSingleton.buildUrlObject(
this.src,
{
...imgixParamsFromImgAttributes,
...this.imgixParams,
},
{
disableVariableQuality: this.disableVariableQuality ?? false,
},
);

const attributeConfig = {
...defaultAttributeMap,
Expand Down

0 comments on commit 9f83aae

Please sign in to comment.