feat: new Table and expansion
This commit is contained in:
parent
ba10fc9609
commit
7f14e6be46
2 changed files with 93 additions and 0 deletions
29
src/components/14_report/Expansion.vue
Normal file
29
src/components/14_report/Expansion.vue
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<script lang="ts" setup>
|
||||
defineProps<{
|
||||
defaultOpened?: boolean;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-expansion-item
|
||||
dense
|
||||
class="overflow-hidden bordered full-width"
|
||||
switch-toggle-side
|
||||
style="border-radius: var(--radius-2)"
|
||||
expand-icon="mdi-chevron-down-circle"
|
||||
header-class="surface-1 q-py-sm text-medium text-body1"
|
||||
:default-opened="defaultOpened"
|
||||
>
|
||||
<template #header>
|
||||
<span>
|
||||
<slot name="header" />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<main class="surface-1 q-pa-md full-width">
|
||||
<slot name="main" />
|
||||
</main>
|
||||
</q-expansion-item>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue