24 lines
797 B
Vue
24 lines
797 B
Vue
<template>
|
|||
|
|
<div>
|
||
|
|
<div
|
||
|
|
class="flex flex-col gap-4 pt-13 px-2 pb-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height)+1rem)]"
|
||
|
|
>
|
||
|
|
<RequestItem v-for="item in requestItems" :key="item.id" :item="item" />
|
||
|
|
</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>
|