@coreui/vue-pro
Version:
UI Components Library for Vue.js
59 lines (58 loc) • 1.22 kB
TypeScript
/**
* @ignore
*/
export interface Column {
filter?: boolean | ((values: any[], onChange: (value: any) => void) => VNode);
key: string;
label?: string;
sorter?: boolean;
_style?: any;
_props?: any;
}
import { VNode } from 'vue';
export interface ColumnFilter {
lazy?: boolean;
external?: boolean;
}
export interface ColumnFilterValue {
[key: string]: number | string | any;
}
export type FooterItem = {
label?: string;
_props?: any;
};
export type Item = {
[key: string]: number | string | any;
_cellProps?: any;
_props: Object;
_selected: boolean;
};
export interface ItemsPerPageSelect {
external?: boolean;
label?: string;
values?: Array<number>;
}
export interface Pagination {
external?: boolean;
}
export interface Sorter {
resetable?: boolean;
external?: boolean;
}
export interface ScopedColumns {
details?: (a: Item, b: number) => VNode;
}
export interface SorterValue {
column?: string;
state?: number | string;
}
export interface TableFilter {
external?: boolean;
lazy?: boolean;
label?: string;
placeholder?: string;
}
export interface NoItemsView {
noResults?: string;
noItems?: string;
}