@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,19 +1,19 @@
1
- /* eslint-disable no-use-before-define */
2
-
3
- export namespace VxeGlobalValidatorsHandles {
4
- export interface ValidatorsOptions {}
5
- }
6
-
7
- /**
8
- * 全局快捷菜单
9
- */
10
- export interface VxeGlobalValidators {
11
- mixin(options: {
12
- [code: string]: VxeGlobalValidatorsHandles.ValidatorsOptions
13
- }): VxeGlobalValidators
14
- has(code: string): boolean
15
- get(code: string): VxeGlobalValidatorsHandles.ValidatorsOptions
16
- add(code: string, callback: VxeGlobalValidatorsHandles.ValidatorsOptions): VxeGlobalValidators
17
- delete(code: string): void
18
- forEach(callback: (options: VxeGlobalValidatorsHandles.ValidatorsOptions, code: string) => void): void
19
- }
1
+ /* eslint-disable no-use-before-define */
2
+
3
+ export namespace VxeGlobalValidatorsHandles {
4
+ export interface ValidatorsOptions {}
5
+ }
6
+
7
+ /**
8
+ * 全局快捷菜单
9
+ */
10
+ export interface VxeGlobalValidators {
11
+ mixin(options: {
12
+ [code: string]: VxeGlobalValidatorsHandles.ValidatorsOptions
13
+ }): VxeGlobalValidators
14
+ has(code: string): boolean
15
+ get(code: string): VxeGlobalValidatorsHandles.ValidatorsOptions
16
+ add(code: string, callback: VxeGlobalValidatorsHandles.ValidatorsOptions): VxeGlobalValidators
17
+ delete(code: string): void
18
+ forEach(callback: (options: VxeGlobalValidatorsHandles.ValidatorsOptions, code: string) => void): void
19
+ }
package/types/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { VxeUIExport } from './core'
2
-
3
- declare global {
4
- interface Window {
5
- /**
6
- * Vxe UI core library
7
- */
8
- VxeUI: VxeUIExport;
9
- }
10
- }
11
-
12
- export * from './tool'
13
- export * from './core'
1
+ import { VxeUIExport } from './core'
2
+
3
+ declare global {
4
+ interface Window {
5
+ /**
6
+ * Vxe UI core library
7
+ */
8
+ VxeUI: VxeUIExport;
9
+ }
10
+ }
11
+
12
+ export * from './tool'
13
+ export * from './core'
@@ -1,105 +1,105 @@
1
- import Vue, { VueConstructor, VNode } from 'vue'
2
- import { CombinedVueInstance, ExtendedVue } from 'vue/types/vue'
3
-
4
- /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
5
-
6
- /**
7
- * 定义组件
8
- */
9
- export type DefineVxeComponentApp<
10
- P = any,
11
- E = { [key: string]: any },
12
- S = { [key: string]: (...args: any[]) => any }
13
- > = ({
14
- new (): P & E & {
15
- $slots: S
16
- }
17
- } & {
18
- install(app: VueConstructor): void
19
- })
20
-
21
- export type DefineVxeComponentOptions<Props> = ExtendedVue<Vue, object, object, object, Props>
22
-
23
- export type DefineVxeComponentInstance<Data, Props, Computed, Methods> = CombinedVueInstance<Vue, VxeComponentBaseOptions & Data, Methods, Computed, Props>
24
-
25
- /**
26
- * 组件通用的基础参数
27
- */
28
- export interface VxeComponentBaseOptions {
29
- xID: string
30
- }
31
-
32
- /**
33
- * 组件事件参数
34
- */
35
- export interface VxeComponentEventParams {
36
- $event: Event
37
- }
38
-
39
- /**
40
- * 全局事件默认参数
41
- */
42
- export interface VxeComponentEvent<E = Event> {
43
- $event: E
44
- stopPropagation(): void
45
- preventDefault(): void
46
- }
47
-
48
- /**
49
- * 组件尺寸类型
50
- */
51
- export type VxeComponentSizeType = null | '' | 'medium' | 'small' | 'mini'
52
-
53
- /**
54
- * 组件对齐方式
55
- */
56
- export type VxeComponentAlignType = null | '' | 'left' | 'right' | 'center'
57
-
58
- /**
59
- * 组件状态
60
- */
61
- export type VxeComponentStatusType = null | '' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'error' | 'perfect'
62
-
63
- /**
64
- * 组件样式类型
65
- */
66
- export type VxeComponentStyleType = Record<string, string | number>
67
-
68
- /**
69
- * 组件 className 类型
70
- */
71
- export type VxeComponentClassNameType = Record<string, boolean>
72
-
73
- /**
74
- * 组件插槽类型
75
- */
76
- export type VxeComponentSlotType = VNode | string
77
-
78
- /**
79
- * 权限码类型
80
- */
81
- export type VxeComponentPermissionCodeType = string | number
82
-
83
- /**
84
- * 权限码判断结果
85
- */
86
- export type VxeComponentPermissionResult = boolean | {
87
- visible: boolean
88
- disabled: boolean
89
- }
90
-
91
- /**
92
- * 权限码判断方法
93
- */
94
- export type VxeComponentPermissionMethod = (params: {
95
- code: VxeComponentPermissionCodeType
96
- }) => VxeComponentPermissionResult
97
-
98
- /**
99
- * 权限码信息
100
- */
101
- export interface VxeComponentPermissionInfo {
102
- code?: VxeComponentPermissionCodeType
103
- visible: boolean
104
- disabled: boolean
105
- }
1
+ import Vue, { VueConstructor, VNode } from 'vue'
2
+ import { CombinedVueInstance, ExtendedVue } from 'vue/types/vue'
3
+
4
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
5
+
6
+ /**
7
+ * 定义组件
8
+ */
9
+ export type DefineVxeComponentApp<
10
+ P = any,
11
+ E = { [key: string]: any },
12
+ S = { [key: string]: (...args: any[]) => any }
13
+ > = ({
14
+ new (): P & E & {
15
+ $slots: S
16
+ }
17
+ } & {
18
+ install(app: VueConstructor): void
19
+ })
20
+
21
+ export type DefineVxeComponentOptions<Props> = ExtendedVue<Vue, object, object, object, Props>
22
+
23
+ export type DefineVxeComponentInstance<Data, Props, Computed, Methods> = CombinedVueInstance<Vue, VxeComponentBaseOptions & Data, Methods, Computed, Props>
24
+
25
+ /**
26
+ * 组件通用的基础参数
27
+ */
28
+ export interface VxeComponentBaseOptions {
29
+ xID: string
30
+ }
31
+
32
+ /**
33
+ * 组件事件参数
34
+ */
35
+ export interface VxeComponentEventParams {
36
+ $event: Event
37
+ }
38
+
39
+ /**
40
+ * 全局事件默认参数
41
+ */
42
+ export interface VxeComponentEvent<E = Event> {
43
+ $event: E
44
+ stopPropagation(): void
45
+ preventDefault(): void
46
+ }
47
+
48
+ /**
49
+ * 组件尺寸类型
50
+ */
51
+ export type VxeComponentSizeType = null | '' | 'medium' | 'small' | 'mini'
52
+
53
+ /**
54
+ * 组件对齐方式
55
+ */
56
+ export type VxeComponentAlignType = null | '' | 'left' | 'right' | 'center'
57
+
58
+ /**
59
+ * 组件状态
60
+ */
61
+ export type VxeComponentStatusType = null | '' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'error' | 'perfect'
62
+
63
+ /**
64
+ * 组件样式类型
65
+ */
66
+ export type VxeComponentStyleType = Record<string, string | number>
67
+
68
+ /**
69
+ * 组件 className 类型
70
+ */
71
+ export type VxeComponentClassNameType = Record<string, boolean>
72
+
73
+ /**
74
+ * 组件插槽类型
75
+ */
76
+ export type VxeComponentSlotType = VNode | string
77
+
78
+ /**
79
+ * 权限码类型
80
+ */
81
+ export type VxeComponentPermissionCodeType = string | number
82
+
83
+ /**
84
+ * 权限码判断结果
85
+ */
86
+ export type VxeComponentPermissionResult = boolean | {
87
+ visible: boolean
88
+ disabled: boolean
89
+ }
90
+
91
+ /**
92
+ * 权限码判断方法
93
+ */
94
+ export type VxeComponentPermissionMethod = (params: {
95
+ code: VxeComponentPermissionCodeType
96
+ }) => VxeComponentPermissionResult
97
+
98
+ /**
99
+ * 权限码信息
100
+ */
101
+ export interface VxeComponentPermissionInfo {
102
+ code?: VxeComponentPermissionCodeType
103
+ visible: boolean
104
+ disabled: boolean
105
+ }
@@ -1,2 +1,2 @@
1
- export * from './util'
2
- export * from './common'
1
+ export * from './util'
2
+ export * from './common'
@@ -1,4 +1,4 @@
1
- /**
2
- * 取出对象值类型
3
- */
4
- export type ValueOf<T> = T extends any[] ? T[number] : T[keyof T]
1
+ /**
2
+ * 取出对象值类型
3
+ */
4
+ export type ValueOf<T> = T extends any[] ? T[number] : T[keyof T]