diff --git a/src/App.vue b/src/App.vue index 7a03e22..165d44e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@ Table Demo 1: 基本表格 - Table Demo 2: 斑马线路由 - Table Demo 3: 带边框的路由 + Table Demo 2: 斑马线表格 + Table Demo 3: 带边框的表格 Table Demo 4: 自定义样式 Table Demo 5: 滚动条 Table Demo 6: 固定列 @@ -11,11 +11,14 @@ Table Demo 9: 带状态的行 Table Demo 10: 单行选择 Table Demo 11: 多行选择 + Table Demo 12: 排序 + Table Demo 13: 筛选 + Table Demo 14: 展开行 + Table Demo 15: 树形数据 - - + diff --git a/src/router/index.js b/src/router/index.js index 757402d..f111bf1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,6 +13,10 @@ 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') +const tableDemo12 = () => import('../views/Table_Demo12.vue') +const tableDemo13 = () => import('../views/Table_Demo13.vue') +const tableDemo14 = () => import('../views/Table_Demo14.vue') +const tableDemo15 = () => import('../views/Table_Demo15.vue') // 引入组件 @@ -79,6 +83,26 @@ const routes = [ name: 'table11', component: tableDemo11 }, + { + path: '/table12', + name: 'table12', + component: tableDemo12 + }, + { + path: '/table13', + name: 'table13', + component: tableDemo13 + }, + { + path: '/table14', + name: 'table14', + component: tableDemo14 + }, + { + path: '/table25', + name: 'table15', + component: tableDemo15 + }, ] // 创建路由器,使用createRouter方法,传入history(路由类型)和 创建好的路由routes diff --git a/src/views/Table_Demo12.vue b/src/views/Table_Demo12.vue new file mode 100644 index 0000000..178d101 --- /dev/null +++ b/src/views/Table_Demo12.vue @@ -0,0 +1,44 @@ + + + + + + + + + + + + diff --git a/src/views/Table_Demo13.vue b/src/views/Table_Demo13.vue new file mode 100644 index 0000000..89114ad --- /dev/null +++ b/src/views/Table_Demo13.vue @@ -0,0 +1,62 @@ + + + + + + + + + + + + diff --git a/src/views/Table_Demo14.vue b/src/views/Table_Demo14.vue new file mode 100644 index 0000000..b55ee9d --- /dev/null +++ b/src/views/Table_Demo14.vue @@ -0,0 +1,257 @@ + + + + + + State: {{ props.row.state}} + City: {{ props.row.city}} + Address: {{ props.row.address}} + Zip: {{ props.row.zip}} + Family + + + + + + + + + + + + + + + + + + diff --git a/src/views/Table_Demo15.vue b/src/views/Table_Demo15.vue new file mode 100644 index 0000000..8af5265 --- /dev/null +++ b/src/views/Table_Demo15.vue @@ -0,0 +1,62 @@ + + + + + + + + + + +
State: {{ props.row.state}}
City: {{ props.row.city}}
Address: {{ props.row.address}}
Zip: {{ props.row.zip}}