1 | import { ColumnInfo } from '../column'
|
2 |
|
3 | declare function formatsFunc(params: FormatsParams, ...args: any[]): any;
|
4 |
|
5 | /**
|
6 | * 全局格式化
|
7 | */
|
8 | export 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 |
|
15 | export interface FormatsParams {
|
16 | cellValue: any;
|
17 | row: any,
|
18 | column: ColumnInfo;
|
19 | }
|