fix: refs #8581 update default data-cy value in VnTable component
This commit is contained in:
parent
02d8254c0f
commit
7b4b5c892a
|
@ -140,7 +140,7 @@ const $props = defineProps({
|
||||||
},
|
},
|
||||||
dataCy: {
|
dataCy: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'vn-table',
|
default: 'vnTable',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -685,7 +685,7 @@ const rowCtrlClickFunction = computed(() => {
|
||||||
@update:selected="emit('update:selected', $event)"
|
@update:selected="emit('update:selected', $event)"
|
||||||
@selection="(details) => handleSelection(details, rows)"
|
@selection="(details) => handleSelection(details, rows)"
|
||||||
:hide-selected-banner="true"
|
:hide-selected-banner="true"
|
||||||
:data-cy="$props.dataCy ?? 'vnTable'"
|
:data-cy
|
||||||
>
|
>
|
||||||
<template #top-left v-if="!$props.withoutHeader">
|
<template #top-left v-if="!$props.withoutHeader">
|
||||||
<slot name="top-left"> </slot>
|
<slot name="top-left"> </slot>
|
||||||
|
|
Loading…
Reference in New Issue