diff --git a/src/App.vue b/src/App.vue
index 2391a68..7a03e22 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,6 +9,8 @@
Table Demo 7: 多级表头
Table Demo 8: 合并行列
Table Demo 9: 带状态的行
+ Table Demo 10: 单行选择
+ Table Demo 11: 多行选择
diff --git a/src/router/index.js b/src/router/index.js
index e4c7e7e..757402d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -11,6 +11,8 @@ 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')
+const tableDemo10 = () => import('../views/Table_Demo10.vue')
+const tableDemo11 = () => import('../views/Table_Demo11.vue')
// 引入组件
@@ -67,6 +69,16 @@ const routes = [
name: 'table9',
component: tableDemo9
},
+ {
+ path: '/table10',
+ name: 'table10',
+ component: tableDemo10
+ },
+ {
+ path: '/table11',
+ name: 'table11',
+ component: tableDemo11
+ },
]
// 创建路由器,使用createRouter方法,传入history(路由类型)和 创建好的路由routes
diff --git a/src/views/Table_Demo10.vue b/src/views/Table_Demo10.vue
new file mode 100644
index 0000000..1ae1b8c
--- /dev/null
+++ b/src/views/Table_Demo10.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+ 选中第二行
+ 清除选中行
+
+
+
+
+
+
diff --git a/src/views/Table_Demo11.vue b/src/views/Table_Demo11.vue
new file mode 100644
index 0000000..c26f3a9
--- /dev/null
+++ b/src/views/Table_Demo11.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+ 选中第2行和第4行
+ 选中第2行和第4行
+
+
+
+
+
+