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
21cd85f3
Unverified
Commit
21cd85f3
authored
Feb 21, 2019
by
言肆
Committed by
GitHub
Feb 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #81 from zkwolf/zk-antd-pro
fix: close popover modal, the loadding logo show and disappear
parents
b545d796
e8365e8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
HeaderNotice.vue
src/components/tools/HeaderNotice.vue
+11
-8
No files found.
src/components/tools/HeaderNotice.vue
View file @
21cd85f3
<
template
>
<a-popover
v-model=
"visible"
trigger=
"click"
placement=
"bottomRight"
:autoAdjustOverflow=
"true"
...
...
@@ -50,19 +51,21 @@ export default {
name
:
'HeaderNotice'
,
data
()
{
return
{
loadding
:
false
loadding
:
false
,
visible
:
false
}
},
methods
:
{
fetchNotice
()
{
if
(
this
.
loadding
)
{
if
(
!
this
.
visible
)
{
this
.
loadding
=
true
setTimeout
(()
=>
{
this
.
loadding
=
false
},
2000
)
}
else
{
this
.
loadding
=
false
return
}
this
.
loadding
=
true
setTimeout
(()
=>
{
this
.
loadding
=
false
},
2000
)
this
.
visible
=
!
this
.
visible
}
}
}
...
...
@@ -82,4 +85,4 @@ export default {
vertical-align
:
initial
;
}
}
</
style
>
</
style
>
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