refactor: handle action edit
This commit is contained in:
parent
936fd7ebdd
commit
c8be545ef8
3 changed files with 5 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ const props = withDefaults(
|
|||
columns: QTableProps['columns'];
|
||||
grid?: boolean;
|
||||
visibleColumns?: string[];
|
||||
hideEdit?: boolean;
|
||||
}>(),
|
||||
{
|
||||
row: () => [],
|
||||
|
|
@ -151,6 +152,7 @@ defineEmits<{
|
|||
:idName="`btn-kebab-${props.row.firstName}`"
|
||||
status="'ACTIVE'"
|
||||
hide-toggle
|
||||
:hide-edit="hideEdit"
|
||||
@view="$emit('view', props.row)"
|
||||
@edit="$emit('edit', props.row)"
|
||||
@delete="$emit('delete', props.row.id)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue