From 094c52e6fcbd4aebc0bea8b48b8ac9e720d8e0c6 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 18 Jul 2019 23:29:20 +0300 Subject: [PATCH] Initiated PickList component --- src/AppMenu.vue | 1 + src/components/picklist/PickList.d.ts | 14 + src/components/picklist/PickList.vue | 554 ++++++++++++++++++++++++++ src/main.js | 2 + src/router.js | 5 + src/views/orderlist/OrderListDemo.vue | 2 +- src/views/orderlist/OrderListDoc.vue | 6 +- src/views/picklist/PickListDemo.vue | 74 ++++ src/views/picklist/PickListDoc.vue | 225 +++++++++++ 9 files changed, 879 insertions(+), 4 deletions(-) create mode 100644 src/components/picklist/PickList.d.ts create mode 100644 src/components/picklist/PickList.vue create mode 100644 src/views/picklist/PickListDemo.vue create mode 100644 src/views/picklist/PickListDoc.vue diff --git a/src/AppMenu.vue b/src/AppMenu.vue index be702fa4e..4bdf92d16 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -60,6 +60,7 @@ ● FullCalendar ● OrderList ● Paginator + ● PickList diff --git a/src/components/picklist/PickList.d.ts b/src/components/picklist/PickList.d.ts new file mode 100644 index 000000000..ccf6a8675 --- /dev/null +++ b/src/components/picklist/PickList.d.ts @@ -0,0 +1,14 @@ +import Vue, {VNode} from 'vue'; + +export declare class PickList extends Vue { + value?: any[]; + dataKey?: string; + selection?: any[]; + metaKeySelection?: boolean; + listStyle?: any; + $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; + $slots: { + header: VNode[]; + item: VNode[]; + } +} \ No newline at end of file diff --git a/src/components/picklist/PickList.vue b/src/components/picklist/PickList.vue new file mode 100644 index 000000000..4ac23d5a1 --- /dev/null +++ b/src/components/picklist/PickList.vue @@ -0,0 +1,554 @@ + + + + + diff --git a/src/main.js b/src/main.js index 8c436c9ea..01cd5248c 100644 --- a/src/main.js +++ b/src/main.js @@ -31,6 +31,7 @@ import OverlayPanel from './components/overlaypanel/OverlayPanel'; import Paginator from './components/paginator/Paginator'; import Panel from './components/panel/Panel'; import Password from './components/password/Password'; +import PickList from './components/picklist/PickList'; import ProgressBar from './components/progressbar/ProgressBar'; import Rating from './components/rating/Rating'; import RadioButton from './components/radiobutton/RadioButton'; @@ -93,6 +94,7 @@ Vue.component('OverlayPanel', OverlayPanel); Vue.component('Paginator', Paginator); Vue.component('Panel', Panel); Vue.component('Password', Password); +Vue.component('PickList', PickList); Vue.component('ProgressBar', ProgressBar); Vue.component('RadioButton', RadioButton); Vue.component('Rating', Rating); diff --git a/src/router.js b/src/router.js index 9488b5133..1fa1af77a 100644 --- a/src/router.js +++ b/src/router.js @@ -260,6 +260,11 @@ export default new Router({ path: '/panel', name: 'panel', component: () => import('./views/panel/PanelDemo.vue') + }, + { + path: '/picklist', + name: 'picklist', + component: () => import('./views/picklist/PickListDemo.vue') }, { path: '/password', diff --git a/src/views/orderlist/OrderListDemo.vue b/src/views/orderlist/OrderListDemo.vue index f5720ff25..3ef5a78b8 100644 --- a/src/views/orderlist/OrderListDemo.vue +++ b/src/views/orderlist/OrderListDemo.vue @@ -8,7 +8,7 @@
- + diff --git a/src/views/orderlist/OrderListDoc.vue b/src/views/orderlist/OrderListDoc.vue index 5fb49a8c8..57771fa65 100644 --- a/src/views/orderlist/OrderListDoc.vue +++ b/src/views/orderlist/OrderListDoc.vue @@ -14,7 +14,7 @@ import OrderList from 'primevue/orderlist';