forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBorderless.vue
More file actions
31 lines (28 loc) · 831 Bytes
/
Borderless.vue
File metadata and controls
31 lines (28 loc) · 831 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
<template>
<div class="q-pa-md">
<div class="q-gutter-y-md column" style="width: 300px; max-width: 100%">
<q-toolbar class="bg-primary text-white rounded-borders">
<q-btn round dense flat icon="menu" class="q-mr-xs" />
<q-avatar class="gt-xs">
<img src="https://cdn.quasar.dev/logo/svg/quasar-logo.svg">
</q-avatar>
<q-space />
<q-input dark borderless v-model="text" input-class="text-right" class="q-ml-md">
<template v-slot:append>
<q-icon v-if="text === ''" name="search" />
<q-icon v-else name="clear" class="cursor-pointer" @click="text = ''" />
</template>
</q-input>
</q-toolbar>
</div>
</div>
</template>
<script>
export default {
data () {
return {
text: ''
}
}
}
</script>