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