1 | import Vue from 'vue'
|
2 |
|
3 | import { ModalController } from '../modal'
|
4 | import { SaveFileFunction, ReadFileFunction, PrintFunction } from '../export'
|
5 |
|
6 | import { VxeGlobalRenderer } from './renderer'
|
7 | import { VxeGlobalInterceptor } from './interceptor'
|
8 | import { VxeGlobalCommands } from './commands'
|
9 | import { VxeGlobalFormats } from './formats'
|
10 | import { VxeGlobalMenus } from './menus'
|
11 | import { VxeGlobalSetup } from './setup'
|
12 |
|
13 | export type VxeGlobalI18n = (key: string, args?: any) => number | string;
|
14 | export type VxeGlobalTranslate = (key: string, args?: any) => string;
|
15 | export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
|
16 |
|
17 | export const setup: VxeGlobalSetup;
|
18 | export const interceptor: VxeGlobalInterceptor;
|
19 | export const renderer: VxeGlobalRenderer;
|
20 | export const commands: VxeGlobalCommands;
|
21 | export const formats: VxeGlobalFormats;
|
22 | export const menus: VxeGlobalMenus;
|
23 | export const modal: ModalController;
|
24 | export const saveFile: SaveFileFunction;
|
25 | export const readFile: ReadFileFunction;
|
26 | export const print: PrintFunction;
|
27 | export const t: VxeGlobalI18n;
|
28 | export const _t: VxeGlobalTranslate;
|
29 | export const use: VxeGlobalUse;
|
30 |
|
31 | export interface VXETablePluginObject {
|
32 | install(vxetable: VXETableCore, ...options: any[]): void;
|
33 | [key: string]: any;
|
34 | }
|
35 |
|
36 | export type VXETableVersion = 'v1' | 'v2' | 'v3' | 'v4'
|
37 |
|
38 | export const v: VXETableVersion
|
39 |
|
40 | export interface VXETableCore {
|
41 | v: VXETableVersion;
|
42 | |
43 |
|
44 |
|
45 | setup: VxeGlobalSetup;
|
46 | |
47 |
|
48 |
|
49 | interceptor: VxeGlobalInterceptor;
|
50 | |
51 |
|
52 |
|
53 | renderer: VxeGlobalRenderer;
|
54 | |
55 |
|
56 |
|
57 | commands: VxeGlobalCommands;
|
58 | |
59 |
|
60 |
|
61 | formats: VxeGlobalFormats;
|
62 | |
63 |
|
64 |
|
65 | menus: VxeGlobalMenus;
|
66 | |
67 |
|
68 |
|
69 | modal: ModalController;
|
70 | |
71 |
|
72 |
|
73 | saveFile: SaveFileFunction;
|
74 | |
75 |
|
76 |
|
77 | readFile: ReadFileFunction;
|
78 | |
79 |
|
80 |
|
81 | print: PrintFunction;
|
82 | |
83 |
|
84 |
|
85 |
|
86 |
|
87 | use: VxeGlobalUse;
|
88 | |
89 |
|
90 |
|
91 | t: VxeGlobalI18n;
|
92 | _t: VxeGlobalTranslate;
|
93 | }
|
94 |
|
95 |
|
96 |
|
97 |
|
98 | export const VXETable: VXETableCore
|
99 |
|
100 | export * from './renderer'
|
101 | export * from './interceptor'
|
102 | export * from './commands'
|
103 | export * from './formats'
|
104 | export * from './menus'
|
105 | export * from './setup'
|
106 |
|
107 | export default VXETable
|
108 | |
\ | No newline at end of file |