mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
fix: sonargate
This commit is contained in:
parent
9fe29fbf3f
commit
634f4f1499
@ -132,13 +132,13 @@ export default {
|
||||
setBodyMinMaxHeight () {
|
||||
const bordered = this.bordered
|
||||
const headerHeight = this.getHeaderElement().offsetHeight
|
||||
const maxHeight = this.maxHeight + (bordered ? -2 : 0)
|
||||
const minHeight = this.minHeight + (bordered ? -2 : 0)
|
||||
const maxHeight = this.maxHeight
|
||||
const minHeight = this.minHeight
|
||||
if (maxHeight !== null) {
|
||||
this.bodyMaxHeight = maxHeight - headerHeight
|
||||
this.bodyMaxHeight = maxHeight + (bordered ? -2 : 0) - headerHeight
|
||||
}
|
||||
if (minHeight !== null) {
|
||||
this.bodyMinHeight = minHeight - headerHeight
|
||||
this.bodyMinHeight = minHeight + (bordered ? -2 : 0) - headerHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,9 +3,6 @@
|
||||
* The color utils are for internal usage, it needs to work first. API design
|
||||
* need to be refined later.
|
||||
*/
|
||||
|
||||
import { over } from 'lodash-es'
|
||||
|
||||
function floor (number) {
|
||||
return Math.floor(Number(number))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user