mirror of
https://github.com/frappe/books.git
synced 2024-11-08 23:00:56 +00:00
fix(ui): table overflowing
This commit is contained in:
parent
3bbf5294c9
commit
65c472500b
@ -18,34 +18,36 @@
|
||||
</div>
|
||||
</Row>
|
||||
|
||||
<Row
|
||||
v-if="items"
|
||||
v-for="row in items"
|
||||
:ratio="ratio"
|
||||
:border="true"
|
||||
class="
|
||||
border-b border-l border-r
|
||||
flex
|
||||
group
|
||||
h-row-mid
|
||||
hover:bg-gray-25
|
||||
items-center
|
||||
justify-center
|
||||
px-2
|
||||
w-full
|
||||
"
|
||||
@click="handleChange(row as POSItem)"
|
||||
>
|
||||
<FormControl
|
||||
v-for="df in tableFields"
|
||||
:key="df.fieldname"
|
||||
size="large"
|
||||
class=""
|
||||
:df="df"
|
||||
:value="row[df.fieldname]"
|
||||
:readOnly="true"
|
||||
/>
|
||||
</Row>
|
||||
<div class="overflow-y-auto" style="height: 72.5vh">
|
||||
<Row
|
||||
v-if="items"
|
||||
v-for="row in items"
|
||||
:ratio="ratio"
|
||||
:border="true"
|
||||
class="
|
||||
border-b border-l border-r
|
||||
flex
|
||||
group
|
||||
h-row-mid
|
||||
hover:bg-gray-25
|
||||
items-center
|
||||
justify-center
|
||||
px-2
|
||||
w-full
|
||||
"
|
||||
@click="handleChange(row as POSItem)"
|
||||
>
|
||||
<FormControl
|
||||
v-for="df in tableFields"
|
||||
:key="df.fieldname"
|
||||
size="large"
|
||||
class=""
|
||||
:df="df"
|
||||
:value="row[df.fieldname]"
|
||||
:readOnly="true"
|
||||
/>
|
||||
</Row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -19,26 +19,28 @@
|
||||
</div>
|
||||
</Row>
|
||||
|
||||
<Row
|
||||
v-for="row in sinvDoc.items"
|
||||
:ratio="ratio"
|
||||
class="
|
||||
border
|
||||
w-full
|
||||
px-2
|
||||
py-2
|
||||
group
|
||||
flex
|
||||
items-center
|
||||
justify-center
|
||||
hover:bg-gray-25
|
||||
"
|
||||
>
|
||||
<SelectedItemRow
|
||||
:row="(row as SalesInvoiceItem)"
|
||||
@removeItem="removeItem"
|
||||
/>
|
||||
</Row>
|
||||
<div class="overflow-y-auto" style="height: 50vh">
|
||||
<Row
|
||||
v-for="row in sinvDoc.items"
|
||||
:ratio="ratio"
|
||||
class="
|
||||
border
|
||||
w-full
|
||||
px-2
|
||||
py-2
|
||||
group
|
||||
flex
|
||||
items-center
|
||||
justify-center
|
||||
hover:bg-gray-25
|
||||
"
|
||||
>
|
||||
<SelectedItemRow
|
||||
:row="(row as SalesInvoiceItem)"
|
||||
@removeItem="removeItem"
|
||||
/>
|
||||
</Row>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import Row from '../Row.vue';
|
||||
|
Loading…
Reference in New Issue
Block a user