refactor: add id
This commit is contained in:
parent
3036ca1070
commit
1e15dcc856
3 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
defineProps<{
|
||||
prefixId?: string;
|
||||
inactive?: boolean;
|
||||
color?: 'none' | 'pers' | 'corp';
|
||||
data: {
|
||||
|
|
@ -52,6 +53,7 @@ defineProps<{
|
|||
|
||||
<div class="branch-card__action">
|
||||
<q-btn
|
||||
:id="`${prefixId}-btn-view-detail`"
|
||||
icon="mdi-eye-outline"
|
||||
size="sm"
|
||||
dense
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ const prop = withDefaults(
|
|||
fieldSelected?: string[];
|
||||
inTable?: boolean;
|
||||
addButton?: boolean;
|
||||
prefixId?: string;
|
||||
}>(),
|
||||
{
|
||||
gridView: false,
|
||||
|
|
@ -74,7 +75,7 @@ defineEmits<{
|
|||
</span>
|
||||
<span v-if="col.label === '' && !!addButton">
|
||||
<AddButton
|
||||
id="btn-add-employee"
|
||||
:id="`${prefixId || 'default'}-btn-add-employee`"
|
||||
icon-only
|
||||
@click.stop="() => $emit('add')"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue