Skip to content

Commit 2337158

Browse files
committed
feat: possiblity to add doNotReplaceURL to single image
1 parent 3034643 commit 2337158

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
@@ -404,6 +404,11 @@ Multiple params can be applied, separated by "`&`" e.g. **wat_scale=35&wat_gravi
404404
```javascript
405405
params = 'gray=1&bright=10';
406406
```
407+
### doNotReplaceURL
408+
409+
###### Type: **bool** | Default: **false**
410+
411+
If set to **true** the plugin will only add query params to the given source of image.
407412
408413
#### alternative syntax: type: **Object**
409414

src/Img.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export default {
8787
type: Function,
8888
default: undefined,
8989
},
90+
doNotReplaceURL: {
91+
type: Boolean,
92+
default: false
93+
}
9094
},
9195
data() {
9296
return {
@@ -112,6 +116,7 @@ export default {
112116
className: this.className,
113117
config: this.cloudProvider.config,
114118
onImgLoad: this.onImgLoad,
119+
doNotReplaceURL: this.doNotReplaceURL
115120
},
116121
117122
preserveSize: "",

src/background.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ export default {
8989
type: Function,
9090
default: undefined,
9191
},
92+
doNotReplaceURL: {
93+
type: Boolean,
94+
default: false
95+
}
9296
},
9397
data() {
9498
return {
@@ -111,6 +115,7 @@ export default {
111115
alt: this.alt,
112116
className: this.className,
113117
onImgLoad: this.onImgLoad,
118+
doNotReplaceURL: this.doNotReplaceURL,
114119
},
115120
container: "",
116121
previewBgWrapper: "",

0 commit comments

Comments
 (0)