✨ Add alert
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<template src="./template.html"></template>
|
||||
<script src="./script.js"></script>
|
||||
<style src="./style.styl" lang="stylus" scoped></style>
|
||||
@@ -0,0 +1,12 @@
|
||||
export default
|
||||
{
|
||||
name: 'alert',
|
||||
|
||||
methods:
|
||||
{
|
||||
onAlertClick()
|
||||
{
|
||||
this.$store.commit('setPendingAlert')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
.alert
|
||||
position fixed
|
||||
bottom 0
|
||||
right 30px
|
||||
@@ -0,0 +1,3 @@
|
||||
<a href="#" class="alert" @click.prevent="onAlertClick">
|
||||
/!\
|
||||
</a>
|
||||
Reference in New Issue
Block a user