refactor(editor): Replace this.$props (no-changelog) (#5928)

* refactor(editor): Replace this. (no-changelog)

* Lintfix
This commit is contained in:
OlegIvaniv
2023-04-07 12:21:17 +02:00
committed by GitHub
parent 5651a52364
commit 07c360c30d
15 changed files with 60 additions and 61 deletions

View File

@@ -64,27 +64,27 @@ export default mixins(genericHelpers, debounceHelper).extend({
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value(): any | undefined {
if (this.$props.valueXS !== undefined && this.$data.width < BREAKPOINT_SM) {
return this.$props.valueXS;
if (this.valueXS !== undefined && this.$data.width < BREAKPOINT_SM) {
return this.valueXS;
}
if (this.$props.valueXL !== undefined && this.$data.width >= BREAKPOINT_XL) {
return this.$props.valueXL;
if (this.valueXL !== undefined && this.$data.width >= BREAKPOINT_XL) {
return this.valueXL;
}
if (this.$props.valueLG !== undefined && this.$data.width >= BREAKPOINT_LG) {
return this.$props.valueLG;
if (this.valueLG !== undefined && this.$data.width >= BREAKPOINT_LG) {
return this.valueLG;
}
if (this.$props.valueMD !== undefined && this.$data.width >= BREAKPOINT_MD) {
return this.$props.valueMD;
if (this.valueMD !== undefined && this.$data.width >= BREAKPOINT_MD) {
return this.valueMD;
}
if (this.$props.valueSM !== undefined) {
return this.$props.valueSM;
if (this.valueSM !== undefined) {
return this.valueSM;
}
return this.$props.valueDefault;
return this.valueDefault;
},
},
});