@vxe-ui/core 3.0.20 → 3.0.22

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