Fixed sortField prop type.
parent
266b593938
commit
f76d1dfb34
|
@ -3,7 +3,7 @@ import Vue from 'vue';
|
||||||
declare class Column extends Vue {
|
declare class Column extends Vue {
|
||||||
columnKey?: any;
|
columnKey?: any;
|
||||||
field?: string;
|
field?: string;
|
||||||
sortField?: string;
|
sortField?: string | ((item: any) => any);
|
||||||
filterField?: string;
|
filterField?: string;
|
||||||
sortable?: boolean;
|
sortable?: boolean;
|
||||||
header?: any;
|
header?: any;
|
||||||
|
|
|
@ -11,7 +11,7 @@ export default {
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
sortField: {
|
sortField: {
|
||||||
type: String,
|
type: [String, Function],
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
filterField: {
|
filterField: {
|
||||||
|
|
|
@ -16,7 +16,7 @@ declare class DataTable extends Vue {
|
||||||
lazy?: boolean;
|
lazy?: boolean;
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
loadingIcon?: string;
|
loadingIcon?: string;
|
||||||
sortField?: string | Function;
|
sortField?: string | ((item: any) => any);
|
||||||
sortOrder?: number;
|
sortOrder?: number;
|
||||||
defaultSortOrder?: number;
|
defaultSortOrder?: number;
|
||||||
multiSortMeta?: any[];
|
multiSortMeta?: any[];
|
||||||
|
@ -58,6 +58,7 @@ declare class DataTable extends Vue {
|
||||||
virtualScroll?: boolean;
|
virtualScroll?: boolean;
|
||||||
virtualRowHeight?: string;
|
virtualRowHeight?: string;
|
||||||
virtualScrollDelay?: number;
|
virtualScrollDelay?: number;
|
||||||
|
|
||||||
$emit(eventName: 'page', event: Event): this;
|
$emit(eventName: 'page', event: Event): this;
|
||||||
$emit(eventName: 'sort', event: Event): this;
|
$emit(eventName: 'sort', event: Event): this;
|
||||||
$emit(eventName: 'filter', event: Event): this;
|
$emit(eventName: 'filter', event: Event): this;
|
||||||
|
@ -78,13 +79,14 @@ declare class DataTable extends Vue {
|
||||||
$emit(eventName: 'row-edit-init', event: Event): this;
|
$emit(eventName: 'row-edit-init', event: Event): this;
|
||||||
$emit(eventName: 'row-edit-save', event: Event): this;
|
$emit(eventName: 'row-edit-save', event: Event): this;
|
||||||
$emit(eventName: 'row-edit-cancel', event: Event): this;
|
$emit(eventName: 'row-edit-cancel', event: Event): this;
|
||||||
|
|
||||||
$slots: {
|
$slots: {
|
||||||
header: VNode[];
|
header: VNode[];
|
||||||
paginatorLeft: VNode[];
|
paginatorLeft: VNode[];
|
||||||
paginatorRight: VNode[];
|
paginatorRight: VNode[];
|
||||||
empty: VNode[];
|
empty: VNode[];
|
||||||
footer: VNode[];
|
footer: VNode[];
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export default DataTable;
|
export default DataTable;
|
|
@ -85,7 +85,7 @@ export default {
|
||||||
default: 'single'
|
default: 'single'
|
||||||
},
|
},
|
||||||
sortField: {
|
sortField: {
|
||||||
type: String,
|
type: [String, Function],
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
sortOrder: {
|
sortOrder: {
|
||||||
|
|
|
@ -13,7 +13,7 @@ declare class DataView extends Vue {
|
||||||
pageLinkSize?: number;
|
pageLinkSize?: number;
|
||||||
rowsPerPageOptions?: number[];
|
rowsPerPageOptions?: number[];
|
||||||
currentPageReportTemplate?: string;
|
currentPageReportTemplate?: string;
|
||||||
sortField?: string;
|
sortField?: string | ((item: any) => any);
|
||||||
sortOrder?: number;
|
sortOrder?: number;
|
||||||
lazy?: boolean;
|
lazy?: boolean;
|
||||||
$emit(eventName: 'page', event: Event): this;
|
$emit(eventName: 'page', event: Event): this;
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default {
|
||||||
default: '({currentPage} of {totalPages})'
|
default: '({currentPage} of {totalPages})'
|
||||||
},
|
},
|
||||||
sortField: {
|
sortField: {
|
||||||
type: String,
|
type: [String, Function],
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
sortOrder: {
|
sortOrder: {
|
||||||
|
|
Loading…
Reference in New Issue