mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Fixed a bug where this.maxAdaptiveWidth was accidentally added in master (#44)
This commit is contained in:
13
dist/index.js
vendored
13
dist/index.js
vendored
File diff suppressed because one or more lines are too long
13
dist/ssr.index.js
vendored
13
dist/ssr.index.js
vendored
File diff suppressed because one or more lines are too long
@@ -75,22 +75,22 @@
|
|||||||
return value >= 0
|
return value >= 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*
|
maxAdaptiveWidth: {
|
||||||
adaptiveMaxWidth: {
|
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1,
|
default: 1
|
||||||
validator (value) {
|
// ,
|
||||||
return value > 0 && value <= 1
|
// validator (value) {
|
||||||
}
|
// return value > 0 && value <= 1
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
adaptiveMaxHeight: {
|
maxAdaptiveHeight: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1,
|
default: 1
|
||||||
validator (value) {
|
// ,
|
||||||
return value > 0 && value <= 1
|
// validator (value) {
|
||||||
}
|
// return value > 0 && value <= 1
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
width: {
|
width: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 600,
|
default: 600,
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
this.modal.width)
|
this.modal.width)
|
||||||
this.modal.height = inRange(
|
this.modal.height = inRange(
|
||||||
0,
|
0,
|
||||||
this.window.height * this.maxAdaptiveWidth,
|
this.window.height * this.maxAdaptiveHeight,
|
||||||
this.modal.height)
|
this.modal.height)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user