easyest-xqp
Version:
85 lines (84 loc) • 2.24 kB
TypeScript
import { ExtractPropTypes, PropType } from "vue";
export interface ITableColumn {
dataIndex: string;
text: string;
width?: string;
unit?: string;
showTooltip?: boolean;
sortable?: boolean;
align?: string;
multiWidth?: number;
minWidth?: number;
fixed?: boolean;
}
export declare const tableProps: {
readonly emptyText: {
readonly Type: PropType<string>;
readonly default: "暂无数据";
};
/**
* @description button type
*/
readonly columns: {
readonly type: PropType<ITableColumn[]>;
readonly default: readonly [];
};
readonly isSelection: {
readonly Type: PropType<boolean>;
readonly default: false;
};
readonly selectionWidth: {
readonly Type: NumberConstructor;
readonly default: 40;
};
readonly hasIndex: {
readonly Type: BooleanConstructor;
readonly default: false;
};
readonly indexWidth: {
readonly Type: NumberConstructor;
readonly default: 40;
};
readonly sortable: {
readonly Type: BooleanConstructor;
readonly default: false;
};
readonly tableColumnMinWidth: {
readonly type: PropType<number>;
readonly default: 50;
};
readonly tableWidth: {
readonly type: PropType<number>;
readonly default: 0;
};
readonly showPagination: {
readonly type: PropType<boolean>;
readonly default: false;
};
readonly background: {
readonly type: PropType<boolean>;
readonly default: true;
};
readonly layout: {
readonly type: PropType<string>;
readonly default: "prev, pager, next";
};
readonly total: {
readonly type: PropType<number>;
readonly default: 0;
};
readonly align: {
readonly type: PropType<string>;
readonly default: "center";
};
readonly currentPage: {
readonly type: PropType<number>;
readonly default: 1;
};
readonly pageSize: {
readonly type: PropType<number>;
readonly default: 5;
};
};
export type TableProps = ExtractPropTypes<typeof tableProps>;
export declare const emits: string[];