refactor: edit btn preview

This commit is contained in:
Thanaphon Frappet 2024-11-08 14:40:18 +07:00
parent 1bbf521740
commit 9f7b4340eb
2 changed files with 11 additions and 17 deletions

View file

@ -3,6 +3,7 @@ import { QTableProps } from 'quasar';
import { dateFormat } from 'src/utils/datetime';
import { formatNumberDecimal, commaInput } from 'stores/utils';
import BadgeComponent from 'components/BadgeComponent.vue';
import KebabAction from 'components/shared/KebabAction.vue';
@ -120,17 +121,17 @@ defineEmits<{
/>
</q-td>
<q-td v-if="visibleColumns.includes('example')">
<span
class="text-primary cursor-pointer"
style="text-decoration: underline"
@click="$emit('preview', props.row.id)"
>
Preview
</span>
</q-td>
<q-td class="text-right">
<q-btn
:id="`btn-eye-${props.row.firstName}`"
icon="mdi-play-box-outline"
size="sm"
dense
round
flat
@click.stop="$emit('preview', props.row.id)"
/>
<q-btn
:id="`btn-eye-${props.row.firstName}`"
icon="mdi-eye-outline"

View file

@ -117,13 +117,6 @@ export const columnQuotation = [
field: 'status',
},
{
name: 'example',
align: 'left',
label: 'general.example',
field: 'example',
},
{
name: 'action',
align: 'left',