diff --git a/src/router/index.js b/src/router/index.js index 3d49cf39..139fe2e7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -58,6 +58,7 @@ const DragTable = () => import('../views/example/table/dragTable'); const InlineEditTable = () => import('../views/example/table/inlineEditTable'); const Form = () => import('../views/example/form'); +const Tab = () => import('../views/example/tab/index'); /* permission */ const Permission = () => import('../views/permission/index'); @@ -198,7 +199,7 @@ export const asyncRouterMap = [ path: '/table', component: TableLayout, redirect: '/table/table', - name: 'table', + name: 'Table', children: [ { path: 'dynamictable', component: DynamicTable, name: '动态table' }, { path: 'dragtable', component: DragTable, name: '拖拽table' }, @@ -206,8 +207,10 @@ export const asyncRouterMap = [ { path: 'table', component: Table, name: '综合table' } ] }, - { path: 'form/edit', component: Form, name: '编辑form', meta: { isEdit: true } }, - { path: 'form/create', component: Form, name: '创建form' } + { path: 'form/edit', component: Form, name: '编辑Form', meta: { isEdit: true } }, + { path: 'form/create', component: Form, name: '创建Form' }, + + { path: 'tab/index', component: Tab, name: 'Tab' } ] }, { path: '*', redirect: '/404', hidden: true } diff --git a/src/views/example/tab/components/tabPane.vue b/src/views/example/tab/components/tabPane.vue new file mode 100644 index 00000000..1a318c36 --- /dev/null +++ b/src/views/example/tab/components/tabPane.vue @@ -0,0 +1,98 @@ + + + + + + {{scope.row.id}} + + + + + + {{scope.row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}')}} + + + + + + {{scope.row.title}} + {{scope.row.type}} + + + + + + {{scope.row.author}} + + + + + + + + + + + + {{scope.row.pageviews}} + + + + + + {{scope.row.status}} + + + + + + + + diff --git a/src/views/example/tab/index.vue b/src/views/example/tab/index.vue new file mode 100644 index 00000000..2c63f18d --- /dev/null +++ b/src/views/example/tab/index.vue @@ -0,0 +1,44 @@ + + + create times :{{createdTimes}} + + + + + + + + + + + + +