0
0
Fork 0

feat: define Sticky Button

This commit is contained in:
Javier Segarra 2024-06-26 12:25:01 +00:00
parent 152bd5ff08
commit defd26fe91
1 changed files with 10 additions and 0 deletions

View File

@ -66,6 +66,7 @@ const route = useRoute();
const router = useRouter(); const router = useRouter();
const quasar = useQuasar(); const quasar = useQuasar();
const filterPanel = ref(null);
const DEFAULT_MODE = 'card'; const DEFAULT_MODE = 'card';
const TABLE_MODE = 'table'; const TABLE_MODE = 'table';
const mode = ref(DEFAULT_MODE); const mode = ref(DEFAULT_MODE);
@ -191,7 +192,16 @@ defineExpose({
show-if-above show-if-above
> >
<QScrollArea class="fit"> <QScrollArea class="fit">
<QBtn
class="q-mt-lg q-mr-xs q-mb-lg"
round
color="primary"
style="position: fixed; z-index: 1; right: 0; bottom: 0"
icon="search"
@click="filterPanel.search()"
></QBtn>
<VnFilterPanel <VnFilterPanel
ref="filterPanel"
:data-key="$attrs['data-key']" :data-key="$attrs['data-key']"
:search-button="true" :search-button="true"
v-model="params" v-model="params"