Commit d2c0d38e by liimin

2

1 parent fed4b5b2
...@@ -5,20 +5,10 @@ ...@@ -5,20 +5,10 @@
<LeftSideMenuLv1Item v-for="item in menuList" :key="item.id" :menuData="item"></LeftSideMenuLv1Item> <LeftSideMenuLv1Item v-for="item in menuList" :key="item.id" :menuData="item"></LeftSideMenuLv1Item>
</div> </div>
</GLScroll> </GLScroll>
<el-popover <el-popover v-if="showPop && menu.isCollapse" ref="pop" :reference="reference" @hide="hide()" placement="right-start" :visible-arrow="false" width="160" :open-delay="500" trigger="hover" popper-class="el-submenu-popper-base-left-side-menu">
v-if="showPop && menu.isCollapse"
ref="pop"
:reference="reference"
@hide="hide()"
placement="right-start"
:visible-arrow="false"
width="160"
:open-delay="500"
trigger="hover"
popper-class="el-submenu-popper-base-left-side-menu"
>
<LeftSideMenuLv2></LeftSideMenuLv2> <LeftSideMenuLv2></LeftSideMenuLv2>
</el-popover>s </el-popover>
s
</div> </div>
</template> </template>
...@@ -64,16 +54,14 @@ export default { ...@@ -64,16 +54,14 @@ export default {
this.showPop = false this.showPop = false
this.reference = reference this.reference = reference
this.$nextTick(() => { this.$nextTick(() => {
// 等待显示的popover销毁后再 重新渲染新的popover
this.showPop = true
this.$nextTick(() => { this.$nextTick(() => {
// 等待显示的popover销毁后再 重新渲染新的popover onReady()
this.showPop = true // 此时才能获取refs引用
this.$nextTick(() => { this.$nextTick(() => {
// 此时才能获取refs引用
this.$refs.pop.doShow() this.$refs.pop.doShow()
this.$nextTick(() => { // this.$nextTick(() => this.$refs.pop.updatePopper())
onReady()
// this.$nextTick(() => this.$refs.pop.updatePopper())
})
}) })
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!