Created
October 26, 2019 13:50
-
-
Save shershen08/87aef81d80b9416b025644dd21518efc to your computer and use it in GitHub Desktop.
vue + js child component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class SearchForm extends Vue { | |
name: 'SearchForm', | |
props: { | |
colot: { | |
type: Object | |
} | |
}, | |
data(){ | |
return { | |
} | |
} | |
public search: string = ''; | |
@Prop() private labels!: object; | |
@Watch('search') | |
@Emit('search:text') | |
private onSeachChanged(val: string, oldVal: string) { | |
return val; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment