[pricelist] add fullscreen for pricelist
This commit is contained in:
parent
f7a6f3fbe1
commit
52ae8fce29
|
@ -8,6 +8,7 @@
|
||||||
:filter-method="filter"
|
:filter-method="filter"
|
||||||
dense
|
dense
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
|
:fullscreen="fullscreen"
|
||||||
>
|
>
|
||||||
<template #top-right>
|
<template #top-right>
|
||||||
<div class="row justify-end q-gutter-sm">
|
<div class="row justify-end q-gutter-sm">
|
||||||
|
@ -26,6 +27,11 @@
|
||||||
options-cover
|
options-cover
|
||||||
/>
|
/>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
<q-btn
|
||||||
|
round
|
||||||
|
:icon="fullscreen ? 'mdi-fullscreen-exit' : 'mdi-fullscreen'"
|
||||||
|
@click="fullscreen = !fullscreen"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-tags="props">
|
<template #body-cell-tags="props">
|
||||||
|
@ -198,6 +204,8 @@ export default defineComponent({
|
||||||
rowsPerPage: 10,
|
rowsPerPage: 10,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const fullscreen = ref(false);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
drinks: computed(() => store.pricelist),
|
drinks: computed(() => store.pricelist),
|
||||||
columns,
|
columns,
|
||||||
|
@ -206,6 +214,7 @@ export default defineComponent({
|
||||||
search,
|
search,
|
||||||
filter,
|
filter,
|
||||||
pagination,
|
pagination,
|
||||||
|
fullscreen,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue