diff --git a/src/views/example/table/dynamictable/fixedThead.vue b/src/views/example/table/dynamictable/fixedThead.vue
index 9c3ea5a7..aa7a4bc6 100644
--- a/src/views/example/table/dynamictable/fixedThead.vue
+++ b/src/views/example/table/dynamictable/fixedThead.vue
@@ -13,7 +13,7 @@
- {{scope.row.list[index].value}}
+ {{scope.row[fruit]}}
@@ -28,20 +28,16 @@
return {
tableData: [
{
- name: 'fruit1',
- list: [
- { name: 'apple1', value: 10 },
- { name: 'banana1', value: 20 },
- { name: 'orange1', value: 20 }
- ]
+ name: 'fruit-1',
+ apple: 'apple-10',
+ banana: 'banana-10',
+ orange: 'orange-10'
},
{
- name: 'fruit2',
- list: [
- { name: 'apple2', value: 12 },
- { name: 'banana2', value: 22 },
- { name: 'orange2', value: 20 }
- ]
+ name: 'fruit-2',
+ apple: 'apple-20',
+ banana: 'banana-20',
+ orange: 'orange-20'
}
],
key: 1, // table key
diff --git a/src/views/example/table/dynamictable/unfixedThead.vue b/src/views/example/table/dynamictable/unfixedThead.vue
index 5aa4a88b..68fcd620 100644
--- a/src/views/example/table/dynamictable/unfixedThead.vue
+++ b/src/views/example/table/dynamictable/unfixedThead.vue
@@ -14,7 +14,7 @@
- {{scope.row.list[index].value}}
+ {{scope.row[fruit]}}
@@ -28,20 +28,16 @@
return {
tableData: [
{
- name: 'fruit1',
- list: [
- { name: 'apple1', value: 10 },
- { name: 'banana1', value: 20 },
- { name: 'orange1', value: 20 }
- ]
+ name: 'fruit-1',
+ apple: 'apple-10',
+ banana: 'banana-10',
+ orange: 'orange-10'
},
{
- name: 'fruit2',
- list: [
- { name: 'apple2', value: 12 },
- { name: 'banana2', value: 22 },
- { name: 'orange2', value: 20 }
- ]
+ name: 'fruit-2',
+ apple: 'apple-20',
+ banana: 'banana-20',
+ orange: 'orange-20'
}
],
formThead: ['apple', 'banana']