@vxe-ui/core 1.0.12 → 1.0.13

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 (75) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +31 -31
  3. package/README.md +31 -31
  4. package/README.zh-TW.md +31 -31
  5. package/es/src/core.js +1 -1
  6. package/es/src/log.js +1 -1
  7. package/lib/index.umd.js +22 -19
  8. package/lib/index.umd.min.js +1 -1
  9. package/lib/src/clipboard.min.js +1 -1
  10. package/lib/src/commands.min.js +1 -1
  11. package/lib/src/core.js +1 -1
  12. package/lib/src/core.min.js +1 -1
  13. package/lib/src/event.min.js +1 -1
  14. package/lib/src/formats.min.js +1 -1
  15. package/lib/src/globalStore.min.js +1 -1
  16. package/lib/src/hooks.min.js +1 -1
  17. package/lib/src/i18n.min.js +1 -1
  18. package/lib/src/i18nStore.min.js +1 -1
  19. package/lib/src/iconStore.min.js +1 -1
  20. package/lib/src/interceptor.min.js +1 -1
  21. package/lib/src/log.js +1 -1
  22. package/lib/src/log.min.js +1 -1
  23. package/lib/src/menus.min.js +1 -1
  24. package/lib/src/permission.min.js +1 -1
  25. package/lib/src/renderer.min.js +1 -1
  26. package/lib/src/resize.min.js +1 -1
  27. package/lib/src/store.min.js +1 -1
  28. package/lib/src/themeStore.min.js +1 -1
  29. package/lib/src/useFns.min.js +1 -1
  30. package/lib/src/validators.min.js +1 -1
  31. package/package.json +78 -78
  32. package/packages/index.ts +4 -4
  33. package/packages/src/clipboard.ts +53 -53
  34. package/packages/src/commands.ts +62 -62
  35. package/packages/src/core.ts +167 -167
  36. package/packages/src/event.ts +113 -113
  37. package/packages/src/formats.ts +62 -62
  38. package/packages/src/globalStore.ts +8 -8
  39. package/packages/src/hooks.ts +5 -5
  40. package/packages/src/i18n.ts +19 -19
  41. package/packages/src/i18nStore.ts +11 -11
  42. package/packages/src/iconStore.ts +3 -3
  43. package/packages/src/interceptor.ts +65 -65
  44. package/packages/src/log.ts +19 -19
  45. package/packages/src/menus.ts +62 -62
  46. package/packages/src/permission.ts +39 -39
  47. package/packages/src/renderer.ts +50 -50
  48. package/packages/src/resize.ts +89 -89
  49. package/packages/src/store.ts +49 -49
  50. package/packages/src/themeStore.ts +7 -7
  51. package/packages/src/useFns.ts +34 -34
  52. package/packages/src/validators.ts +9 -9
  53. package/types/core/clipboard.d.ts +13 -13
  54. package/types/core/commands.d.ts +19 -19
  55. package/types/core/components.d.ts +4 -4
  56. package/types/core/formats.d.ts +19 -19
  57. package/types/core/global-config.d.ts +55 -55
  58. package/types/core/global-event.d.ts +39 -39
  59. package/types/core/global-icon.d.ts +6 -6
  60. package/types/core/global-lang.d.ts +1 -1
  61. package/types/core/global-resize.d.ts +3 -3
  62. package/types/core/global-theme.d.ts +1 -1
  63. package/types/core/hooks.d.ts +14 -14
  64. package/types/core/index.d.ts +224 -224
  65. package/types/core/interceptor.d.ts +22 -22
  66. package/types/core/log.d.ts +8 -8
  67. package/types/core/menus.d.ts +19 -19
  68. package/types/core/permission.d.ts +10 -10
  69. package/types/core/renderer.d.ts +14 -14
  70. package/types/core/useFn.d.ts +27 -27
  71. package/types/core/validators.d.ts +19 -19
  72. package/types/index.d.ts +10 -10
  73. package/types/tool/common.d.ts +99 -99
  74. package/types/tool/index.d.ts +2 -2
  75. package/types/tool/util.d.ts +4 -4
