diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 4694c243a..bc33ede69 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -128,6 +128,7 @@
● MenuModel ● Breadcrumb + ● ContextMenu ● Menu ● Menubar ● TieredMenu diff --git a/src/components/contextmenu/ContextMenu.d.ts b/src/components/contextmenu/ContextMenu.d.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/components/contextmenu/ContextMenu.vue b/src/components/contextmenu/ContextMenu.vue new file mode 100644 index 000000000..bda2f403d --- /dev/null +++ b/src/components/contextmenu/ContextMenu.vue @@ -0,0 +1,260 @@ + + + + + \ No newline at end of file diff --git a/src/components/contextmenu/ContextMenuSub.vue b/src/components/contextmenu/ContextMenuSub.vue new file mode 100644 index 000000000..28f4aaba4 --- /dev/null +++ b/src/components/contextmenu/ContextMenuSub.vue @@ -0,0 +1,121 @@ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index ce0f97e4b..2c3103fb6 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,7 @@ import Checkbox from './components/checkbox/Checkbox'; import Chips from './components/chips/Chips'; import Column from './components/column/Column'; import ColumnGroup from './components/columngroup/ColumnGroup'; +import ContextMenu from './components/contextmenu/ContextMenu'; import DataTable from './components/datatable/DataTable'; import DataView from './components/dataview/DataView'; import DataViewLayoutOptions from './components/dataviewlayoutoptions/DataViewLayoutOptions'; @@ -89,6 +90,8 @@ Vue.component('Chart', Chart); Vue.component('Checkbox', Checkbox); Vue.component('Chips', Chips); Vue.component('Column', Column); +Vue.component('ColumnGroup', ColumnGroup); +Vue.component('ContextMenu', ContextMenu); Vue.component('DataTable', DataTable); Vue.component('DataView', DataView); Vue.component('DataViewLayoutOptions', DataViewLayoutOptions); @@ -99,7 +102,6 @@ Vue.component('Editor', Editor); Vue.component('Fieldset', Fieldset); Vue.component('FileUpload', FileUpload); Vue.component('FullCalendar', FullCalendar); -Vue.component('ColumnGroup', ColumnGroup); Vue.component('Inplace', Inplace); Vue.component('InputSwitch', InputSwitch); Vue.component('InputText', InputText); diff --git a/src/router.js b/src/router.js index 25a4b8262..a28e3f99a 100644 --- a/src/router.js +++ b/src/router.js @@ -116,6 +116,11 @@ export default new Router({ name: 'chips', component: () => import('./views/chips/ChipsDemo.vue') }, + { + path: '/contextmenu', + name: 'contextmenu', + component: () => import('./views/contextmenu/ContextMenuDemo.vue') + }, { path: '/datatable', name: 'datatable', diff --git a/src/views/contextmenu/ContextMenuDemo.vue b/src/views/contextmenu/ContextMenuDemo.vue new file mode 100644 index 000000000..365adee18 --- /dev/null +++ b/src/views/contextmenu/ContextMenuDemo.vue @@ -0,0 +1,167 @@ + + + \ No newline at end of file diff --git a/src/views/contextmenu/ContextMenuDoc.vue b/src/views/contextmenu/ContextMenuDoc.vue new file mode 100644 index 000000000..978f0be53 --- /dev/null +++ b/src/views/contextmenu/ContextMenuDoc.vue @@ -0,0 +1,456 @@ + \ No newline at end of file