Update RowExpansionDoc.vue

pull/5513/head
tugcekucukoglu 2024-04-01 14:01:02 +03:00
parent d46d6091d1
commit 99ca28023a
1 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ export default {
data() {
return {
products: null,
expandedRows: [],
expandedRows: {},
code: {
basic: `
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
@ -211,7 +211,7 @@ export default {
data() {
return {
products: null,
expandedRows: []
expandedRows: {}
};
},
mounted() {
@ -340,7 +340,7 @@ import { useToast } from 'primevue/usetoast';
import { ProductService } from '@/service/ProductService';
const products = ref();
const expandedRows = ref([]);
const expandedRows = ref({});
const toast = useToast();
onMounted(() => {