diff --git a/src/App.vue b/src/App.vue index f12037f..2391a68 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,10 @@ Table Demo 3: 带边框的路由
Table Demo 4: 自定义样式
Table Demo 5: 滚动条
+ Table Demo 6: 固定列
+ Table Demo 7: 多级表头
+ Table Demo 8: 合并行列
+ Table Demo 9: 带状态的行
diff --git a/src/router/index.js b/src/router/index.js index a80e67d..e4c7e7e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,6 +7,10 @@ const tableDemo2 = () => import('../views/Table_Demo2.vue') const tableDemo3 = () => import('../views/Table_Demo3.vue') const tableDemo4 = () => import('../views/Table_Demo4.vue') const tableDemo5 = () => import('../views/Table_Demo5.vue') +const tableDemo6 = () => import('../views/Table_Demo6.vue') +const tableDemo7 = () => import('../views/Table_Demo7.vue') +const tableDemo8 = () => import('../views/Table_Demo8.vue') +const tableDemo9 = () => import('../views/Table_Demo9.vue') // 引入组件 @@ -43,6 +47,26 @@ const routes = [ name: 'table5', component: tableDemo5 }, + { + path: '/table6', + name: 'table6', + component: tableDemo6 + }, + { + path: '/table7', + name: 'table7', + component: tableDemo7 + }, + { + path: '/table8', + name: 'table8', + component: tableDemo8 + }, + { + path: '/table9', + name: 'table9', + component: tableDemo9 + }, ] // 创建路由器,使用createRouter方法,传入history(路由类型)和 创建好的路由routes diff --git a/src/views/Table_Demo6.vue b/src/views/Table_Demo6.vue new file mode 100644 index 0000000..b1e2920 --- /dev/null +++ b/src/views/Table_Demo6.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/views/Table_Demo7.vue b/src/views/Table_Demo7.vue new file mode 100644 index 0000000..d90b0df --- /dev/null +++ b/src/views/Table_Demo7.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/views/Table_Demo8.vue b/src/views/Table_Demo8.vue new file mode 100644 index 0000000..bf681bb --- /dev/null +++ b/src/views/Table_Demo8.vue @@ -0,0 +1,87 @@ + + + + diff --git a/src/views/Table_Demo9.vue b/src/views/Table_Demo9.vue new file mode 100644 index 0000000..0b93484 --- /dev/null +++ b/src/views/Table_Demo9.vue @@ -0,0 +1,79 @@ + + + + +