From bb464113025cb45b1413a6f7b903f91c0b397fb6 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Fri, 19 Jul 2019 22:53:46 +0300 Subject: [PATCH] Types and shothand for PickList --- exports/orderlist.js | 3 +-- exports/picklist.d.ts | 1 + exports/picklist.js | 3 +++ src/components/picklist/PickList.d.ts | 8 ++++++-- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 exports/picklist.d.ts create mode 100644 exports/picklist.js diff --git a/exports/orderlist.js b/exports/orderlist.js index 5b79ab1f5..e34141f29 100644 --- a/exports/orderlist.js +++ b/exports/orderlist.js @@ -1,3 +1,2 @@ 'use strict'; -module.exports = require('./components/orderlist/OrderList.vue'); - \ No newline at end of file +module.exports = require('./components/orderlist/OrderList.vue'); \ No newline at end of file diff --git a/exports/picklist.d.ts b/exports/picklist.d.ts new file mode 100644 index 000000000..c1a4521d1 --- /dev/null +++ b/exports/picklist.d.ts @@ -0,0 +1 @@ +export * from './components/picklist/PickList'; \ No newline at end of file diff --git a/exports/picklist.js b/exports/picklist.js new file mode 100644 index 000000000..dbffa01ad --- /dev/null +++ b/exports/picklist.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/picklist/PickList.vue'); + \ No newline at end of file diff --git a/src/components/picklist/PickList.d.ts b/src/components/picklist/PickList.d.ts index ccf6a8675..a85486289 100644 --- a/src/components/picklist/PickList.d.ts +++ b/src/components/picklist/PickList.d.ts @@ -1,12 +1,16 @@ import Vue, {VNode} from 'vue'; export declare class PickList extends Vue { - value?: any[]; + value?: any[][]; + selection?: any[][]; dataKey?: string; - selection?: any[]; metaKeySelection?: boolean; listStyle?: any; $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; + $emit(eventName: 'move-to-target', e: { originalEvent: Event, items: [] }): this; + $emit(eventName: 'move-all-to-target', e: { originalEvent: Event, items: [] }): this; + $emit(eventName: 'move-to-source', e: { originalEvent: Event, items: [] }): this; + $emit(eventName: 'move-all-tou-source', e: { originalEvent: Event, items: [] }): this; $slots: { header: VNode[]; item: VNode[];