forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic.vue
More file actions
37 lines (33 loc) · 826 Bytes
/
Basic.vue
File metadata and controls
37 lines (33 loc) · 826 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
<template>
<div class="q-pa-md">
<div class="q-mb-md">
Browser User Agent: "<strong>{{ $q.platform.userAgent }}</strong>"
</div>
<q-markup-table flat bordered>
<thead>
<tr>
<th class="text-left">Property</th>
<th class="text-left">Value</th>
</tr>
</thead>
<tbody>
<tr v-for="(value, prop) in $q.platform.is" :key="prop">
<td>{{ prop }}</td>
<td>{{ value }}</td>
</tr>
</tbody>
</q-markup-table>
<div class="q-mt-md">
The device which you are using to view this website <strong>{{ touch }}</strong> touch capability.
</div>
</div>
</template>
<script>
export default {
computed: {
touch () {
return this.$q.platform.has.touch ? 'has' : 'does not have'
}
}
}
</script>