@vxe-ui/core 4.0.23 → 4.0.24

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 (84) 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 +932 -137
  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/config.min.js +1 -1
  12. package/lib/src/configStore.min.js +1 -1
  13. package/lib/src/core.js +1 -1
  14. package/lib/src/core.min.js +1 -1
  15. package/lib/src/dataStore.min.js +1 -1
  16. package/lib/src/event.min.js +1 -1
  17. package/lib/src/formats.min.js +1 -1
  18. package/lib/src/hooks.min.js +1 -1
  19. package/lib/src/i18n.min.js +1 -1
  20. package/lib/src/i18nStore.min.js +1 -1
  21. package/lib/src/icon.min.js +1 -1
  22. package/lib/src/iconStore.min.js +1 -1
  23. package/lib/src/interceptor.min.js +1 -1
  24. package/lib/src/log.js +1 -1
  25. package/lib/src/log.min.js +1 -1
  26. package/lib/src/menus.min.js +1 -1
  27. package/lib/src/permission.min.js +1 -1
  28. package/lib/src/renderer.min.js +1 -1
  29. package/lib/src/resize.min.js +1 -1
  30. package/lib/src/store.min.js +1 -1
  31. package/lib/src/theme.min.js +1 -1
  32. package/lib/src/themeStore.min.js +1 -1
  33. package/lib/src/useFns.min.js +1 -1
  34. package/lib/src/validators.min.js +1 -1
  35. package/package.json +79 -79
  36. package/packages/index.ts +117 -117
  37. package/packages/src/clipboard.ts +53 -53
  38. package/packages/src/commands.ts +62 -62
  39. package/packages/src/config.ts +30 -30
  40. package/packages/src/configStore.ts +8 -8
  41. package/packages/src/core.ts +9 -9
  42. package/packages/src/dataStore.ts +4 -4
  43. package/packages/src/event.ts +127 -127
  44. package/packages/src/formats.ts +62 -62
  45. package/packages/src/hooks.ts +5 -5
  46. package/packages/src/i18n.ts +43 -43
  47. package/packages/src/i18nStore.ts +11 -11
  48. package/packages/src/icon.ts +16 -16
  49. package/packages/src/iconStore.ts +3 -3
  50. package/packages/src/interceptor.ts +65 -65
  51. package/packages/src/log.ts +19 -19
  52. package/packages/src/menus.ts +62 -62
  53. package/packages/src/permission.ts +61 -61
  54. package/packages/src/renderer.ts +50 -50
  55. package/packages/src/resize.ts +89 -89
  56. package/packages/src/store.ts +49 -49
  57. package/packages/src/theme.ts +20 -20
  58. package/packages/src/themeStore.ts +7 -7
  59. package/packages/src/useFns.ts +34 -34
  60. package/packages/src/validators.ts +9 -9
  61. package/types/core/clipboard.d.ts +13 -13
  62. package/types/core/commands.d.ts +19 -19
  63. package/types/core/components.d.ts +4 -4
  64. package/types/core/formats.d.ts +19 -19
  65. package/types/core/global-config.d.ts +62 -62
  66. package/types/core/global-data.d.ts +7 -7
  67. package/types/core/global-event.d.ts +39 -39
  68. package/types/core/global-icon.d.ts +6 -6
  69. package/types/core/global-lang.d.ts +22 -22
  70. package/types/core/global-resize.d.ts +3 -3
  71. package/types/core/global-theme.d.ts +1 -1
  72. package/types/core/hooks.d.ts +14 -14
  73. package/types/core/index.d.ts +255 -255
  74. package/types/core/interceptor.d.ts +22 -22
  75. package/types/core/log.d.ts +8 -8
  76. package/types/core/menus.d.ts +19 -19
  77. package/types/core/permission.d.ts +10 -10
  78. package/types/core/renderer.d.ts +14 -14
  79. package/types/core/useFn.d.ts +27 -27
  80. package/types/core/validators.d.ts +19 -19
  81. package/types/index.d.ts +13 -13
  82. package/types/tool/common.d.ts +111 -111
  83. package/types/tool/index.d.ts +2 -2
  84. package/types/tool/util.d.ts +4 -4
@@ -1,255 +1,255 @@
1
- import { VNode } from 'vue'
2
- import { VxeGlobalConfig } from './global-config'
3
- import { VxeGlobalData } from './global-data'
4
- import { VxeGlobalIcon } 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 } from './components'
18
- import { VxeGlobalUseFns } from './useFn'
19
- import { VxeGlobalHooks } from './hooks'
20
- import { VxeGlobalLog } from './log'
21
- import { VxeComponentBaseOptions } 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
-
37
- export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
38
- export function getLanguage(): VxeGlobalI18nLocale
39
- export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
40
- export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
41
- export function getI18n(key: string, args?: any): string
42
-
43
- export const component: VxeGlobalComponentMethod
44
- export const getComponent: VxeGlobalGetComponentMethod
45
-
46
- export const coreVersion: string
47
-
48
- export function renderEmptyElement(_vm: VxeComponentBaseOptions): VNode
49
-
50
- export const renderer: VxeGlobalRenderer
51
-
52
- export const validators: VxeGlobalValidators
53
-
54
- export const menus: VxeGlobalMenus
55
-
56
- export const formats: VxeGlobalFormats
57
-
58
- export const commands: VxeGlobalCommands
59
-
60
- export const interceptor: VxeGlobalInterceptor
61
-
62
- export const clipboard: VxeGlobalClipboard
63
-
64
- export const permission: VxeGlobalPermission
65
-
66
- export const globalEvents: VxeGlobalEvents
67
-
68
- export const globalResize: VxeGlobalResize
69
-
70
- export const globalStore: VxeGlobalData
71
-
72
- export const log: VxeGlobalLog
73
-
74
- export const useFns: VxeGlobalUseFns
75
-
76
- export const hooks: VxeGlobalHooks
77
-
78
- export interface VxeUIPluginObject {
79
- install(vxeui: VxeUIExport, ...options: any[]): void
80
- [key: string]: any
81
- }
82
-
83
- export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
84
-
85
- /**
86
- * Vxe UI core library
87
- */
88
- export interface VxeUIExport {
89
- /**
90
- * 核心版本号
91
- */
92
- coreVersion: string
93
- /**
94
- * UI 版本号
95
- */
96
- uiVersion: string
97
- /**
98
- * Table 版本号
99
- */
100
- tableVersion: string
101
- /**
102
- * 渲染一个空元素
103
- */
104
- renderEmptyElement: typeof renderEmptyElement
105
- /**
106
- * 设置全局主题
107
- */
108
- setTheme: typeof setTheme
109
- /**
110
- * 获取全局主题
111
- */
112
- getTheme: typeof getTheme
113
- /**
114
- * 设置全局参数
115
- */
116
- setConfig: typeof setConfig
117
- /**
118
- * 获取全局参数
119
- */
120
- getConfig: typeof getConfig
121
- /**
122
- * 设置全局图标
123
- */
124
- setIcon: typeof setIcon
125
- /**
126
- * 判断是否已经安装了该语言包,如果已安装则返回 true
127
- */
128
- hasLanguage: typeof hasLanguage
129
- /**
130
- * 获取当前显示语言
131
- */
132
- getLanguage: typeof getLanguage
133
- /**
134
- * 设置组件当前语言
135
- */
136
- setLanguage: typeof setLanguage
137
- /**
138
- * 设置组件语言数据
139
- */
140
- setI18n: typeof setI18n
141
- /**
142
- * 获取组件语言值
143
- */
144
- getI18n: typeof getI18n
145
-
146
- /**
147
- * 获取全局图标
148
- */
149
- getIcon: typeof getIcon,
150
-
151
- /**
152
- * 全局渲染器
153
- */
154
- renderer: VxeGlobalRenderer
155
- /**
156
- * 全局校验扩展
157
- */
158
- validators: VxeGlobalValidators
159
- /**
160
- * 全局右键菜单扩展
161
- */
162
- menus: VxeGlobalMenus
163
- /**
164
- * 全局格式化对象
165
- */
166
- formats: VxeGlobalFormats
167
- /**
168
- * 全局操作指令
169
- */
170
- commands: VxeGlobalCommands
171
- /**
172
- * 全局事件拦截处理对象
173
- */
174
- interceptor: VxeGlobalInterceptor
175
- /**
176
- * 全局剪贴板
177
- */
178
- clipboard: VxeGlobalClipboard
179
- /**
180
- * 全局权限控制
181
- */
182
- permission: VxeGlobalPermission
183
-
184
- /**
185
- * 全局事件管理
186
- */
187
- globalEvents: VxeGlobalEvents
188
- createEvent: VxeGlobalCreateEventMethod
189
- GLOBAL_EVENT_KEYS: VxeGlobalEventKey
190
-
191
- /**
192
- * 全局观察者事件
193
- */
194
- globalResize: VxeGlobalResize
195
-
196
- /**
197
- * 全局数据对象
198
- */
199
- globalStore: VxeGlobalData
200
-
201
- /**
202
- * 全局日志
203
- */
204
- log: VxeGlobalLog
205
-
206
- /**
207
- * 已使用的组件
208
- */
209
- component: VxeGlobalComponentMethod
210
- getComponent: VxeGlobalGetComponentMethod
211
-
212
- /**
213
- * 扩展插件
214
- */
215
- hooks: VxeGlobalHooks
216
-
217
- /**
218
- * 通用 Use API 函数
219
- */
220
- useFns: VxeGlobalUseFns
221
-
222
- /**
223
- * 安装插件
224
- */
225
- use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
226
- }
227
-
228
- /**
229
- * Vxe UI core library
230
- */
231
- export const VxeUI: VxeUIExport
232
-
233
- export * from './global-config'
234
- export * from './global-data'
235
- export * from './global-icon'
236
- export * from './global-theme'
237
- export * from './global-lang'
238
- export * from './global-event'
239
- export * from './global-resize'
240
-
241
- export * from './renderer'
242
- export * from './validators'
243
- export * from './menus'
244
- export * from './formats'
245
- export * from './commands'
246
- export * from './interceptor'
247
- export * from './clipboard'
248
- export * from './permission'
249
- export * from './log'
250
-
251
- export * from './components'
252
- export * from './useFn'
253
- export * from './hooks'
254
-
255
- export default VxeUI
1
+ import { VNode } from 'vue'
2
+ import { VxeGlobalConfig } from './global-config'
3
+ import { VxeGlobalData } from './global-data'
4
+ import { VxeGlobalIcon } 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 } from './components'
18
+ import { VxeGlobalUseFns } from './useFn'
19
+ import { VxeGlobalHooks } from './hooks'
20
+ import { VxeGlobalLog } from './log'
21
+ import { VxeComponentBaseOptions } 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
+
37
+ export function hasLanguage(locale: VxeGlobalI18nLocale): boolean
38
+ export function getLanguage(): VxeGlobalI18nLocale
39
+ export function setLanguage(locale: VxeGlobalI18nLocale): VxeUIExport
40
+ export function setI18n(locale: VxeGlobalI18nLocale, data: Record<string, any>): VxeUIExport
41
+ export function getI18n(key: string, args?: any): string
42
+
43
+ export const component: VxeGlobalComponentMethod
44
+ export const getComponent: VxeGlobalGetComponentMethod
45
+
46
+ export const coreVersion: string
47
+
48
+ export function renderEmptyElement(_vm: VxeComponentBaseOptions): VNode
49
+
50
+ export const renderer: VxeGlobalRenderer
51
+
52
+ export const validators: VxeGlobalValidators
53
+
54
+ export const menus: VxeGlobalMenus
55
+
56
+ export const formats: VxeGlobalFormats
57
+
58
+ export const commands: VxeGlobalCommands
59
+
60
+ export const interceptor: VxeGlobalInterceptor
61
+
62
+ export const clipboard: VxeGlobalClipboard
63
+
64
+ export const permission: VxeGlobalPermission
65
+
66
+ export const globalEvents: VxeGlobalEvents
67
+
68
+ export const globalResize: VxeGlobalResize
69
+
70
+ export const globalStore: VxeGlobalData
71
+
72
+ export const log: VxeGlobalLog
73
+
74
+ export const useFns: VxeGlobalUseFns
75
+
76
+ export const hooks: VxeGlobalHooks
77
+
78
+ export interface VxeUIPluginObject {
79
+ install(vxeui: VxeUIExport, ...options: any[]): void
80
+ [key: string]: any
81
+ }
82
+
83
+ export function use (plugin: VxeUIPluginObject, ...options: any[]): VxeUIExport
84
+
85
+ /**
86
+ * Vxe UI core library
87
+ */
88
+ export interface VxeUIExport {
89
+ /**
90
+ * 核心版本号
91
+ */
92
+ coreVersion: string
93
+ /**
94
+ * UI 版本号
95
+ */
96
+ uiVersion: string
97
+ /**
98
+ * Table 版本号
99
+ */
100
+ tableVersion: string
101
+ /**
102
+ * 渲染一个空元素
103
+ */
104
+ renderEmptyElement: typeof renderEmptyElement
105
+ /**
106
+ * 设置全局主题
107
+ */
108
+ setTheme: typeof setTheme
109
+ /**
110
+ * 获取全局主题
111
+ */
112
+ getTheme: typeof getTheme
113
+ /**
114
+ * 设置全局参数
115
+ */
116
+ setConfig: typeof setConfig
117
+ /**
118
+ * 获取全局参数
119
+ */
120
+ getConfig: typeof getConfig
121
+ /**
122
+ * 设置全局图标
123
+ */
124
+ setIcon: typeof setIcon
125
+ /**
126
+ * 判断是否已经安装了该语言包,如果已安装则返回 true
127
+ */
128
+ hasLanguage: typeof hasLanguage
129
+ /**
130
+ * 获取当前显示语言
131
+ */
132
+ getLanguage: typeof getLanguage
133
+ /**
134
+ * 设置组件当前语言
135
+ */
136
+ setLanguage: typeof setLanguage
137
+ /**
138
+ * 设置组件语言数据
139
+ */
140
+ setI18n: typeof setI18n
141
+ /**
142
+ * 获取组件语言值
143
+ */
144
+ getI18n: typeof getI18n
145
+
146
+ /**
147
+ * 获取全局图标
148
+ */
149
+ getIcon: typeof getIcon,
150
+
151
+ /**
152
+ * 全局渲染器
153
+ */
154
+ renderer: VxeGlobalRenderer
155
+ /**
156
+ * 全局校验扩展
157
+ */
158
+ validators: VxeGlobalValidators
159
+ /**
160
+ * 全局右键菜单扩展
161
+ */
162
+ menus: VxeGlobalMenus
163
+ /**
164
+ * 全局格式化对象
165
+ */
166
+ formats: VxeGlobalFormats
167
+ /**
168
+ * 全局操作指令
169
+ */
170
+ commands: VxeGlobalCommands
171
+ /**
172
+ * 全局事件拦截处理对象
173
+ */
174
+ interceptor: VxeGlobalInterceptor
175
+ /**
176
+ * 全局剪贴板
177
+ */
178
+ clipboard: VxeGlobalClipboard
179
+ /**
180
+ * 全局权限控制
181
+ */
182
+ permission: VxeGlobalPermission
183
+
184
+ /**
185
+ * 全局事件管理
186
+ */
187
+ globalEvents: VxeGlobalEvents
188
+ createEvent: VxeGlobalCreateEventMethod
189
+ GLOBAL_EVENT_KEYS: VxeGlobalEventKey
190
+
191
+ /**
192
+ * 全局观察者事件
193
+ */
194
+ globalResize: VxeGlobalResize
195
+
196
+ /**
197
+ * 全局数据对象
198
+ */
199
+ globalStore: VxeGlobalData
200
+
201
+ /**
202
+ * 全局日志
203
+ */
204
+ log: VxeGlobalLog
205
+
206
+ /**
207
+ * 已使用的组件
208
+ */
209
+ component: VxeGlobalComponentMethod
210
+ getComponent: VxeGlobalGetComponentMethod
211
+
212
+ /**
213
+ * 扩展插件
214
+ */
215
+ hooks: VxeGlobalHooks
216
+
217
+ /**
218
+ * 通用 Use API 函数
219
+ */
220
+ useFns: VxeGlobalUseFns
221
+
222
+ /**
223
+ * 安装插件
224
+ */
225
+ use: (plugin: VxeUIPluginObject, ...options: any[]) => VxeUIExport
226
+ }
227
+
228
+ /**
229
+ * Vxe UI core library
230
+ */
231
+ export const VxeUI: VxeUIExport
232
+
233
+ export * from './global-config'
234
+ export * from './global-data'
235
+ export * from './global-icon'
236
+ export * from './global-theme'
237
+ export * from './global-lang'
238
+ export * from './global-event'
239
+ export * from './global-resize'
240
+
241
+ export * from './renderer'
242
+ export * from './validators'
243
+ export * from './menus'
244
+ export * from './formats'
245
+ export * from './commands'
246
+ export * from './interceptor'
247
+ export * from './clipboard'
248
+ export * from './permission'
249
+ export * from './log'
250
+
251
+ export * from './components'
252
+ export * from './useFn'
253
+ export * from './hooks'
254
+
255
+ 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
+ }
@@ -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): boolean
15
- get(code: string): VxeGlobalMenusHandles.MenusOption
16
- add(code: string, options: VxeGlobalMenusHandles.MenusOption | ((params: any, event: Event) => any)): VxeGlobalMenus
17
- delete(code: string): 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): boolean
15
+ get(code: string): VxeGlobalMenusHandles.MenusOption
16
+ add(code: string, options: VxeGlobalMenusHandles.MenusOption | ((params: any, event: Event) => any)): VxeGlobalMenus
17
+ delete(code: string): void
18
+ forEach(callback: (options: VxeGlobalMenusHandles.MenusOption, code: string) => void): void
19
+ }
@@ -1,10 +1,10 @@
1
- import { VxeComponentPermissionCodeType, VxeComponentPermissionInfo } from '../tool'
2
-
3
- /**
4
- * 全局权限控制
5
- */
6
- export interface VxeGlobalPermission {
7
- getCheckInfo (code: VxeComponentPermissionCodeType): VxeComponentPermissionInfo
8
- checkVisible (code: VxeComponentPermissionCodeType): boolean
9
- checkDisable (code: VxeComponentPermissionCodeType): boolean
10
- }
1
+ import { VxeComponentPermissionCodeType, VxeComponentPermissionInfo } from '../tool'
2
+
3
+ /**
4
+ * 全局权限控制
5
+ */
6
+ export interface VxeGlobalPermission {
7
+ getCheckInfo (code: VxeComponentPermissionCodeType): VxeComponentPermissionInfo
8
+ checkVisible (code: VxeComponentPermissionCodeType): boolean
9
+ checkDisable (code: VxeComponentPermissionCodeType): boolean
10
+ }
@@ -1,14 +1,14 @@
1
- export interface VxeGlobalRendererOptions {}
2
-
3
- export namespace VxeGlobalRendererHandles {}
4
-
5
- /**
6
- * 渲染器
7
- */
8
- export interface VxeGlobalRenderer {
9
- mixin(options: Record<string, VxeGlobalRendererOptions>): VxeGlobalRenderer
10
- get(name: string | null | undefined): VxeGlobalRendererOptions
11
- add(name: string, options: VxeGlobalRendererOptions): VxeGlobalRenderer
12
- forEach(callback: (item: VxeGlobalRendererOptions, name: string, renderMap: Record<string, VxeGlobalRendererOptions>) => void): VxeGlobalRenderer
13
- delete(name: string): void
14
- }
1
+ export interface VxeGlobalRendererOptions {}
2
+
3
+ export namespace VxeGlobalRendererHandles {}
4
+
5
+ /**
6
+ * 渲染器
7
+ */
8
+ export interface VxeGlobalRenderer {
9
+ mixin(options: Record<string, VxeGlobalRendererOptions>): VxeGlobalRenderer
10
+ get(name: string | null | undefined): VxeGlobalRendererOptions
11
+ add(name: string, options: VxeGlobalRendererOptions): VxeGlobalRenderer
12
+ forEach(callback: (item: VxeGlobalRendererOptions, name: string, renderMap: Record<string, VxeGlobalRendererOptions>) => void): VxeGlobalRenderer
13
+ delete(name: string): void
14
+ }