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