From c5d097bad65c3f4b1939185c22c106c6175625dc Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 16 Oct 2019 06:50:25 +0300 Subject: [PATCH] Fixed #63 - ColumnGroups for DataTable --- src/components/column/Column.vue | 8 + src/components/columngroup/ColumnGroup.vue | 30 ++++ src/components/datatable/DataTable.vue | 80 ++++++++-- src/components/row/Row.vue | 21 +++ src/main.js | 4 + src/router.js | 5 + src/views/datatable/DataTableColGroupDemo.vue | 141 ++++++++++++++++++ src/views/datatable/DataTableSubMenu.vue | 1 + 8 files changed, 275 insertions(+), 15 deletions(-) create mode 100644 src/components/columngroup/ColumnGroup.vue create mode 100644 src/components/row/Row.vue create mode 100644 src/views/datatable/DataTableColGroupDemo.vue diff --git a/src/components/column/Column.vue b/src/components/column/Column.vue index b5df3a314..808a8922e 100644 --- a/src/components/column/Column.vue +++ b/src/components/column/Column.vue @@ -65,6 +65,14 @@ export default { expander: { type: Boolean, default: false + }, + colspan: { + type: Number, + default: null + }, + rowspan: { + type: Number, + default: null } }, render() { diff --git a/src/components/columngroup/ColumnGroup.vue b/src/components/columngroup/ColumnGroup.vue new file mode 100644 index 000000000..5a81bd6d7 --- /dev/null +++ b/src/components/columngroup/ColumnGroup.vue @@ -0,0 +1,30 @@ + + + \ No newline at end of file diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index f7b2f48db..a2ce3eecb 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -22,8 +22,9 @@ - - + + - - - - -
+
{{col.header}} @@ -32,15 +33,19 @@
- - {{col.footer}} -