webapp: Implement Navbar as typescript
This commit is contained in:
parent
66d296a97b
commit
7e53160162
@ -77,12 +77,14 @@
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$refs.navbarCollapse && this.$refs.navbarCollapse.classList.remove("show");
|
||||
this.$refs.navbarCollapse && (this.$refs.navbarCollapse as HTMLElement).classList.remove("show");
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user