From 8d97214424d0fd9210d4075db89f80d87544ee19 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Sat, 30 Sep 2023 16:27:51 +0800 Subject: [PATCH] =?UTF-8?q?el-table=E7=BB=83=E4=B9=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++ src/router/index.js | 24 +++++++++++ src/views/Table_Demo6.vue | 43 +++++++++++++++++++ src/views/Table_Demo7.vue | 66 +++++++++++++++++++++++++++++ src/views/Table_Demo8.vue | 87 +++++++++++++++++++++++++++++++++++++++ src/views/Table_Demo9.vue | 79 +++++++++++++++++++++++++++++++++++ 6 files changed, 303 insertions(+) create mode 100644 src/views/Table_Demo6.vue create mode 100644 src/views/Table_Demo7.vue create mode 100644 src/views/Table_Demo8.vue create mode 100644 src/views/Table_Demo9.vue 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 @@ + + + + +