OSDN Git Service
(root)
/
ngware
/
todo_client.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e4f64
)
一旦transitionを使おうと思ったがやめた。
author
tkskjri05
<t.kujirai@nagatake.co.jp>
Fri, 30 Apr 2021 12:34:59 +0000
(21:34 +0900)
committer
tkskjri05
<t.kujirai@nagatake.co.jp>
Fri, 30 Apr 2021 12:34:59 +0000
(21:34 +0900)
src/components/snackBar.vue
patch
|
blob
|
history
diff --git
a/src/components/snackBar.vue
b/src/components/snackBar.vue
index
152992d
..
fccfe4b
100644
(file)
--- a/
src/components/snackBar.vue
+++ b/
src/components/snackBar.vue
@@
-26,12
+26,16
@@
export default {
show() {
var x = document.getElementById("snackbar");
x.className = "show";
- setTimeout(function(){ x.className = x.className.replace("show", ""); }, 2000);
+ if(!this.isShow){
+ this.isShow = true
+ setTimeout(() => { x.className = x.className.replace("show", ""); this.isShow=false;}, 2000);
+ }
}
},
data() {
return {
msgValue: '',
+ isShow: false,
}
},
}