Compare commits
4 commits
509ec3ec59
...
6523d15637
Author | SHA1 | Date | |
---|---|---|---|
6523d15637 | |||
956c1d5ee6 | |||
d8ce99319c | |||
c821562e30 |
1 changed files with 26 additions and 5 deletions
|
@ -1,4 +1,12 @@
|
||||||
<script setup lang="ts"></script>
|
<script setup lang="ts">
|
||||||
|
import { ref } from "vue";
|
||||||
|
|
||||||
|
const showSearch = ref(false);
|
||||||
|
|
||||||
|
const toggleSearch = () => {
|
||||||
|
showSearch.value = !showSearch.value;
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-app class="mx-5 my-3">
|
<v-app class="mx-5 my-3">
|
||||||
|
@ -7,14 +15,27 @@
|
||||||
<v-app-bar-nav-icon></v-app-bar-nav-icon>
|
<v-app-bar-nav-icon></v-app-bar-nav-icon>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-app-bar-title>Application Bar</v-app-bar-title>
|
<template v-slot:default>
|
||||||
|
<v-app-bar-title>DocuSphere</v-app-bar-title>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-slot:append>
|
<template v-slot:append class="align-center justify-center">
|
||||||
<v-btn icon="mdi-heart"></v-btn>
|
<v-btn icon="mdi-heart"></v-btn>
|
||||||
|
|
||||||
<v-btn icon="mdi-magnify"></v-btn>
|
<v-btn icon="mdi-magnify" @click="toggleSearch"> </v-btn>
|
||||||
|
|
||||||
<v-btn icon="mdi-dots-vertical"></v-btn>
|
<v-slide-x-reverse-transition hide-on-leave>
|
||||||
|
<v-responsive v-show="showSearch" min-width="20vw">
|
||||||
|
<v-text-field
|
||||||
|
variant="solo-filled"
|
||||||
|
class="search-bar w-100 justify-center align-center"
|
||||||
|
label="Search"
|
||||||
|
clearable
|
||||||
|
></v-text-field>
|
||||||
|
</v-responsive>
|
||||||
|
</v-slide-x-reverse-transition>
|
||||||
|
|
||||||
|
<v-btn icon="mdi-account" class="ml-3 mr-2"></v-btn>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
</v-app>
|
</v-app>
|
||||||
|
|
Loading…
Reference in a new issue