Fixed #647 - DataTable sortField allows a function, but the prop type is only a string

pull/682/head
Cagatay Civici 2020-11-25 14:45:42 +03:00
parent f6820e1db1
commit 27736c8ce7
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export declare class DataTable extends Vue {
lazy?: boolean;
loading?: boolean;
loadingIcon?: string;
sortField?: string;
sortField?: string | Function;
sortOrder?: number;
defaultSortOrder?: number;
multiSortMeta?: any[];

View File

@ -207,7 +207,7 @@ export default {
default: 'pi pi-spinner'
},
sortField: {
type: String,
type: [String, Function],
default: null
},
sortOrder: {

View File

@ -21,7 +21,7 @@ export declare class TreeTable extends Vue {
loadingIcon?: string;
rowHover?: boolean;
autoLayout?: boolean;
sortField?: string;
sortField?: string | Function;
sortOrder?: number;
defaultSortOrder?: number;
multiSortMeta?: any[];

View File

@ -166,7 +166,7 @@ export default {
default: false
},
sortField: {
type: String,
type: [String, Function],
default: null
},
sortOrder: {