1
window.vPopup = new Vue({
2
el: '#vPopup',
3
delimiters: ['*{', '}
4
*'],
5
data() {
6
return {
7
message: '',
8
type: '',
9
}
10
11
}
12
,
13
methods: {
14
msg(message, type, duration) {
15
this.type = type;
16
this.message = message;
17
setTimeout( () => {
18
this.message = '';
19
}
20
, duration);
21
}
22
,
23
}
24
25
}
26
);