From 932164462f730e616e093e94df828cf74257e021 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 7 Aug 2019 22:22:01 +0300 Subject: [PATCH] d.ts for TreeTable --- src/components/datatable/DataTable.d.ts | 2 +- src/components/tree/Tree.d.ts | 2 +- src/components/treetable/TreeTable.d.ts | 47 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.d.ts b/src/components/datatable/DataTable.d.ts index 6920c7d3d..5924f4246 100644 --- a/src/components/datatable/DataTable.d.ts +++ b/src/components/datatable/DataTable.d.ts @@ -21,7 +21,7 @@ export declare class DataTable extends Vue { defaultSortOrder?: number; multiSortMeta?: any[]; sortMode?: string; - filters: { + filters?: { [s: string]: any; }; selection?: any[]|any; diff --git a/src/components/tree/Tree.d.ts b/src/components/tree/Tree.d.ts index 97c9baf7e..d64a0a226 100644 --- a/src/components/tree/Tree.d.ts +++ b/src/components/tree/Tree.d.ts @@ -15,7 +15,7 @@ export declare class Tree extends Vue { $emit(eventName: 'node-select', node: any): this; $emit(eventName: 'node-unselect', node: any): this; $emit(eventName: 'node-expand', node: any): this; - $emit(eventName: 'node-collapsed', node: any): this; + $emit(eventName: 'node-collapse', node: any): this; $slots: { [key: string]: VNode[]; } diff --git a/src/components/treetable/TreeTable.d.ts b/src/components/treetable/TreeTable.d.ts index e69de29bb..656bba13e 100644 --- a/src/components/treetable/TreeTable.d.ts +++ b/src/components/treetable/TreeTable.d.ts @@ -0,0 +1,47 @@ +import Vue, {VNode} from 'vue'; + +export declare class TreeTable extends Vue { + value?: any; + expandedKeys?: any; + selectionKeys?: any; + selectionMode?: string; + metaKeySelection?: string; + rows?: number; + first?: number; + totalRecords?: number; + paginator?: boolean; + paginatorPosition?: string; + alwaysShowPaginator?: boolean; + paginatorTemplate?: string; + pageLinkSize?: number; + rowsPerPageOptions?: number[]; + currentPageReportTemplate?: string; + lazy?: boolean; + loading?: boolean; + loadingIcon?: string; + rowHover?: boolean; + autoLayout?: boolean; + sortField?: string; + sortOrder?: number; + defaultSortOrder?: number; + multiSortMeta?: any[]; + sortMode?: string; + filters?: { + [s: string]: any; + }; + filterMode?: string; + resizableColumns?: boolean; + columnResizeMode?: string; + $emit(eventName: 'node-select', node: any): this; + $emit(eventName: 'node-unselect', node: any): this; + $emit(eventName: 'node-expand', node: any): this; + $emit(eventName: 'node-collapse', node: any): this; + $emit(eventName: 'column-resize-end', event: Event): this; + $slots: { + header: VNode[]; + paginatorLeft: VNode[]; + paginatorRight: VNode[]; + empty: VNode[]; + footer: VNode[]; + } +} \ No newline at end of file