@vxe-ui/core 1.0.12 → 4.0.0

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 (77) 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/es/src/permission.js +36 -14
  8. package/lib/index.umd.js +59 -34
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/src/clipboard.min.js +1 -1
  11. package/lib/src/commands.min.js +1 -1
  12. package/lib/src/core.js +1 -1
  13. package/lib/src/core.min.js +1 -1
  14. package/lib/src/event.min.js +1 -1
  15. package/lib/src/formats.min.js +1 -1
  16. package/lib/src/globalStore.min.js +1 -1
  17. package/lib/src/hooks.min.js +1 -1
  18. package/lib/src/i18n.min.js +1 -1
  19. package/lib/src/i18nStore.min.js +1 -1
  20. package/lib/src/iconStore.min.js +1 -1
  21. package/lib/src/interceptor.min.js +1 -1
  22. package/lib/src/log.js +1 -1
  23. package/lib/src/log.min.js +1 -1
  24. package/lib/src/menus.min.js +1 -1
  25. package/lib/src/permission.js +37 -15
  26. package/lib/src/permission.min.js +1 -1
  27. package/lib/src/renderer.min.js +1 -1
  28. package/lib/src/resize.min.js +1 -1
  29. package/lib/src/store.min.js +1 -1
  30. package/lib/src/themeStore.min.js +1 -1
  31. package/lib/src/useFns.min.js +1 -1
  32. package/lib/src/validators.min.js +1 -1
  33. package/package.json +78 -78
  34. package/packages/index.ts +4 -4
  35. package/packages/src/clipboard.ts +53 -53
  36. package/packages/src/commands.ts +62 -62
  37. package/packages/src/core.ts +167 -167
  38. package/packages/src/event.ts +113 -113
  39. package/packages/src/formats.ts +62 -62
  40. package/packages/src/globalStore.ts +8 -8
  41. package/packages/src/hooks.ts +5 -5
  42. package/packages/src/i18n.ts +19 -19
  43. package/packages/src/i18nStore.ts +11 -11
  44. package/packages/src/iconStore.ts +3 -3
  45. package/packages/src/interceptor.ts +65 -65
  46. package/packages/src/log.ts +19 -19
  47. package/packages/src/menus.ts +62 -62
  48. package/packages/src/permission.ts +61 -39
  49. package/packages/src/renderer.ts +50 -50
  50. package/packages/src/resize.ts +89 -89
  51. package/packages/src/store.ts +49 -49
  52. package/packages/src/themeStore.ts +7 -7
  53. package/packages/src/useFns.ts +34 -34
  54. package/packages/src/validators.ts +9 -9
  55. package/types/core/clipboard.d.ts +13 -13
  56. package/types/core/commands.d.ts +19 -19
  57. package/types/core/components.d.ts +4 -4
  58. package/types/core/formats.d.ts +19 -19
  59. package/types/core/global-config.d.ts +55 -55
  60. package/types/core/global-event.d.ts +39 -39
  61. package/types/core/global-icon.d.ts +6 -6
  62. package/types/core/global-lang.d.ts +1 -1
  63. package/types/core/global-resize.d.ts +3 -3
  64. package/types/core/global-theme.d.ts +1 -1
  65. package/types/core/hooks.d.ts +14 -14
  66. package/types/core/index.d.ts +224 -224
  67. package/types/core/interceptor.d.ts +22 -22
  68. package/types/core/log.d.ts +8 -8
  69. package/types/core/menus.d.ts +19 -19
  70. package/types/core/permission.d.ts +10 -10
  71. package/types/core/renderer.d.ts +14 -14
  72. package/types/core/useFn.d.ts +27 -27
  73. package/types/core/validators.d.ts +19 -19
  74. package/types/index.d.ts +10 -10
  75. package/types/tool/common.d.ts +99 -99
  76. package/types/tool/index.d.ts +2 -2
  77. package/types/tool/util.d.ts +4 -4
@@ -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
+ }
@@ -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
+ }
@@ -1,27 +1,27 @@
1
- import { ComputedRef } from 'vue'
2
- import { VxeComponentSizeType, VxeComponentPermissionCodeType, VxeComponentPermissionMethod, VxeComponentPermissionInfo } from '../tool'
3
-
4
- export type VxeUseFnUseSize = (props: {
5
- size?: VxeComponentSizeType;
6
- }) => {
7
- computeSize: ComputedRef<VxeComponentSizeType>;
8
- }
9
-
10
- export const useSize: VxeUseFnUseSize
11
-
12
- export type VxeUsePermission = (props: {
13
- permissionCode?: VxeComponentPermissionCodeType
14
- permissionMethod?: VxeComponentPermissionMethod
15
- }) => {
16
- computePermissionInfo: ComputedRef<VxeComponentPermissionInfo>;
17
- }
18
-
19
- export const usePermission: VxeUsePermission
20
-
21
- /**
22
- * 全局剪贴板
23
- */
24
- export interface VxeGlobalUseFns {
25
- useSize: VxeUseFnUseSize
26
- usePermission: VxeUsePermission
27
- }
1
+ import { ComputedRef } from 'vue'
2
+ import { VxeComponentSizeType, VxeComponentPermissionCodeType, VxeComponentPermissionMethod, VxeComponentPermissionInfo } from '../tool'
3
+
4
+ export type VxeUseFnUseSize = (props: {
5
+ size?: VxeComponentSizeType;
6
+ }) => {
7
+ computeSize: ComputedRef<VxeComponentSizeType>;
8
+ }
9
+
10
+ export const useSize: VxeUseFnUseSize
11
+
12
+ export type VxeUsePermission = (props: {
13
+ permissionCode?: VxeComponentPermissionCodeType
14
+ permissionMethod?: VxeComponentPermissionMethod
15
+ }) => {
16
+ computePermissionInfo: ComputedRef<VxeComponentPermissionInfo>;
17
+ }
18
+
19
+ export const usePermission: VxeUsePermission
20
+
21
+ /**
22
+ * 全局剪贴板
23
+ */
24
+ export interface VxeGlobalUseFns {
25
+ useSize: VxeUseFnUseSize
26
+ usePermission: VxeUsePermission
27
+ }