refactor: edit btn preview
This commit is contained in:
parent
1bbf521740
commit
9f7b4340eb
2 changed files with 11 additions and 17 deletions
|
|
@ -3,6 +3,7 @@ import { QTableProps } from 'quasar';
|
||||||
import { dateFormat } from 'src/utils/datetime';
|
import { dateFormat } from 'src/utils/datetime';
|
||||||
|
|
||||||
import { formatNumberDecimal, commaInput } from 'stores/utils';
|
import { formatNumberDecimal, commaInput } from 'stores/utils';
|
||||||
|
|
||||||
import BadgeComponent from 'components/BadgeComponent.vue';
|
import BadgeComponent from 'components/BadgeComponent.vue';
|
||||||
import KebabAction from 'components/shared/KebabAction.vue';
|
import KebabAction from 'components/shared/KebabAction.vue';
|
||||||
|
|
||||||
|
|
@ -120,17 +121,17 @@ defineEmits<{
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</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-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
|
<q-btn
|
||||||
:id="`btn-eye-${props.row.firstName}`"
|
:id="`btn-eye-${props.row.firstName}`"
|
||||||
icon="mdi-eye-outline"
|
icon="mdi-eye-outline"
|
||||||
|
|
|
||||||
|
|
@ -117,13 +117,6 @@ export const columnQuotation = [
|
||||||
field: 'status',
|
field: 'status',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: 'example',
|
|
||||||
align: 'left',
|
|
||||||
label: 'general.example',
|
|
||||||
field: 'example',
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'action',
|
name: 'action',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue