@vxe-ui/core 4.0.22 → 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 (86) 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/event.js +10 -8
  7. package/es/src/log.js +1 -1
  8. package/lib/index.umd.js +942 -145
  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/config.min.js +1 -1
  13. package/lib/src/configStore.min.js +1 -1
  14. package/lib/src/core.js +1 -1
  15. package/lib/src/core.min.js +1 -1
  16. package/lib/src/dataStore.min.js +1 -1
  17. package/lib/src/event.js +10 -8
  18. package/lib/src/event.min.js +1 -1
  19. package/lib/src/formats.min.js +1 -1
  20. package/lib/src/hooks.min.js +1 -1
  21. package/lib/src/i18n.min.js +1 -1
  22. package/lib/src/i18nStore.min.js +1 -1
  23. package/lib/src/icon.min.js +1 -1
  24. package/lib/src/iconStore.min.js +1 -1
  25. package/lib/src/interceptor.min.js +1 -1
  26. package/lib/src/log.js +1 -1
  27. package/lib/src/log.min.js +1 -1
  28. package/lib/src/menus.min.js +1 -1
  29. package/lib/src/permission.min.js +1 -1
  30. package/lib/src/renderer.min.js +1 -1
  31. package/lib/src/resize.min.js +1 -1
  32. package/lib/src/store.min.js +1 -1
  33. package/lib/src/theme.min.js +1 -1
  34. package/lib/src/themeStore.min.js +1 -1
  35. package/lib/src/useFns.min.js +1 -1
  36. package/lib/src/validators.min.js +1 -1
  37. package/package.json +79 -79
  38. package/packages/index.ts +117 -117
  39. package/packages/src/clipboard.ts +53 -53
  40. package/packages/src/commands.ts +62 -62
  41. package/packages/src/config.ts +30 -30
  42. package/packages/src/configStore.ts +8 -8
  43. package/packages/src/core.ts +9 -9
  44. package/packages/src/dataStore.ts +4 -4
  45. package/packages/src/event.ts +127 -125
  46. package/packages/src/formats.ts +62 -62
  47. package/packages/src/hooks.ts +5 -5
  48. package/packages/src/i18n.ts +43 -43
  49. package/packages/src/i18nStore.ts +11 -11
  50. package/packages/src/icon.ts +16 -16
  51. package/packages/src/iconStore.ts +3 -3
  52. package/packages/src/interceptor.ts +65 -65
  53. package/packages/src/log.ts +19 -19
  54. package/packages/src/menus.ts +62 -62
  55. package/packages/src/permission.ts +61 -61
  56. package/packages/src/renderer.ts +50 -50
  57. package/packages/src/resize.ts +89 -89
  58. package/packages/src/store.ts +49 -49
  59. package/packages/src/theme.ts +20 -20
  60. package/packages/src/themeStore.ts +7 -7
  61. package/packages/src/useFns.ts +34 -34
  62. package/packages/src/validators.ts +9 -9
  63. package/types/core/clipboard.d.ts +13 -13
  64. package/types/core/commands.d.ts +19 -19
  65. package/types/core/components.d.ts +4 -4
  66. package/types/core/formats.d.ts +19 -19
  67. package/types/core/global-config.d.ts +62 -62
  68. package/types/core/global-data.d.ts +7 -7
  69. package/types/core/global-event.d.ts +39 -39
  70. package/types/core/global-icon.d.ts +6 -6
  71. package/types/core/global-lang.d.ts +22 -22
  72. package/types/core/global-resize.d.ts +3 -3
  73. package/types/core/global-theme.d.ts +1 -1
  74. package/types/core/hooks.d.ts +14 -14
  75. package/types/core/index.d.ts +255 -255
  76. package/types/core/interceptor.d.ts +22 -22
  77. package/types/core/log.d.ts +8 -8
  78. package/types/core/menus.d.ts +19 -19
  79. package/types/core/permission.d.ts +10 -10
  80. package/types/core/renderer.d.ts +14 -14
  81. package/types/core/useFn.d.ts +27 -27
  82. package/types/core/validators.d.ts +19 -19
  83. package/types/index.d.ts +13 -13
  84. package/types/tool/common.d.ts +111 -111
  85. package/types/tool/index.d.ts +2 -2
  86. package/types/tool/util.d.ts +4 -4
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 xuliangzhan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 xuliangzhan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- [简体中文](README.md) | [繁體中文](README.zh-TW.md) | English
4
-
5
- Vxe UI v4.x core library.
6
-
7
- ## Install
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeUI from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeUI.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ [简体中文](README.md) | [繁體中文](README.zh-TW.md) | English
4
+
5
+ Vxe UI v4.x core library.
6
+
7
+ ## Install
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeUI from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeUI.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/README.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- 简体中文 | [繁體中文](README.zh-TW.md) | [English](README.en.md)
4
-
5
- Vxe UI v4.x 核心库.
6
-
7
- ## 使用
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeUI from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeUI.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ 简体中文 | [繁體中文](README.zh-TW.md) | [English](README.en.md)
4
+
5
+ Vxe UI v4.x 核心库.
6
+
7
+ ## 使用
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeUI from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeUI.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/README.zh-TW.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- [简体中文](README.md) | 繁體中文 | [English](README.en.md)
4
-
5
- Vxe UI v4.x core library.
6
-
7
- ## 使用
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeUI from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeUI.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ [简体中文](README.md) | 繁體中文 | [English](README.en.md)
4
+
5
+ Vxe UI v4.x core library.
6
+
7
+ ## 使用
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeUI from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeUI.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/es/src/core.js CHANGED
@@ -1,4 +1,4 @@
1
- export const coreVersion = "4.0.22";
1
+ export const coreVersion = "4.0.24";
2
2
  export const VxeCore = {
3
3
  coreVersion,
4
4
  uiVersion: '',
package/es/src/event.js CHANGED
@@ -73,14 +73,16 @@ class VxeComponentEvent {
73
73
  value: ''
74
74
  });
75
75
  this.$event = evnt;
76
- if (evnt.type) {
77
- this.type = evnt.type;
78
- }
79
- if (evnt.key) {
80
- this.key = evnt.key;
81
- }
82
- if (evnt.code) {
83
- this.code = evnt.code;
76
+ if (evnt) {
77
+ if (evnt.type) {
78
+ this.type = evnt.type;
79
+ }
80
+ if (evnt.key) {
81
+ this.key = evnt.key;
82
+ }
83
+ if (evnt.code) {
84
+ this.code = evnt.code;
85
+ }
84
86
  }
85
87
  Object.assign(this, params1, params2);
86
88
  }
package/es/src/log.js CHANGED
@@ -6,7 +6,7 @@ function createLog(type, name) {
6
6
  return msg;
7
7
  };
8
8
  }
9
- const version = "4.0.22";
9
+ const version = "4.0.24";
10
10
  export const log = {
11
11
  create: createLog,
12
12
  warn: createLog('warn', `v${version}`),