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
|
||||
}
|
||||
},
|
||||
/*
|
||||
adaptiveMaxWidth: {
|
||||
maxAdaptiveWidth: {
|
||||
type: Number,
|
||||
default: 1,
|
||||
validator (value) {
|
||||
return value > 0 && value <= 1
|
||||
}
|
||||
default: 1
|
||||
// ,
|
||||
// validator (value) {
|
||||
// return value > 0 && value <= 1
|
||||
// }
|
||||
},
|
||||
adaptiveMaxHeight: {
|
||||
maxAdaptiveHeight: {
|
||||
type: Number,
|
||||
default: 1,
|
||||
validator (value) {
|
||||
return value > 0 && value <= 1
|
||||
}
|
||||
default: 1
|
||||
// ,
|
||||
// validator (value) {
|
||||
// return value > 0 && value <= 1
|
||||
// }
|
||||
},
|
||||
*/
|
||||
width: {
|
||||
type: Number,
|
||||
default: 600,
|
||||
@@ -255,7 +255,7 @@
|
||||
this.modal.width)
|
||||
this.modal.height = inRange(
|
||||
0,
|
||||
this.window.height * this.maxAdaptiveWidth,
|
||||
this.window.height * this.maxAdaptiveHeight,
|
||||
this.modal.height)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user