forked from geolba/tethys.frontend
- simple search box as extra vue component: simple-search-component
This commit is contained in:
parent
89c79ec034
commit
ed7bd8c4d2
6 changed files with 176 additions and 50 deletions
12
src/components/simple-search/simple-search-component.ts
Normal file
12
src/components/simple-search/simple-search-component.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Options, Vue } from "vue-class-component";
|
||||
|
||||
@Options({
|
||||
name: "SimpleSearchComponent",
|
||||
})
|
||||
export default class SimpleSearchComponent extends Vue {
|
||||
public display = "";
|
||||
|
||||
search(): void {
|
||||
this.$router.push({ name: "Search", params: { display: this.display } });
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue