0
0
Fork 0

Merge pull request 'Se agrega un desplegable en el detalle de las tarjetas' (#3) from features/ms_19_desplegable_detalle into dev

Reviewed-on: hyervoni/salix-front-mindshore#3
This commit is contained in:
Carlos Fonseca 2023-11-21 12:16:45 +00:00
commit e93e1d456e
1 changed files with 34 additions and 20 deletions

View File

@ -52,6 +52,16 @@ watch($props, async () => {
entity.value = null; entity.value = null;
await fetch(); await fetch();
}); });
const options = [
'Transferir factura a ...',
'Ver factura ...',
'Enviar factura ...',
'Eliminar factura',
'Asentar factura',
'Regenerar PDF factura',
'Abono ...',
];
</script> </script>
<template> <template>
@ -60,13 +70,13 @@ watch($props, async () => {
<div class="header bg-primary q-pa-sm"> <div class="header bg-primary q-pa-sm">
<RouterLink :to="{ name: `${module}List` }"> <RouterLink :to="{ name: `${module}List` }">
<QBtn <QBtn
round
flat
dense
size="md"
icon="view_list"
color="white"
class="link" class="link"
color="white"
dense
flat
icon="view_list"
round
size="md"
> >
<QTooltip> <QTooltip>
{{ t('components.cardDescriptor.mainList') }} {{ t('components.cardDescriptor.mainList') }}
@ -75,28 +85,32 @@ watch($props, async () => {
</RouterLink> </RouterLink>
<RouterLink :to="{ name: `${module}Summary`, params: { id: entity.id } }"> <RouterLink :to="{ name: `${module}Summary`, params: { id: entity.id } }">
<QBtn <QBtn
round
flat
dense
size="md"
icon="launch"
color="white"
class="link" class="link"
color="white"
dense
flat
icon="launch"
round
size="md"
> >
<QTooltip> <QMenu auto-close>
{{ t('components.cardDescriptor.summary') }} <QList dense v-for="option in options" :key="option">
</QTooltip> <QItem v-ripple clickable>
{{ option }}
</QItem>
</QList>
</QMenu>
</QBtn> </QBtn>
</RouterLink> </RouterLink>
<QBtn <QBtn
v-if="slots.menu"
size="md"
icon="more_vert"
color="white" color="white"
round
flat
dense dense
flat
icon="more_vert"
round
size="md"
v-if="slots.menu"
> >
<QTooltip> <QTooltip>
{{ t('components.cardDescriptor.moreOptions') }} {{ t('components.cardDescriptor.moreOptions') }}