🎨 add eslint
This commit is contained in:
parent
829a2e4cfc
commit
b0893113b3
88 changed files with 376 additions and 370 deletions
|
@ -31,7 +31,7 @@ Notification.newInstance = properties => {
|
|||
destroy () {
|
||||
document.body.removeChild(div);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export default Notification;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
default: function() {
|
||||
return {
|
||||
right: '50%'
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
closable: {
|
||||
|
@ -50,7 +50,7 @@
|
|||
data () {
|
||||
return {
|
||||
withDesc: false
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
baseClass () {
|
||||
|
@ -64,7 +64,7 @@
|
|||
[`${this.baseClass}-closable`]: this.closable,
|
||||
[`${this.baseClass}-with-desc`]: this.withDesc
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
contentClasses () {
|
||||
return `${this.baseClass}-content`;
|
||||
|
@ -89,7 +89,7 @@
|
|||
if (this.duration !== 0) {
|
||||
this.closeTimer = setTimeout(() => {
|
||||
this.close();
|
||||
}, this.duration * 1000)
|
||||
}, this.duration * 1000);
|
||||
}
|
||||
|
||||
// check if with desc in Notice component
|
||||
|
@ -100,5 +100,5 @@
|
|||
beforeDestroy () {
|
||||
this.clearCloseTimer();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
return {
|
||||
top: '65px',
|
||||
left: '50%'
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
content: {
|
||||
|
@ -49,7 +49,7 @@
|
|||
data () {
|
||||
return {
|
||||
notices: []
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
|
@ -58,7 +58,7 @@
|
|||
{
|
||||
[`${this.className}`]: !!this.className
|
||||
}
|
||||
]
|
||||
];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -88,5 +88,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue