@vxe-ui/core 4.4.12 → 4.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +43 -43
  3. package/README.md +43 -43
  4. package/README.zh-TW.md +43 -43
  5. package/dist/all.esm.js +920 -0
  6. package/es/src/core.js +1 -1
  7. package/es/src/log.js +1 -1
  8. package/lib/index.umd.js +173 -73
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/src/core.js +1 -1
  11. package/lib/src/core.min.js +1 -1
  12. package/lib/src/log.js +1 -1
  13. package/lib/src/log.min.js +1 -1
  14. package/package.json +82 -79
  15. package/packages/index.ts +149 -149
  16. package/packages/src/clipboard.ts +56 -56
  17. package/packages/src/commands.ts +56 -56
  18. package/packages/src/config.ts +30 -30
  19. package/packages/src/configStore.ts +8 -8
  20. package/packages/src/core.ts +11 -11
  21. package/packages/src/dataStore.ts +4 -4
  22. package/packages/src/event.ts +160 -160
  23. package/packages/src/formats.ts +56 -56
  24. package/packages/src/hooks.ts +5 -5
  25. package/packages/src/i18n.ts +63 -63
  26. package/packages/src/i18nStore.ts +11 -11
  27. package/packages/src/icon.ts +32 -32
  28. package/packages/src/iconStore.ts +3 -3
  29. package/packages/src/interceptor.ts +64 -64
  30. package/packages/src/log.ts +19 -19
  31. package/packages/src/menus.ts +56 -56
  32. package/packages/src/permission.ts +61 -61
  33. package/packages/src/renderer.ts +48 -48
  34. package/packages/src/resize.ts +89 -89
  35. package/packages/src/store.ts +47 -47
  36. package/packages/src/theme.ts +20 -20
  37. package/packages/src/themeStore.ts +7 -7
  38. package/packages/src/useFns.ts +34 -34
  39. package/packages/src/validators.ts +7 -7
  40. package/packages/src/vm.ts +10 -10
  41. package/types/core/clipboard.d.ts +22 -22
  42. package/types/core/commands.d.ts +19 -19
  43. package/types/core/components.d.ts +5 -5
  44. package/types/core/formats.d.ts +19 -19
  45. package/types/core/global-config.d.ts +70 -70
  46. package/types/core/global-data.d.ts +7 -7
  47. package/types/core/global-event.d.ts +47 -47
  48. package/types/core/global-icon.d.ts +10 -10
  49. package/types/core/global-lang.d.ts +27 -27
  50. package/types/core/global-resize.d.ts +3 -3
  51. package/types/core/global-theme.d.ts +1 -1
  52. package/types/core/hooks.d.ts +14 -14
  53. package/types/core/index.d.ts +294 -294
  54. package/types/core/interceptor.d.ts +22 -22
  55. package/types/core/log.d.ts +8 -8
  56. package/types/core/menus.d.ts +19 -19
  57. package/types/core/permission.d.ts +10 -10
  58. package/types/core/renderer.d.ts +14 -14
  59. package/types/core/useFn.d.ts +27 -27
  60. package/types/core/validators.d.ts +19 -19
  61. package/types/index.d.ts +13 -13
  62. package/types/tool/common.d.ts +150 -150
  63. package/types/tool/index.d.ts +2 -2
  64. package/types/tool/util.d.ts +4 -4
@@ -1,294 +1,294 @@
1
- import { VNode } from 'vue'
2
- import { VxeGlobalConfig } from './global-config'
3
- import { VxeGlobalData } from './global-data'
4
- import { VxeGlobalIcon, VxeGlobalIconConfig } from './global-icon'
5
- import { VxeGlobalThemeName } from './global-theme'
6
- import { VxeGlobalI18nLocale } from './global-lang'
7
- import { VxeGlobalEvents, VxeGlobalEventKey, VxeGlobalCreateEventMethod } from './global-event'
8
- import { VxeGlobalResize } from './global-resize'
9
- import { VxeGlobalRenderer } from './renderer'
10
- import { VxeGlobalValidators } from './validators'
11
- import { VxeGlobalMenus } from './menus'
12
- import { VxeGlobalFormats } from './formats'
13
- import { VxeGlobalCommands } from './commands'
14
- import { VxeGlobalInterceptor } from './interceptor'
15
- import { VxeGlobalClipboard } from './clipboard'
16
- import { VxeGlobalPermission } from './permission'
17
- import { VxeGlobalComponentMethod, VxeGlobalGetComponentMethod, VxeGlobalHasComponentMethod } from './components'
18
- import { VxeGlobalUseFns } from './useFn'
19
- import { VxeGlobalHooks } from './hooks'
20
- import { VxeGlobalLog } from './log'
21
- import { VxeComponentBaseOptions, VxeComponentSlotType } from '../tool'
22
-
23
- /* eslint-disable no-use-before-define */
24
-
25
- export function setTheme(name: VxeGlobalThemeName): VxeUIExport
26
-
27
- export function getTheme(): VxeGlobalThemeName
28
-
29
- export function setConfig(options?: VxeGlobalConfig): VxeUIExport
30
- export function getConfig(): Required<VxeGlobalConfig>
31
- export function getConfig(key: keyof VxeGlobalConfig, defaultValue?: any): any
32
-
33
- export function setIcon(options?: VxeGlobalIcon): VxeUIExport
34
- export function getIcon(): Required<VxeGlobalIcon>
35
- export function getIcon(key: keyof VxeGlobalIcon): any
36
- export function renderGlobalIcon(name: keyof VxeGlobalIcon): VNode
37
- export function renderCustomIcon(icon: VxeGlobalIconConfig, name: string): VNode
38
-
39
- export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
40
- export function getLanguage(): VxeGlobalI18nLocale
41
- export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
42
- export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
43
- export function getI18n(key: string, args?: any): string
44
-
45
- export function getSlotVNs(vns: VxeComponentSlotType | VxeComponentSlotType[] | undefined): VxeComponentSlotType[]
46
-
47
- export const component: VxeGlobalComponentMethod
48
- export const getComponent: VxeGlobalGetComponentMethod
49
- export const hasComponent: VxeGlobalHasComponentMethod
50
-
51
- export const coreVersion: string
52
-
53
- export function renderEmptyElement(_vm: VxeComponentBaseOptions): VNode
54
-
55
- export function checkVersion(version: string, pVersion: number, sVersion?: number): boolean
56
-
57
- export const renderer: VxeGlobalRenderer
58
-
59
- export const validators: VxeGlobalValidators
60
-
61
- export const menus: VxeGlobalMenus
62
-
63
- export const formats: VxeGlobalFormats
64
-
65
- export const commands: VxeGlobalCommands
66
-
67
- export const interceptor: VxeGlobalInterceptor
68
-
69
- export const clipboard: VxeGlobalClipboard
70
-
71
- export const permission: VxeGlobalPermission
72
-
73
- export const globalEvents: VxeGlobalEvents
74
-
75
- export const globalResize: VxeGlobalResize
76
-
77
- export const globalStore: VxeGlobalData
78
-
79
- export const log: VxeGlobalLog
80
-
81
- export const useFns: VxeGlobalUseFns
82
-
83
- export const hooks: VxeGlobalHooks
84
-
85
- export interface VxeUIPluginObject {
86
- install(vxeui: VxeUIExport, ...options: any[]): void
87
- [key: string]: any
88
- }
89
-
90
- export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
91
-
92
- /**
93
- * Vxe UI core library
94
- */
95
- export interface VxeUIExport {
96
- /**
97
- * 核心版本号
98
- */
99
- coreVersion: string
100
- /**
101
- * UI 版本号
102
- */
103
- uiVersion: string
104
- /**
105
- * Table 版本号
106
- */
107
- tableVersion: string
108
- /**
109
- * Design 版本号
110
- */
111
- designVersion: string
112
- /**
113
- * Gantt 版本号
114
- */
115
- ganttVersion: string
116
- /**
117
- * 渲染一个空元素
118
- */
119
- renderEmptyElement: typeof renderEmptyElement
120
- /**
121
- * 设置全局主题
122
- */
123
- setTheme: typeof setTheme
124
- /**
125
- * 获取全局主题
126
- */
127
- getTheme: typeof getTheme
128
- /**
129
- * 设置全局参数
130
- */
131
- setConfig: typeof setConfig
132
- /**
133
- * 获取全局参数
134
- */
135
- getConfig: typeof getConfig
136
- /**
137
- * 设置全局图标
138
- */
139
- setIcon: typeof setIcon
140
- /**
141
- * 渲染全局配置图标
142
- */
143
- renderGlobalIcon : typeof renderGlobalIcon
144
- /**
145
- * 渲染自定义图标
146
- */
147
- renderCustomIcon : typeof renderCustomIcon
148
- /**
149
- * 判断是否已经安装了该语言包,如果已安装则返回 true
150
- */
151
- hasLanguage: typeof hasLanguage
152
- /**
153
- * 获取当前显示语言
154
- */
155
- getLanguage: typeof getLanguage
156
- /**
157
- * 设置组件当前语言
158
- */
159
- setLanguage: typeof setLanguage
160
- /**
161
- * 设置组件语言数据
162
- */
163
- setI18n: typeof setI18n
164
- /**
165
- * 获取组件语言值
166
- */
167
- getI18n: typeof getI18n
168
-
169
- /**
170
- * 获取全局图标
171
- */
172
- getIcon: typeof getIcon,
173
-
174
- /**
175
- * 全局渲染器
176
- */
177
- renderer: VxeGlobalRenderer
178
- /**
179
- * 全局校验扩展
180
- */
181
- validators: VxeGlobalValidators
182
- /**
183
- * 全局右键菜单扩展
184
- */
185
- menus: VxeGlobalMenus
186
- /**
187
- * 全局格式化对象
188
- */
189
- formats: VxeGlobalFormats
190
- /**
191
- * 全局操作指令
192
- */
193
- commands: VxeGlobalCommands
194
- /**
195
- * 全局事件拦截处理对象
196
- */
197
- interceptor: VxeGlobalInterceptor
198
- /**
199
- * 全局剪贴板
200
- */
201
- clipboard: VxeGlobalClipboard
202
- /**
203
- * 全局权限控制
204
- */
205
- permission: VxeGlobalPermission
206
-
207
- /**
208
- * 全局事件管理
209
- */
210
- globalEvents: VxeGlobalEvents
211
- createEvent: VxeGlobalCreateEventMethod
212
- GLOBAL_EVENT_KEYS: VxeGlobalEventKey
213
-
214
- /**
215
- * 全局观察者事件
216
- */
217
- globalResize: VxeGlobalResize
218
-
219
- /**
220
- * 全局数据对象
221
- */
222
- globalStore: VxeGlobalData
223
-
224
- /**
225
- * 全局日志
226
- */
227
- log: VxeGlobalLog
228
-
229
- getSlotVNs: typeof getSlotVNs
230
-
231
- /**
232
- * 注册的组件
233
- */
234
- component: VxeGlobalComponentMethod
235
-
236
- /**
237
- * 获取已注册的组件
238
- */
239
- getComponent: VxeGlobalGetComponentMethod
240
-
241
- /**
242
- * 判断组件是否已注册
243
- */
244
- hasComponent: VxeGlobalHasComponentMethod
245
-
246
- /**
247
- * 扩展插件
248
- */
249
- hooks: VxeGlobalHooks
250
-
251
- /**
252
- * 通用 Use API 函数
253
- */
254
- useFns: VxeGlobalUseFns
255
-
256
- /**
257
- * 检查版本号是否匹配
258
- */
259
- checkVersion: typeof checkVersion
260
-
261
- /**
262
- * 安装插件
263
- */
264
- use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
265
- }
266
-
267
- /**
268
- * Vxe UI core library
269
- */
270
- export const VxeUI: VxeUIExport
271
-
272
- export * from './global-config'
273
- export * from './global-data'
274
- export * from './global-icon'
275
- export * from './global-theme'
276
- export * from './global-lang'
277
- export * from './global-event'
278
- export * from './global-resize'
279
-
280
- export * from './renderer'
281
- export * from './validators'
282
- export * from './menus'
283
- export * from './formats'
284
- export * from './commands'
285
- export * from './interceptor'
286
- export * from './clipboard'
287
- export * from './permission'
288
- export * from './log'
289
-
290
- export * from './components'
291
- export * from './useFn'
292
- export * from './hooks'
293
-
294
- export default VxeUI
1
+ import { VNode } from 'vue'
2
+ import { VxeGlobalConfig } from './global-config'
3
+ import { VxeGlobalData } from './global-data'
4
+ import { VxeGlobalIcon, VxeGlobalIconConfig } from './global-icon'
5
+ import { VxeGlobalThemeName } from './global-theme'
6
+ import { VxeGlobalI18nLocale } from './global-lang'
7
+ import { VxeGlobalEvents, VxeGlobalEventKey, VxeGlobalCreateEventMethod } from './global-event'
8
+ import { VxeGlobalResize } from './global-resize'
9
+ import { VxeGlobalRenderer } from './renderer'
10
+ import { VxeGlobalValidators } from './validators'
11
+ import { VxeGlobalMenus } from './menus'
12
+ import { VxeGlobalFormats } from './formats'
13
+ import { VxeGlobalCommands } from './commands'
14
+ import { VxeGlobalInterceptor } from './interceptor'
15
+ import { VxeGlobalClipboard } from './clipboard'
16
+ import { VxeGlobalPermission } from './permission'
17
+ import { VxeGlobalComponentMethod, VxeGlobalGetComponentMethod, VxeGlobalHasComponentMethod } from './components'
18
+ import { VxeGlobalUseFns } from './useFn'
19
+ import { VxeGlobalHooks } from './hooks'
20
+ import { VxeGlobalLog } from './log'
21
+ import { VxeComponentBaseOptions, VxeComponentSlotType } from '../tool'
22
+
23
+ /* eslint-disable no-use-before-define */
24
+
25
+ export function setTheme(name: VxeGlobalThemeName): VxeUIExport
26
+
27
+ export function getTheme(): VxeGlobalThemeName
28
+
29
+ export function setConfig(options?: VxeGlobalConfig): VxeUIExport
30
+ export function getConfig(): Required<VxeGlobalConfig>
31
+ export function getConfig(key: keyof VxeGlobalConfig, defaultValue?: any): any
32
+
33
+ export function setIcon(options?: VxeGlobalIcon): VxeUIExport
34
+ export function getIcon(): Required<VxeGlobalIcon>
35
+ export function getIcon(key: keyof VxeGlobalIcon): any
36
+ export function renderGlobalIcon(name: keyof VxeGlobalIcon): VNode
37
+ export function renderCustomIcon(icon: VxeGlobalIconConfig, name: string): VNode
38
+
39
+ export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
40
+ export function getLanguage(): VxeGlobalI18nLocale
41
+ export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
42
+ export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
43
+ export function getI18n(key: string, args?: any): string
44
+
45
+ export function getSlotVNs(vns: VxeComponentSlotType | VxeComponentSlotType[] | undefined): VxeComponentSlotType[]
46
+
47
+ export const component: VxeGlobalComponentMethod
48
+ export const getComponent: VxeGlobalGetComponentMethod
49
+ export const hasComponent: VxeGlobalHasComponentMethod
50
+
51
+ export const coreVersion: string
52
+
53
+ export function renderEmptyElement(_vm: VxeComponentBaseOptions): VNode
54
+
55
+ export function checkVersion(version: string, pVersion: number, sVersion?: number): boolean
56
+
57
+ export const renderer: VxeGlobalRenderer
58
+
59
+ export const validators: VxeGlobalValidators
60
+
61
+ export const menus: VxeGlobalMenus
62
+
63
+ export const formats: VxeGlobalFormats
64
+
65
+ export const commands: VxeGlobalCommands
66
+
67
+ export const interceptor: VxeGlobalInterceptor
68
+
69
+ export const clipboard: VxeGlobalClipboard
70
+
71
+ export const permission: VxeGlobalPermission
72
+
73
+ export const globalEvents: VxeGlobalEvents
74
+
75
+ export const globalResize: VxeGlobalResize
76
+
77
+ export const globalStore: VxeGlobalData
78
+
79
+ export const log: VxeGlobalLog
80
+
81
+ export const useFns: VxeGlobalUseFns
82
+
83
+ export const hooks: VxeGlobalHooks
84
+
85
+ export interface VxeUIPluginObject {
86
+ install(vxeui: VxeUIExport, ...options: any[]): void
87
+ [key: string]: any
88
+ }
89
+
90
+ export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
91
+
92
+ /**
93
+ * Vxe UI core library
94
+ */
95
+ export interface VxeUIExport {
96
+ /**
97
+ * 核心版本号
98
+ */
99
+ coreVersion: string
100
+ /**
101
+ * UI 版本号
102
+ */
103
+ uiVersion: string
104
+ /**
105
+ * Table 版本号
106
+ */
107
+ tableVersion: string
108
+ /**
109
+ * Design 版本号
110
+ */
111
+ designVersion: string
112
+ /**
113
+ * Gantt 版本号
114
+ */
115
+ ganttVersion: string
116
+ /**
117
+ * 渲染一个空元素
118
+ */
119
+ renderEmptyElement: typeof renderEmptyElement
120
+ /**
121
+ * 设置全局主题
122
+ */
123
+ setTheme: typeof setTheme
124
+ /**
125
+ * 获取全局主题
126
+ */
127
+ getTheme: typeof getTheme
128
+ /**
129
+ * 设置全局参数
130
+ */
131
+ setConfig: typeof setConfig
132
+ /**
133
+ * 获取全局参数
134
+ */
135
+ getConfig: typeof getConfig
136
+ /**
137
+ * 设置全局图标
138
+ */
139
+ setIcon: typeof setIcon
140
+ /**
141
+ * 渲染全局配置图标
142
+ */
143
+ renderGlobalIcon : typeof renderGlobalIcon
144
+ /**
145
+ * 渲染自定义图标
146
+ */
147
+ renderCustomIcon : typeof renderCustomIcon
148
+ /**
149
+ * 判断是否已经安装了该语言包,如果已安装则返回 true
150
+ */
151
+ hasLanguage: typeof hasLanguage
152
+ /**
153
+ * 获取当前显示语言
154
+ */
155
+ getLanguage: typeof getLanguage
156
+ /**
157
+ * 设置组件当前语言
158
+ */
159
+ setLanguage: typeof setLanguage
160
+ /**
161
+ * 设置组件语言数据
162
+ */
163
+ setI18n: typeof setI18n
164
+ /**
165
+ * 获取组件语言值
166
+ */
167
+ getI18n: typeof getI18n
168
+
169
+ /**
170
+ * 获取全局图标
171
+ */
172
+ getIcon: typeof getIcon,
173
+
174
+ /**
175
+ * 全局渲染器
176
+ */
177
+ renderer: VxeGlobalRenderer
178
+ /**
179
+ * 全局校验扩展
180
+ */
181
+ validators: VxeGlobalValidators
182
+ /**
183
+ * 全局右键菜单扩展
184
+ */
185
+ menus: VxeGlobalMenus
186
+ /**
187
+ * 全局格式化对象
188
+ */
189
+ formats: VxeGlobalFormats
190
+ /**
191
+ * 全局操作指令
192
+ */
193
+ commands: VxeGlobalCommands
194
+ /**
195
+ * 全局事件拦截处理对象
196
+ */
197
+ interceptor: VxeGlobalInterceptor
198
+ /**
199
+ * 全局剪贴板
200
+ */
201
+ clipboard: VxeGlobalClipboard
202
+ /**
203
+ * 全局权限控制
204
+ */
205
+ permission: VxeGlobalPermission
206
+
207
+ /**
208
+ * 全局事件管理
209
+ */
210
+ globalEvents: VxeGlobalEvents
211
+ createEvent: VxeGlobalCreateEventMethod
212
+ GLOBAL_EVENT_KEYS: VxeGlobalEventKey
213
+
214
+ /**
215
+ * 全局观察者事件
216
+ */
217
+ globalResize: VxeGlobalResize
218
+
219
+ /**
220
+ * 全局数据对象
221
+ */
222
+ globalStore: VxeGlobalData
223
+
224
+ /**
225
+ * 全局日志
226
+ */
227
+ log: VxeGlobalLog
228
+
229
+ getSlotVNs: typeof getSlotVNs
230
+
231
+ /**
232
+ * 注册的组件
233
+ */
234
+ component: VxeGlobalComponentMethod
235
+
236
+ /**
237
+ * 获取已注册的组件
238
+ */
239
+ getComponent: VxeGlobalGetComponentMethod
240
+
241
+ /**
242
+ * 判断组件是否已注册
243
+ */
244
+ hasComponent: VxeGlobalHasComponentMethod
245
+
246
+ /**
247
+ * 扩展插件
248
+ */
249
+ hooks: VxeGlobalHooks
250
+
251
+ /**
252
+ * 通用 Use API 函数
253
+ */
254
+ useFns: VxeGlobalUseFns
255
+
256
+ /**
257
+ * 检查版本号是否匹配
258
+ */
259
+ checkVersion: typeof checkVersion
260
+
261
+ /**
262
+ * 安装插件
263
+ */
264
+ use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
265
+ }
266
+
267
+ /**
268
+ * Vxe UI core library
269
+ */
270
+ export const VxeUI: VxeUIExport
271
+
272
+ export * from './global-config'
273
+ export * from './global-data'
274
+ export * from './global-icon'
275
+ export * from './global-theme'
276
+ export * from './global-lang'
277
+ export * from './global-event'
278
+ export * from './global-resize'
279
+
280
+ export * from './renderer'
281
+ export * from './validators'
282
+ export * from './menus'
283
+ export * from './formats'
284
+ export * from './commands'
285
+ export * from './interceptor'
286
+ export * from './clipboard'
287
+ export * from './permission'
288
+ export * from './log'
289
+
290
+ export * from './components'
291
+ export * from './useFn'
292
+ export * from './hooks'
293
+
294
+ export default VxeUI
@@ -1,22 +1,22 @@
1
- /* eslint-disable no-use-before-define */
2
-
3
- export namespace VxeGlobalInterceptorHandles {
4
- export interface InterceptorOptions {
5
- tableInterceptorMethod?: (params: any) => any
6
- }
7
-
8
- export type InterceptorCallback = (params: any) => any
9
- export interface InterceptorParams {}
10
- }
11
-
12
- /**
13
- * 全局事件拦截器
14
- */
15
- export interface VxeGlobalInterceptor {
16
- mixin(options: {
17
- [type: string]: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback
18
- }): VxeGlobalInterceptor
19
- get(type: string | null | undefined): VxeGlobalInterceptorHandles.InterceptorCallback[]
20
- add(type: string, callback: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback): VxeGlobalInterceptor
21
- delete(type: string | null | undefined, callback?: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback): void
22
- }
1
+ /* eslint-disable no-use-before-define */
2
+
3
+ export namespace VxeGlobalInterceptorHandles {
4
+ export interface InterceptorOptions {
5
+ tableInterceptorMethod?: (params: any) => any
6
+ }
7
+
8
+ export type InterceptorCallback = (params: any) => any
9
+ export interface InterceptorParams {}
10
+ }
11
+
12
+ /**
13
+ * 全局事件拦截器
14
+ */
15
+ export interface VxeGlobalInterceptor {
16
+ mixin(options: {
17
+ [type: string]: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback
18
+ }): VxeGlobalInterceptor
19
+ get(type: string | null | undefined): VxeGlobalInterceptorHandles.InterceptorCallback[]
20
+ add(type: string, callback: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback): VxeGlobalInterceptor
21
+ delete(type: string | null | undefined, callback?: VxeGlobalInterceptorHandles.InterceptorOptions | VxeGlobalInterceptorHandles.InterceptorCallback): void
22
+ }
@@ -1,8 +1,8 @@
1
- export function warnLog(): string
2
- export function errLog(): string
3
-
4
- export interface VxeGlobalLog {
5
- create (type: 'log' | 'warn' | 'error', name?: string): ((key: string, args?: any) => string)
6
- warn(key: string, args?: any): string
7
- err(key: string, args?: any): string
8
- }
1
+ export function warnLog(): string
2
+ export function errLog(): string
3
+
4
+ export interface VxeGlobalLog {
5
+ create (type: 'log' | 'warn' | 'error', name?: string): ((key: string, args?: any) => string)
6
+ warn(key: string, args?: any): string
7
+ err(key: string, args?: any): string
8
+ }