@@ -1,39 +1,39 @@
1
- import { VxeComponentBaseOptions, VxeComponentEvent } from '../tool'
2
-
3
- export type VxeGlobalEventType = 'copy' | 'cut' | 'paste' | 'keydown' | 'contextmenu' | 'mousedown' | 'blur' | 'resize' | 'mousewheel'
4
-
5
- export type VxeGlobalEventKey = {
6
- F2: 'F2'
7
- ESCAPE: 'Escape'
8
- ENTER: 'Enter'
9
- TAB: 'Tab'
10
- DELETE: 'Delete'
11
- BACKSPACE: 'Backspace'
12
- SPACEBAR: ' '
13
- CONTEXT_MENU: 'ContextMenu'
14
- ARROW_UP: 'ArrowUp'
15
- ARROW_DOWN: 'ArrowDown'
16
- ARROW_LEFT: 'ArrowLeft'
17
- ARROW_RIGHT: 'ArrowRight'
18
- PAGE_UP: 'PageUp'
19
- PAGE_DOWN: 'PageDown'
20
- R: 'R'
21
- P: 'P'
22
- Z: 'Z'
23
- X: 'X'
24
- C: 'C'
25
- V: 'V'
26
- M: 'M'
27
- }
28
-
29
- export const GLOBAL_EVENT_KEYS: VxeGlobalEventKey
30
-
31
- export type VxeGlobalCreateEventMethod = (evnt: Event | null, params1: any, params2?: any) => VxeComponentEvent
32
-
33
- export const createEvent: VxeGlobalCreateEventMethod
34
-
35
- export interface VxeGlobalEvents {
36
- on (comp: VxeComponentBaseOptions, type: VxeGlobalEventType, cb: (evnt: any) => void): void
37
- off (comp: VxeComponentBaseOptions, type: VxeGlobalEventType): void
38
- hasKey(evnt: KeyboardEvent, targetKey: string): boolean,
39
- }
1
+ import { VxeComponentBaseOptions, VxeComponentEvent } from '../tool'
2
+
3
+ export type VxeGlobalEventType = 'copy' | 'cut' | 'paste' | 'keydown' | 'contextmenu' | 'mousedown' | 'blur' | 'resize' | 'mousewheel'
4
+
5
+ export type VxeGlobalEventKey = {
6
+ F2: 'F2'
7
+ ESCAPE: 'Escape'
8
+ ENTER: 'Enter'
9
+ TAB: 'Tab'
10
+ DELETE: 'Delete'
11
+ BACKSPACE: 'Backspace'
12
+ SPACEBAR: ' '
13
+ CONTEXT_MENU: 'ContextMenu'
14
+ ARROW_UP: 'ArrowUp'
15
+ ARROW_DOWN: 'ArrowDown'
16
+ ARROW_LEFT: 'ArrowLeft'
17
+ ARROW_RIGHT: 'ArrowRight'
18
+ PAGE_UP: 'PageUp'
19
+ PAGE_DOWN: 'PageDown'
20
+ R: 'R'
21
+ P: 'P'
22
+ Z: 'Z'
23
+ X: 'X'
24
+ C: 'C'
25
+ V: 'V'
26
+ M: 'M'
27
+ }
28
+
29
+ export const GLOBAL_EVENT_KEYS: VxeGlobalEventKey
30
+
31
+ export type VxeGlobalCreateEventMethod = (evnt: Event | null, params1: any, params2?: any) => VxeComponentEvent
32
+
33
+ export const createEvent: VxeGlobalCreateEventMethod
34
+
35
+ export interface VxeGlobalEvents {
36
+ on (comp: VxeComponentBaseOptions, type: VxeGlobalEventType, cb: (evnt: any) => void): void
37
+ off (comp: VxeComponentBaseOptions, type: VxeGlobalEventType): void
38
+ hasKey(evnt: KeyboardEvent, targetKey: string): boolean,
39
+ }
@@ -1,6 +1,6 @@
1
- /**
2
- * 全局图标参数
3
- */
4
- export interface VxeGlobalIcon {
5
- LOGO?: string
6
- }
1
+ /**
2
+ * 全局图标参数
3
+ */
4
+ export interface VxeGlobalIcon {
5
+ LOGO?: string
6
+ }
@@ -1 +1 @@
1
- export type VxeGlobalI18nLocale= '' | 'zh-CN' | 'zh-TC' | 'zh-HK' | 'zh-MO' | 'zh-TW' | 'en-US' | 'ja-JP' | 'es-ES' | 'pt-BR'
1
+ export type VxeGlobalI18nLocale= '' | 'zh-CN' | 'zh-TC' | 'zh-HK' | 'zh-MO' | 'zh-TW' | 'en-US' | 'ja-JP' | 'es-ES' | 'pt-BR'
@@ -1,3 +1,3 @@
1
- export interface VxeGlobalResize {
2
- create (callback: (...args: any[]) => void): ResizeObserver
3
- }
1
+ export interface VxeGlobalResize {
2
+ create (callback: (...args: any[]) => void): ResizeObserver
3
+ }
@@ -1 +1 @@
1
- export type VxeGlobalThemeName = null | '' | 'default' | 'light' | 'dark'
1
+ export type VxeGlobalThemeName = null | '' | 'default' | 'light' | 'dark'
@@ -1,14 +1,14 @@
1
- export namespace VxeGlobalHooksHandles {
2
- export interface HookOptions {}
3
- }
4
-
5
- export interface VxeGlobalHooks {
6
- mixin(options: {
7
- [type: string]: VxeGlobalHooksHandles.HookOptions
8
- }): VxeGlobalHooks
9
- has(type: string): boolean
10
- get(type: string): VxeGlobalHooksHandles.HookOptions
11
- add(type: string, options: VxeGlobalHooksHandles.HookOptions): VxeGlobalHooks
12
- delete(type: string): void
13
- forEach(callback: (options: VxeGlobalHooksHandles.HookOptions, type: string) => void): void
14
- }
1
+ export namespace VxeGlobalHooksHandles {
2
+ export interface HookOptions {}
3
+ }
4
+
5
+ export interface VxeGlobalHooks {
6
+ mixin(options: {
7
+ [type: string]: VxeGlobalHooksHandles.HookOptions
8
+ }): VxeGlobalHooks
9
+ has(type: string): boolean
10
+ get(type: string): VxeGlobalHooksHandles.HookOptions
11
+ add(type: string, options: VxeGlobalHooksHandles.HookOptions): VxeGlobalHooks
12
+ delete(type: string): void
13
+ forEach(callback: (options: VxeGlobalHooksHandles.HookOptions, type: string) => void): void
14
+ }
@@ -1,224 +1,224 @@
1
- import { VxeGlobalConfig } from './global-config'
2
- import { VxeGlobalIcon } from './global-icon'
3
- import { VxeGlobalThemeName } from './global-theme'
4
- import { VxeGlobalI18nLocale } from './global-lang'
5
- import { VxeGlobalEvents, VxeGlobalEventKey, VxeGlobalCreateEventMethod } from './global-event'
6
- import { VxeGlobalResize } from './global-resize'
7
- import { VxeGlobalRenderer } from './renderer'
8
- import { VxeGlobalValidators } from './validators'
9
- import { VxeGlobalMenus } from './menus'
10
- import { VxeGlobalFormats } from './formats'
11
- import { VxeGlobalCommands } from './commands'
12
- import { VxeGlobalInterceptor } from './interceptor'
13
- import { VxeGlobalClipboard } from './clipboard'
14
- import { VxeGlobalPermission } from './permission'
15
- import { VxeGlobalComponentMethod, VxeGlobalGetComponentMethod } from './components'
16
- import { VxeGlobalUseFns } from './useFn'
17
- import { VxeGlobalHooks } from './hooks'
18
- import { VxeGlobalLog } from './log'
19
-
20
- /* eslint-disable no-use-before-define */
21
-
22
- export function setTheme(name: VxeGlobalThemeName): VxeUIExport
23
-
24
- export function getTheme(): VxeGlobalThemeName
25
-
26
- export function setConfig(options?: VxeGlobalConfig): VxeUIExport
27
- export function getConfig(): Required<VxeGlobalConfig>
28
- export function getConfig(key: keyof VxeGlobalConfig, defaultValue?: any): any
29
-
30
- export function setIcon(options?: VxeGlobalIcon): VxeUIExport
31
- export function getIcon(): Required<VxeGlobalIcon>
32
- export function getIcon(key: keyof VxeGlobalIcon): any
33
-
34
- export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
35
- export function getLanguage(): VxeGlobalI18nLocale
36
- export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
37
- export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
38
- export function getI18n(key: string, args?: any): string
39
-
40
- export const component: VxeGlobalComponentMethod
41
- export const getComponent: VxeGlobalGetComponentMethod
42
-
43
- export const coreVersion: string
44
-
45
- export const renderer: VxeGlobalRenderer
46
-
47
- export const validators: VxeGlobalValidators
48
-
49
- export const menus: VxeGlobalMenus
50
-
51
- export const formats: VxeGlobalFormats
52
-
53
- export const commands: VxeGlobalCommands
54
-
55
- export const interceptor: VxeGlobalInterceptor
56
-
57
- export const clipboard: VxeGlobalClipboard
58
-
59
- export const permission: VxeGlobalPermission
60
-
61
- export const globalEvents: VxeGlobalEvents
62
-
63
- export const globalResize: VxeGlobalResize
64
-
65
- export const log: VxeGlobalLog
66
-
67
- export const useFns: VxeGlobalUseFns
68
-
69
- export const hooks: VxeGlobalHooks
70
-
71
- export interface VxeUIPluginObject {
72
- install(vxeui: VxeUIExport, ...options: any[]): void
73
- [key: string]: any
74
- }
75
-
76
- export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
77
-
78
- export interface VxeUIExport {
79
- /**
80
- * 版本号
81
- */
82
- coreVersion: string
83
- /**
84
- * 设置全局主题
85
- */
86
- setTheme: typeof setTheme
87
- /**
88
- * 获取全局主题
89
- */
90
- getTheme: typeof getTheme
91
- /**
92
- * 设置全局参数
93
- */
94
- setConfig: typeof setConfig
95
- /**
96
- * 获取全局参数
97
- */
98
- getConfig: typeof getConfig
99
- /**
100
- * 设置全局图标
101
- */
102
- setIcon: typeof setIcon
103
- /**
104
- * 判断是否支持该语言,安装语言包后返回 true
105
- */
106
- hasLanguage: typeof hasLanguage
107
- /**
108
- * 获取当前显示语言
109
- */
110
- getLanguage: typeof getLanguage
111
- /**
112
- * 设置组件当前语言
113
- */
114
- setLanguage: typeof setLanguage
115
- /**
116
- * 设置组件语言数据
117
- */
118
- setI18n: typeof setI18n
119
- /**
120
- * 获取组件语言值
121
- */
122
- getI18n: typeof getI18n
123
-
124
- /**
125
- * 获取全局图标
126
- */
127
- getIcon: typeof getIcon,
128
-
129
- /**
130
- * 全局渲染器
131
- */
132
- renderer: VxeGlobalRenderer
133
- /**
134
- * 全局校验扩展
135
- */
136
- validators: VxeGlobalValidators
137
- /**
138
- * 全局右键菜单扩展
139
- */
140
- menus: VxeGlobalMenus
141
- /**
142
- * 全局格式化对象
143
- */
144
- formats: VxeGlobalFormats
145
- /**
146
- * 全局操作指令
147
- */
148
- commands: VxeGlobalCommands
149
- /**
150
- * 全局事件拦截处理对象
151
- */
152
- interceptor: VxeGlobalInterceptor
153
- /**
154
- * 全局剪贴板
155
- */
156
- clipboard: VxeGlobalClipboard
157
- /**
158
- * 全局权限控制
159
- */
160
- permission: VxeGlobalPermission
161
-
162
- /**
163
- * 全局事件管理
164
- */
165
- globalEvents: VxeGlobalEvents
166
- createEvent: VxeGlobalCreateEventMethod
167
- GLOBAL_EVENT_KEYS: VxeGlobalEventKey
168
-
169
- /**
170
- * 全局观察者事件
171
- */
172
- globalResize: VxeGlobalResize
173
-
174
- /**
175
- * 全局日志
176
- */
177
- log: VxeGlobalLog
178
-
179
- /**
180
- * 已使用的组件
181
- */
182
- component: VxeGlobalComponentMethod
183
- getComponent: VxeGlobalGetComponentMethod
184
-
185
- /**
186
- * 扩展插件
187
- */
188
- hooks: VxeGlobalHooks
189
-
190
- /**
191
- * 通用 Use API 函数
192
- */
193
- useFns: VxeGlobalUseFns
194
-
195
- /**
196
- * 安装插件
197
- */
198
- use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
199
- }
200
-
201
- export const VxeUI: VxeUIExport
202
-
203
- export * from './global-config'
204
- export * from './global-icon'
205
- export * from './global-theme'
206
- export * from './global-lang'
207
- export * from './global-event'
208
- export * from './global-resize'
209
-
210
- export * from './renderer'
211
- export * from './validators'
212
- export * from './menus'
213
- export * from './formats'
214
- export * from './commands'
215
- export * from './interceptor'
216
- export * from './clipboard'
217
- export * from './permission'
218
- export * from './log'
219
-
220
- export * from './components'
221
- export * from './useFn'
222
- export * from './hooks'
223
-
224
- export default VxeUI
1
+ import { VxeGlobalConfig } from './global-config'
2
+ import { VxeGlobalIcon } from './global-icon'
3
+ import { VxeGlobalThemeName } from './global-theme'
4
+ import { VxeGlobalI18nLocale } from './global-lang'
5
+ import { VxeGlobalEvents, VxeGlobalEventKey, VxeGlobalCreateEventMethod } from './global-event'
6
+ import { VxeGlobalResize } from './global-resize'
7
+ import { VxeGlobalRenderer } from './renderer'
8
+ import { VxeGlobalValidators } from './validators'
9
+ import { VxeGlobalMenus } from './menus'
10
+ import { VxeGlobalFormats } from './formats'
11
+ import { VxeGlobalCommands } from './commands'
12
+ import { VxeGlobalInterceptor } from './interceptor'
13
+ import { VxeGlobalClipboard } from './clipboard'
14
+ import { VxeGlobalPermission } from './permission'
15
+ import { VxeGlobalComponentMethod, VxeGlobalGetComponentMethod } from './components'
16
+ import { VxeGlobalUseFns } from './useFn'
17
+ import { VxeGlobalHooks } from './hooks'
18
+ import { VxeGlobalLog } from './log'
19
+
20
+ /* eslint-disable no-use-before-define */
21
+
22
+ export function setTheme(name: VxeGlobalThemeName): VxeUIExport
23
+
24
+ export function getTheme(): VxeGlobalThemeName
25
+
26
+ export function setConfig(options?: VxeGlobalConfig): VxeUIExport
27
+ export function getConfig(): Required<VxeGlobalConfig>
28
+ export function getConfig(key: keyof VxeGlobalConfig, defaultValue?: any): any
29
+
30
+ export function setIcon(options?: VxeGlobalIcon): VxeUIExport
31
+ export function getIcon(): Required<VxeGlobalIcon>
32
+ export function getIcon(key: keyof VxeGlobalIcon): any
33
+
34
+ export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
35
+ export function getLanguage(): VxeGlobalI18nLocale
36
+ export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
37
+ export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
38
+ export function getI18n(key: string, args?: any): string
39
+
40
+ export const component: VxeGlobalComponentMethod
41
+ export const getComponent: VxeGlobalGetComponentMethod
42
+
43
+ export const coreVersion: string
44
+
45
+ export const renderer: VxeGlobalRenderer
46
+
47
+ export const validators: VxeGlobalValidators
48
+
49
+ export const menus: VxeGlobalMenus
50
+
51
+ export const formats: VxeGlobalFormats
52
+
53
+ export const commands: VxeGlobalCommands
54
+
55
+ export const interceptor: VxeGlobalInterceptor
56
+
57
+ export const clipboard: VxeGlobalClipboard
58
+
59
+ export const permission: VxeGlobalPermission
60
+
61
+ export const globalEvents: VxeGlobalEvents
62
+
63
+ export const globalResize: VxeGlobalResize
64
+
65
+ export const log: VxeGlobalLog
66
+
67
+ export const useFns: VxeGlobalUseFns
68
+
69
+ export const hooks: VxeGlobalHooks
70
+
71
+ export interface VxeUIPluginObject {
72
+ install(vxeui: VxeUIExport, ...options: any[]): void
73
+ [key: string]: any
74
+ }
75
+
76
+ export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
77
+
78
+ export interface VxeUIExport {
79
+ /**
80
+ * 版本号
81
+ */
82
+ coreVersion: string
83
+ /**
84
+ * 设置全局主题
85
+ */
86
+ setTheme: typeof setTheme
87
+ /**
88
+ * 获取全局主题
89
+ */
90
+ getTheme: typeof getTheme
91
+ /**
92
+ * 设置全局参数
93
+ */
94
+ setConfig: typeof setConfig
95
+ /**
96
+ * 获取全局参数
97
+ */
98
+ getConfig: typeof getConfig
99
+ /**
100
+ * 设置全局图标
101
+ */
102
+ setIcon: typeof setIcon
103
+ /**
104
+ * 判断是否支持该语言,安装语言包后返回 true
105
+ */
106
+ hasLanguage: typeof hasLanguage
107
+ /**
108
+ * 获取当前显示语言
109
+ */
110
+ getLanguage: typeof getLanguage
111
+ /**
112
+ * 设置组件当前语言
113
+ */
114
+ setLanguage: typeof setLanguage
115
+ /**
116
+ * 设置组件语言数据
117
+ */
118
+ setI18n: typeof setI18n
119
+ /**
120
+ * 获取组件语言值
121
+ */
122
+ getI18n: typeof getI18n
123
+
124
+ /**
125
+ * 获取全局图标
126
+ */
127
+ getIcon: typeof getIcon,
128
+
129
+ /**
130
+ * 全局渲染器
131
+ */
132
+ renderer: VxeGlobalRenderer
133
+ /**
134
+ * 全局校验扩展
135
+ */
136
+ validators: VxeGlobalValidators
137
+ /**
138
+ * 全局右键菜单扩展
139
+ */
140
+ menus: VxeGlobalMenus
141
+ /**
142
+ * 全局格式化对象
143
+ */
144
+ formats: VxeGlobalFormats
145
+ /**
146
+ * 全局操作指令
147
+ */
148
+ commands: VxeGlobalCommands
149
+ /**
150
+ * 全局事件拦截处理对象
151
+ */
152
+ interceptor: VxeGlobalInterceptor
153
+ /**
154
+ * 全局剪贴板
155
+ */
156
+ clipboard: VxeGlobalClipboard
157
+ /**
158
+ * 全局权限控制
159
+ */
160
+ permission: VxeGlobalPermission
161
+
162
+ /**
163
+ * 全局事件管理
164
+ */
165
+ globalEvents: VxeGlobalEvents
166
+ createEvent: VxeGlobalCreateEventMethod
167
+ GLOBAL_EVENT_KEYS: VxeGlobalEventKey
168
+
169
+ /**
170
+ * 全局观察者事件
171
+ */
172
+ globalResize: VxeGlobalResize
173
+
174
+ /**
175
+ * 全局日志
176
+ */
177
+ log: VxeGlobalLog
178
+
179
+ /**
180
+ * 已使用的组件
181
+ */
182
+ component: VxeGlobalComponentMethod
183
+ getComponent: VxeGlobalGetComponentMethod
184
+
185
+ /**
186
+ * 扩展插件
187
+ */
188
+ hooks: VxeGlobalHooks
189
+
190
+ /**
191
+ * 通用 Use API 函数
192
+ */
193
+ useFns: VxeGlobalUseFns
194
+
195
+ /**
196
+ * 安装插件
197
+ */
198
+ use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
199
+ }
200
+
201
+ export const VxeUI: VxeUIExport
202
+
203
+ export * from './global-config'
204
+ export * from './global-icon'
205
+ export * from './global-theme'
206
+ export * from './global-lang'
207
+ export * from './global-event'
208
+ export * from './global-resize'
209
+
210
+ export * from './renderer'
211
+ export * from './validators'
212
+ export * from './menus'
213
+ export * from './formats'
214
+ export * from './commands'
215
+ export * from './interceptor'
216
+ export * from './clipboard'
217
+ export * from './permission'
218
+ export * from './log'
219
+
220
+ export * from './components'
221
+ export * from './useFn'
222
+ export * from './hooks'
223
+
224
+ 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): 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): 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
+ }