mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
fix(cascader): menu misplaced
This commit is contained in:
parent
b63769f077
commit
2a01e47932
@ -72,7 +72,9 @@ export default {
|
||||
// console.log('scroll')
|
||||
if (!this.active) return
|
||||
const activator = this.$refs.activator.$el || this.$refs.activator
|
||||
// console.log(activator)
|
||||
const activatorBoundingClientRect = activator.getBoundingClientRect()
|
||||
// console.log(activatorBoundingClientRect)
|
||||
// console.log(this.$refs.popoverBody)
|
||||
// debugger
|
||||
const contentBoundingClientRect = this.$refs.content.getBoundingClientRect()
|
||||
|
@ -92,8 +92,9 @@
|
||||
overflow: visible;
|
||||
transform: translateZ(0);
|
||||
.n-cascader-menu__content {
|
||||
margin-top: 4px;
|
||||
.n-cascader-menu {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
display: flex;
|
||||
z-index: 0;
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user