Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
e8365e8b
Commit
e8365e8b
authored
Feb 21, 2019
by
zkwolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: close popover modal, the loadding logo show and disappear
parent
5430878c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
HeaderNotice.vue
src/components/tools/HeaderNotice.vue
+8
-5
No files found.
src/components/tools/HeaderNotice.vue
View file @
e8365e8b
<
template
>
<
template
>
<a-popover
<a-popover
v-model=
"visible"
trigger=
"click"
trigger=
"click"
placement=
"bottomRight"
placement=
"bottomRight"
:autoAdjustOverflow=
"true"
:autoAdjustOverflow=
"true"
...
@@ -50,19 +51,21 @@ export default {
...
@@ -50,19 +51,21 @@ export default {
name
:
'HeaderNotice'
,
name
:
'HeaderNotice'
,
data
()
{
data
()
{
return
{
return
{
loadding
:
false
loadding
:
false
,
visible
:
false
}
}
},
},
methods
:
{
methods
:
{
fetchNotice
()
{
fetchNotice
()
{
if
(
this
.
loadding
)
{
if
(
!
this
.
visible
)
{
this
.
loadding
=
false
return
}
this
.
loadding
=
true
this
.
loadding
=
true
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
loadding
=
false
this
.
loadding
=
false
},
2000
)
},
2000
)
}
else
{
this
.
loadding
=
false
}
this
.
visible
=
!
this
.
visible
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment