Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d2c0d38e
authored
Sep 23, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2
1 parent
fed4b5b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
src/layout/components/LeftSide/LeftSideMenuLv1.vue
src/layout/components/LeftSide/LeftSideMenuLv1.vue
View file @
d2c0d38
...
@@ -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())
})
})
})
})
})
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment