@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,47 +1,47 @@
1
- import { VxeComponentEvent, VxeComponentBaseOptions } from '../tool'
2
-
3
- export type VxeGlobalEventType = 'copy' | 'cut' | 'paste' | 'keydown' | 'contextmenu' | 'mousedown' | 'click' | 'blur' | 'resize' | 'mousewheel' | 'scroll'
4
-
5
- export type VxeGlobalEventKey = {
6
- F2: 'F2'
7
- F10: 'F10'
8
- TAB: 'Tab'
9
- ESCAPE: 'Escape'
10
- ENTER: 'Enter'
11
- DELETE: 'Delete'
12
- BACKSPACE: 'Backspace'
13
- SPACEBAR: ' '
14
- CONTEXT_MENU: 'ContextMenu'
15
- ARROW_UP: 'ArrowUp'
16
- ARROW_DOWN: 'ArrowDown'
17
- ARROW_LEFT: 'ArrowLeft'
18
- ARROW_RIGHT: 'ArrowRight'
19
- PAGE_UP: 'PageUp'
20
- PAGE_DOWN: 'PageDown'
21
- HOME: 'Home'
22
- END: 'End'
23
- A: 'A'
24
- X: 'X'
25
- C: 'C'
26
- V: 'V'
27
- D: 'D'
28
- F: 'F'
29
- H: 'H'
30
- M: 'M'
31
- Y: 'Y'
32
- Z: 'Z'
33
- R: 'R'
34
- P: 'P'
35
- }
36
-
37
- export const GLOBAL_EVENT_KEYS: VxeGlobalEventKey
38
-
39
- export type VxeGlobalCreateEventMethod = (evnt: Event | null, params1: any, params2?: any) => VxeComponentEvent
40
-
41
- export const createEvent: VxeGlobalCreateEventMethod
42
-
43
- export interface VxeGlobalEvents {
44
- on (_vm: VxeComponentBaseOptions, type: VxeGlobalEventType, cb: (evnt: any) => void): void
45
- off (_vm: VxeComponentBaseOptions, type: VxeGlobalEventType): void
46
- hasKey(evnt: KeyboardEvent, targetKey: string): boolean,
47
- }
1
+ import { VxeComponentEvent, VxeComponentBaseOptions } from '../tool'
2
+
3
+ export type VxeGlobalEventType = 'copy' | 'cut' | 'paste' | 'keydown' | 'contextmenu' | 'mousedown' | 'click' | 'blur' | 'resize' | 'mousewheel' | 'scroll'
4
+
5
+ export type VxeGlobalEventKey = {
6
+ F2: 'F2'
7
+ F10: 'F10'
8
+ TAB: 'Tab'
9
+ ESCAPE: 'Escape'
10
+ ENTER: 'Enter'
11
+ DELETE: 'Delete'
12
+ BACKSPACE: 'Backspace'
13
+ SPACEBAR: ' '
14
+ CONTEXT_MENU: 'ContextMenu'
15
+ ARROW_UP: 'ArrowUp'
16
+ ARROW_DOWN: 'ArrowDown'
17
+ ARROW_LEFT: 'ArrowLeft'
18
+ ARROW_RIGHT: 'ArrowRight'
19
+ PAGE_UP: 'PageUp'
20
+ PAGE_DOWN: 'PageDown'
21
+ HOME: 'Home'
22
+ END: 'End'
23
+ A: 'A'
24
+ X: 'X'
25
+ C: 'C'
26
+ V: 'V'
27
+ D: 'D'
28
+ F: 'F'
29
+ H: 'H'
30
+ M: 'M'
31
+ Y: 'Y'
32
+ Z: 'Z'
33
+ R: 'R'
34
+ P: 'P'
35
+ }
36
+
37
+ export const GLOBAL_EVENT_KEYS: VxeGlobalEventKey
38
+
39
+ export type VxeGlobalCreateEventMethod = (evnt: Event | null, params1: any, params2?: any) => VxeComponentEvent
40
+
41
+ export const createEvent: VxeGlobalCreateEventMethod
42
+
43
+ export interface VxeGlobalEvents {
44
+ on (_vm: VxeComponentBaseOptions, type: VxeGlobalEventType, cb: (evnt: any) => void): void
45
+ off (_vm: VxeComponentBaseOptions, type: VxeGlobalEventType): void
46
+ hasKey(evnt: KeyboardEvent, targetKey: string): boolean,
47
+ }
@@ -1,10 +1,10 @@
1
- import { VNode } from 'vue'
2
-
3
- export type VxeGlobalIconConfig = string | ((params: { name: string }) => VNode | string)
4
-
5
- /**
6
- * 全局图标参数
7
- */
8
- export interface VxeGlobalIcon {
9
- LOGO?: VxeGlobalIconConfig
10
- }
1
+ import { VNode } from 'vue'
2
+
3
+ export type VxeGlobalIconConfig = string | ((params: { name: string }) => VNode | string)
4
+
5
+ /**
6
+ * 全局图标参数
7
+ */
8
+ export interface VxeGlobalIcon {
9
+ LOGO?: VxeGlobalIconConfig
10
+ }
@@ -1,27 +1,27 @@
1
- export type VxeGlobalI18nLocale = '' |
2
- 'zh-CN' | // 中文(简体)
3
- 'zh-CHT' | // 中文(繁体)
4
- 'zh-HK' | // 中文(香港)
5
- 'zh-MO' | // 中文(澳门)
6
- 'zh-TW' | // 中文(繁体)
7
- // 'zh-TC' | // !!!已废弃!!!
8
- 'en-US' | // 英语(美国)
9
- 'ja-JP' | // 日语
10
- 'es-ES' | // 西班牙语(国际)
11
- 'pt-BR' | // 葡萄牙语
12
- 'vi-VN' | // 越南语
13
- 'ru-RU' | // 俄语
14
- 'ko-KR' | // 朝鲜语
15
- 'hu-HU' | // 匈牙利语
16
- 'ug-CN' | // 维吾尔语
17
- 'uz-UZ' | // 乌兹别克语(西里尔文)
18
- 'nb-NO' | // 挪威语(伯克梅尔)(挪威)
19
- 'hy-AM' | // 亚美尼亚语
20
- 'fr-FR' | // 法语(法国)
21
- 'de-DE' | // 德语(德国)
22
- 'ar-EG' | // 阿拉伯语(埃及)
23
- 'uk-UA' | // 乌克兰语
24
- 'th-TH' | // 泰语
25
- 'it-IT' | // 意大利语(意大利)
26
- 'id-ID' | // 印度尼西亚语
27
- 'ms-MY' // 马来语(马来西亚)
1
+ export type VxeGlobalI18nLocale = '' |
2
+ 'zh-CN' | // 中文(简体)
3
+ 'zh-CHT' | // 中文(繁体)
4
+ 'zh-HK' | // 中文(香港)
5
+ 'zh-MO' | // 中文(澳门)
6
+ 'zh-TW' | // 中文(繁体)
7
+ // 'zh-TC' | // !!!已废弃!!!
8
+ 'en-US' | // 英语(美国)
9
+ 'ja-JP' | // 日语
10
+ 'es-ES' | // 西班牙语(国际)
11
+ 'pt-BR' | // 葡萄牙语
12
+ 'vi-VN' | // 越南语
13
+ 'ru-RU' | // 俄语
14
+ 'ko-KR' | // 朝鲜语
15
+ 'hu-HU' | // 匈牙利语
16
+ 'ug-CN' | // 维吾尔语
17
+ 'uz-UZ' | // 乌兹别克语(西里尔文)
18
+ 'nb-NO' | // 挪威语(伯克梅尔)(挪威)
19
+ 'hy-AM' | // 亚美尼亚语
20
+ 'fr-FR' | // 法语(法国)
21
+ 'de-DE' | // 德语(德国)
22
+ 'ar-EG' | // 阿拉伯语(埃及)
23
+ 'uk-UA' | // 乌克兰语
24
+ 'th-TH' | // 泰语
25
+ 'it-IT' | // 意大利语(意大利)
26
+ 'id-ID' | // 印度尼西亚语
27
+ 'ms-MY' // 马来语(马来西亚)
@@ -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'