Update RowExpansionDoc.vue
parent
d46d6091d1
commit
99ca28023a
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in New Issue