Initial working new notify - needs sprucing up but working!
This commit is contained in:
23
ayanova/src/components/gztest.vue
Normal file
23
ayanova/src/components/gztest.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div>{{ message }}</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
snackbar: false,
|
||||
message: null,
|
||||
options: {
|
||||
color: "primary",
|
||||
timeout: 3000
|
||||
}
|
||||
}),
|
||||
methods: {
|
||||
open(message, options) {
|
||||
this.snackbar = true;
|
||||
this.message = message;
|
||||
this.options = Object.assign(this.options, options);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user