@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
56 lines (55 loc) • 2.19 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
export type DataGridColumnFitMode = 'none' | 'average' | 'expand' | 'percentage';
export interface ColumnGroupItem {
field: string;
title?: string;
group?: (ColumnGroupItem | string)[];
}
export declare const columnOptions: {
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
fitColumns: {
type: BooleanConstructor;
default: boolean;
};
/** 自动适配列宽度模式 */
fitMode: {
type: PropType<DataGridColumnFitMode>;
default: string;
};
groups: {
type: {
(arrayLength: number): ColumnGroupItem[];
(...items: ColumnGroupItem[]): ColumnGroupItem[];
new (arrayLength: number): ColumnGroupItem[];
new (...items: ColumnGroupItem[]): ColumnGroupItem[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
of<T_4>(...items: T_4[]): T_4[];
readonly [Symbol.species]: ArrayConstructor;
};
defaut: never[];
};
/** 允许拖动表头改变列显示顺序 */
reorderColumn: {
type: BooleanConstructor;
default: boolean;
};
/** 允许拖动改变列宽度 */
resizeColumn: {
type: BooleanConstructor;
default: boolean;
};
/** 双击表头列自适应内容宽度 */
resizeColumnOnDoubleClick: {
type: BooleanConstructor;
default: boolean;
};
};
export type ColumnOptions = ExtractPropTypes<typeof columnOptions>;
export declare const treeViewProps: Record<string, any>;
export type TreeViewProps = ExtractPropTypes<typeof treeViewProps>;
export declare const propsResolver: (schemaValue?: Record<string, any>, mergeDefaults?: boolean) => Record<string, any>;