forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld.vue
More file actions
executable file
·45 lines (36 loc) · 877 Bytes
/
HelloWorld.vue
File metadata and controls
executable file
·45 lines (36 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<h1>{{ msg }}</h1>
<q-icon name="local_fire_department" size="52px" color="red" class="q-mr-md" />
<q-btn color="primary" icon="local_fire_department" label="Quasar!" @click="onClick" />
<div v-ripple style="width: 500px; height: 500px" class="relative-position bg-amber" />
<q-icon name="local_fire_department" size="52px" class="q-mr-md my-color" />
<div class="my-div"> </div>
</template>
<script>
import { useQuasar, QIcon as Weee } from 'quasar'
export default {
props: {
msg: String
},
setup () {
const $q = useQuasar()
function onClick () {
console.log('wee')
$q.notify({
message: 'Running Quasar on Vite'
})
}
return {
onClick
}
}
}
</script>
<style lang="sass">
.my-color
color: $primary
.my-div
background-color: $primary
width: 150px
height: 100px
</style>