This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
@input="addItem()"
|
||||
></gz-pick-list>
|
||||
<v-simple-table class="my-6">
|
||||
<!-- WIDE TABLE VIEW -->
|
||||
<template v-if="$vuetify.breakpoint.smAndUp" v-slot:default>
|
||||
<template v-slot:default>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
@@ -45,39 +44,18 @@
|
||||
<tr v-for="item in sortedList" :key="item.partId">
|
||||
<td>{{ item.partDisplay }}</td>
|
||||
<td>
|
||||
<v-icon @click="openItem(item)">
|
||||
<v-icon
|
||||
:small="$vuetify.breakpoint.xsOnly"
|
||||
@click="openItem(item)"
|
||||
>
|
||||
$ayiEdit
|
||||
</v-icon>
|
||||
</td>
|
||||
<td>
|
||||
<v-icon @click="removeItem(item)">
|
||||
$ayiTrashAlt
|
||||
</v-icon>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</template>
|
||||
<!-- MOBILE TABLE VIEW -->
|
||||
<template v-else v-slot:default>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
{{ $ay.t("PartList") }}
|
||||
</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="item in sortedList" :key="item.partId">
|
||||
<td>{{ item.partDisplay }}</td>
|
||||
<td>
|
||||
<v-icon small @click="openItem(item)">
|
||||
$ayiEdit
|
||||
</v-icon>
|
||||
</td>
|
||||
<td>
|
||||
<v-icon small @click="removeItem(item)">
|
||||
<v-icon
|
||||
:small="$vuetify.breakpoint.xsOnly"
|
||||
@click="removeItem(item)"
|
||||
>
|
||||
$ayiTrashAlt
|
||||
</v-icon>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user