forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebouncing.vue
More file actions
43 lines (40 loc) · 808 Bytes
/
Debouncing.vue
File metadata and controls
43 lines (40 loc) · 808 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
<template>
<div class="q-pa-md" style="max-width: 350px">
<div class="q-gutter-md">
<div>
<q-badge color="teal">Model: "{{ search }}"</q-badge>
</div>
<q-input
v-model="search"
debounce="500"
filled
placeholder="Search"
hint="Debouncing 500ms"
>
<template v-slot:append>
<q-icon name="search" />
</template>
</q-input>
<q-input
v-model="search"
debounce="1000"
filled
placeholder="Search"
hint="Debouncing 1000ms"
>
<template v-slot:append>
<q-icon name="search" />
</template>
</q-input>
</div>
</div>
</template>
<script>
export default {
data () {
return {
search: ''
}
}
}
</script>