From fb366ea68ab45b189bd091b9d8788a44cc6d5d4b Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Mon, 5 Aug 2019 21:12:29 +0300 Subject: [PATCH] Initiated treeTable --- src/AppMenu.vue | 1 + src/components/column/Column.vue | 4 + src/components/treetable/TreeTable.d.ts | 0 src/components/treetable/TreeTable.vue | 469 +++++++++++ .../treetable/TreeTableColumnSlot.vue | 26 + src/components/treetable/TreeTableRow.vue | 96 +++ src/main.js | 2 + src/router.js | 7 +- src/views/treetable/TreeTableDemo.vue | 75 ++ src/views/treetable/TreeTableDoc.vue | 783 ++++++++++++++++++ src/views/treetable/TreeTableSubMenu.vue | 7 + 11 files changed, 1469 insertions(+), 1 deletion(-) create mode 100644 src/components/treetable/TreeTable.d.ts create mode 100644 src/components/treetable/TreeTable.vue create mode 100644 src/components/treetable/TreeTableColumnSlot.vue create mode 100644 src/components/treetable/TreeTableRow.vue create mode 100644 src/views/treetable/TreeTableDemo.vue create mode 100644 src/views/treetable/TreeTableDoc.vue create mode 100644 src/views/treetable/TreeTableSubMenu.vue diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 4b72e633e..cbfb7eeb5 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -63,6 +63,7 @@ ● Paginator ● PickList ● Tree + ● TreeTable diff --git a/src/components/column/Column.vue b/src/components/column/Column.vue index 493a01ba7..b5df3a314 100644 --- a/src/components/column/Column.vue +++ b/src/components/column/Column.vue @@ -61,6 +61,10 @@ export default { selectionMode: { type: String, default: null + }, + expander: { + type: Boolean, + default: false } }, render() { diff --git a/src/components/treetable/TreeTable.d.ts b/src/components/treetable/TreeTable.d.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue new file mode 100644 index 000000000..857bdef8e --- /dev/null +++ b/src/components/treetable/TreeTable.vue @@ -0,0 +1,469 @@ + + + + + \ No newline at end of file diff --git a/src/components/treetable/TreeTableColumnSlot.vue b/src/components/treetable/TreeTableColumnSlot.vue new file mode 100644 index 000000000..f63fd9b90 --- /dev/null +++ b/src/components/treetable/TreeTableColumnSlot.vue @@ -0,0 +1,26 @@ + \ No newline at end of file diff --git a/src/components/treetable/TreeTableRow.vue b/src/components/treetable/TreeTableRow.vue new file mode 100644 index 000000000..39efcef8b --- /dev/null +++ b/src/components/treetable/TreeTableRow.vue @@ -0,0 +1,96 @@ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index e558784cf..6c84e0b49 100644 --- a/src/main.js +++ b/src/main.js @@ -48,6 +48,7 @@ import TabView from './components/tabview/TabView'; import TabPanel from './components/tabpanel/TabPanel'; import Textarea from './components/textarea/Textarea'; import Tree from './components/tree/Tree'; +import TreeTable from './components/treetable/TreeTable'; import Toast from './components/toast/Toast'; import ToastService from './components/toast/ToastService'; import Toolbar from './components/toolbar/Toolbar'; @@ -119,6 +120,7 @@ Vue.component('Toast', Toast); Vue.component('Toolbar', Toolbar); Vue.component('ToggleButton', ToggleButton); Vue.component('Tree', Tree); +Vue.component('TreeTable', TreeTable); Vue.component('TriStateCheckbox', TriStateCheckbox); Vue.component('ValidationMessage', ValidationMessage); diff --git a/src/router.js b/src/router.js index a883ed7c1..897f252f5 100644 --- a/src/router.js +++ b/src/router.js @@ -380,7 +380,12 @@ export default new Router({ path: '/tree/filter', name: 'treefilter', component: () => import('./views/tree/TreeFilterDemo.vue') - }, + }, + { + path: '/treetable', + name: 'treetable', + component: () => import('./views/treetable/TreeTableDemo.vue') + }, { path: '/tristatecheckbox', name: 'tristatecheckbox', diff --git a/src/views/treetable/TreeTableDemo.vue b/src/views/treetable/TreeTableDemo.vue new file mode 100644 index 000000000..747dcfd41 --- /dev/null +++ b/src/views/treetable/TreeTableDemo.vue @@ -0,0 +1,75 @@ + + + + + \ No newline at end of file diff --git a/src/views/treetable/TreeTableDoc.vue b/src/views/treetable/TreeTableDoc.vue new file mode 100644 index 000000000..7d90a2fe1 --- /dev/null +++ b/src/views/treetable/TreeTableDoc.vue @@ -0,0 +1,783 @@ + \ No newline at end of file diff --git a/src/views/treetable/TreeTableSubMenu.vue b/src/views/treetable/TreeTableSubMenu.vue new file mode 100644 index 000000000..b7b2eb8d1 --- /dev/null +++ b/src/views/treetable/TreeTableSubMenu.vue @@ -0,0 +1,7 @@ +