From 55ea6412dcee7b44eb81784549b5c92c7da6d28e Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 26 Sep 2023 19:00:37 +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 | 6 +++- src/router/index.js | 25 +++++++++++++- src/views/Table_Demo1.vue | 27 ++++++++++------ src/views/Table_Demo2.vue | 35 ++++++++++++++++++++ src/views/Table_Demo3.vue | 43 +++++++++++++++++++++++++ src/views/Table_Demo4.vue | 68 +++++++++++++++++++++++++++++++++++++++ src/views/Table_Demo5.vue | 58 +++++++++++++++++++++++++++++++++ 7 files changed, 250 insertions(+), 12 deletions(-) create mode 100644 src/views/Table_Demo2.vue create mode 100644 src/views/Table_Demo3.vue create mode 100644 src/views/Table_Demo4.vue create mode 100644 src/views/Table_Demo5.vue diff --git a/src/App.vue b/src/App.vue index 354cb24..f12037f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,10 @@ @@ -12,21 +12,28 @@ export default { data() { return { tableData: [ - { date: "2016-05-03", + { + date: "2016-05-03", name: "Tom", - address: "No. 189, Grove St, Los Angeles"}, - { date: "2016-05-04", + address: "No. 189, Grove St, Los Angeles" + }, + { + date: "2016-05-04", name: "Tom1", - address: "No. 1891, Grove St, Los Angeles"}, - { date: "2016-05-05", + address: "No. 1891, Grove St, Los Angeles" + }, + { + date: "2016-05-05", name: "Tom2", - address: "No. 1892, Grove St, Los Angeles"}, - { date: "2016-05-06", + address: "No. 1892, Grove St, Los Angeles" + }, + { + date: "2016-05-06", name: "Tom3", - address: "No. 1893, Grove St, Los Angeles"}, + address: "No. 1893, Grove St, Los Angeles" + }, ] } - }, } diff --git a/src/views/Table_Demo2.vue b/src/views/Table_Demo2.vue new file mode 100644 index 0000000..90fe183 --- /dev/null +++ b/src/views/Table_Demo2.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/views/Table_Demo3.vue b/src/views/Table_Demo3.vue new file mode 100644 index 0000000..1652f15 --- /dev/null +++ b/src/views/Table_Demo3.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/views/Table_Demo4.vue b/src/views/Table_Demo4.vue new file mode 100644 index 0000000..6a3d746 --- /dev/null +++ b/src/views/Table_Demo4.vue @@ -0,0 +1,68 @@ + + + + + + + diff --git a/src/views/Table_Demo5.vue b/src/views/Table_Demo5.vue new file mode 100644 index 0000000..e951128 --- /dev/null +++ b/src/views/Table_Demo5.vue @@ -0,0 +1,58 @@ + + + + +