perf[treeTable]: set treeTable to keep-alive

This commit is contained in:
Pan 2018-01-30 10:05:25 +08:00
parent dc9e27e4b1
commit 55e8cd5306
3 changed files with 4 additions and 4 deletions

View file

@ -154,8 +154,8 @@ export const asyncRouterMap = [
{ path: 'dynamic-table', component: _import('example/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }},
{ path: 'drag-table', component: _import('example/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }},
{ path: 'inline-edit-table', component: _import('example/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }},
{ path: 'tree-table', component: _import('example/table/treeTable/treeTable'), name: 'treeTable', meta: { title: 'treeTable' }},
{ path: 'custom-tree-table', component: _import('example/table/treeTable/customTreeTable'), name: 'customTreeTable', meta: { title: 'customTreeTable' }},
{ path: 'tree-table', component: _import('example/table/treeTable/treeTable'), name: 'treeTableDemo', meta: { title: 'treeTable' }},
{ path: 'custom-tree-table', component: _import('example/table/treeTable/customTreeTable'), name: 'customTreeTableDemo', meta: { title: 'customTreeTable' }},
{ path: 'complex-table', component: _import('example/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }}
]
},

View file

@ -43,7 +43,7 @@ import treeTable from '@/components/TreeTable'
import treeToArray from './customEval'
export default {
name: 'tree',
name: 'customTreeTableDemo',
components: { treeTable },
data() {
return {

View file

@ -18,7 +18,7 @@
import treeTable from '@/components/TreeTable'
export default {
name: 'tree',
name: 'treeTableDemo',
components: { treeTable },
data() {
return {