refactor: 05 => xs scroll & adjust TableQuotation row index calculation
This commit is contained in:
parent
8a937dfa31
commit
1fc6b39e37
2 changed files with 137 additions and 102 deletions
|
|
@ -16,12 +16,16 @@ const props = withDefaults(
|
|||
grid?: boolean;
|
||||
visibleColumns?: string[];
|
||||
hideEdit?: boolean;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}>(),
|
||||
{
|
||||
row: () => [],
|
||||
column: () => [],
|
||||
grid: false,
|
||||
visibleColumns: () => [],
|
||||
page: 1,
|
||||
pageSize: 30,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
@ -64,7 +68,11 @@ defineEmits<{
|
|||
<template v-slot:body="props">
|
||||
<q-tr :class="{ urgent: props.row.urgent }">
|
||||
<q-td v-if="visibleColumns.includes('order')">
|
||||
{{ props.rowIndex + 1 }}
|
||||
{{
|
||||
$q.screen.xs
|
||||
? props.rowIndex + 1
|
||||
: (page - 1) * pageSize + props.rowIndex + 1
|
||||
}}
|
||||
</q-td>
|
||||
|
||||
<q-td v-if="visibleColumns.includes('workName')">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue