UNPKG

507 BTypeScriptView Raw
1import { ColumnInfo } from '../column'
2
3declare function formatsFunc(params: FormatsParams, ...args: any[]): any;
4
5/**
6 * 全局格式化
7 */
8export class VxeGlobalFormats {
9 mixin(map: { [type: string]: typeof formatsFunc }): VxeGlobalFormats;
10 get(type: string): typeof formatsFunc;
11 add(type: string, callback: typeof formatsFunc): VxeGlobalFormats;
12 delete(type: string): VxeGlobalFormats;
13}
14
15export interface FormatsParams {
16 cellValue: any;
17 row: any,
18 column: ColumnInfo;
19}