We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0f367 commit 0ad799eCopy full SHA for 0ad799e
src/AdapSearchfield.ts
@@ -1,8 +1,10 @@
1
const template = `
2
<input type="text"
3
v-if="collection"
4
- class="adap-searchfield"
+ v-bind="vBind"
5
+ v-on="vOn"
6
v-model="collection.search"
7
+ class="adap-searchfield"
8
@keyup="search"
9
/>
10
`
@@ -20,6 +22,16 @@ export class AdapSearchfield extends Vue {
20
22
@Prop({ type: Number, default: 1000 })
21
23
debounceTimer!: number
24
25
+ get vBind() {
26
+ return { ...this.$attrs }
27
+ }
28
+
29
+ get vOn() {
30
+ const listeners = { ...this.$listeners }
31
+ delete listeners.input
32
+ return { ...listeners }
33
34
35
get querySearch(): () => Promise<any> {
36
return debounce(() => this.debounceQuerySearch(), this.debounceTimer)
37
}
0 commit comments