Skip to content

Commit 12fbf51

Browse files
committed
feat: possiblity to add doNotReplaceURL to single image
1 parent 5fa767b commit 12fbf51

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ Multiple params can be applied, separated by "`&`" e.g. **wat_scale=35&wat_gravi
412412
```javascript
413413
params = 'gray=1&bright=10'
414414
```
415+
### doNotReplaceURL
416+
417+
###### Type: **bool** | Default: **false**
418+
419+
If set to **true** the plugin will only add query params to the given source of image.
415420

416421
#### alternative syntax: type: **Object**
417422

src/Img.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export default {
9090
type: Function,
9191
default: undefined,
9292
},
93+
doNotReplaceURL: {
94+
type: Boolean,
95+
default: false,
96+
},
9397
},
9498
data() {
9599
return {
@@ -113,6 +117,7 @@ export default {
113117
className: this.className,
114118
config: this.cloudProvider.config,
115119
onImgLoad: this.onImgLoad,
120+
doNotReplaceURL: this.doNotReplaceURL
116121
},
117122
preserveSize: "",
118123
imgNodeWidth: "",

src/background.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export default {
8080
type: Function,
8181
default: undefined,
8282
},
83+
doNotReplaceURL: {
84+
type: Boolean,
85+
default: false,
86+
},
8387
},
8488
data() {
8589
return {
@@ -101,6 +105,7 @@ export default {
101105
alt: this.alt,
102106
className: this.className,
103107
onImgLoad: this.onImgLoad,
108+
doNotReplaceURL: this.doNotReplaceURL
104109
},
105110
container: {},
106111
previewBgWrapper: {},

0 commit comments

Comments
 (0)