44 lines
1.2 KiB
Vue
44 lines
1.2 KiB
Vue
<template>
|
|
<div class="physical-receive-list">
|
|
<div class="physical-receive-list__scroll mpage-content px-2">
|
|
<div
|
|
class="flex flex-col gap-4 pb-[calc(var(--app-add-card-height,88px)+1.25rem)]"
|
|
>
|
|
<RequestItem v-for="item in requestItems" :key="item.id" :item="item" />
|
|
</div>
|
|
</div>
|
|
<Teleport to="body">
|
|
<div class="add-request app-dock-add-bar" @click="openAdd()">
|
|
<div>افزودن درخواست جدید</div>
|
|
<BasicIcon icon="vuesax-linear:add" />
|
|
</div>
|
|
</Teleport>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
|
|
import RequestItem from '../components/RequestItem.vue'
|
|
import { usePhysicalReceiveListContext } from '../composables/usePhysicalReceiveList'
|
|
|
|
const { requestItems, openAdd } = usePhysicalReceiveListContext()
|
|
</script>
|
|
|
|
<style scoped>
|
|
.physical-receive-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.physical-receive-list__scroll {
|
|
flex: 1 1 0;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
overscroll-behavior-y: contain;
|
|
}
|
|
</style>
|