@kengic/vue 0.28.1-beta.4 → 0.28.1-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/close-circle-outlined.85f75690.mjs +8 -0
- package/dist/close-outlined.5757472a.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +17172 -16895
- package/dist/src/component/KgButton/KgButton.event.d.ts +20 -6
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +16 -2
- package/package.json +11 -11
- package/dist/close-circle-outlined.247eef63.mjs +0 -8
- package/dist/close-outlined.b338331c.mjs +0 -8
- /package/dist/{aim-outlined.c49e7018.mjs → aim-outlined.8d38a0f9.mjs} +0 -0
- /package/dist/{audit-outlined.f37f7da2.mjs → audit-outlined.4555f723.mjs} +0 -0
- /package/dist/{bulb-outlined.93f68e9f.mjs → bulb-outlined.a5bf22d8.mjs} +0 -0
- /package/dist/{caret-right-filled.bfffd471.mjs → caret-right-filled.dbbda237.mjs} +0 -0
- /package/dist/{caret-right-outlined.f3fc4d46.mjs → caret-right-outlined.12fe6699.mjs} +0 -0
- /package/dist/{check-circle-outlined.7d48e8e7.mjs → check-circle-outlined.b219949f.mjs} +0 -0
- /package/dist/{check-outlined.9928ff0c.mjs → check-outlined.59c42074.mjs} +0 -0
- /package/dist/{check-square-outlined.d21c4d4e.mjs → check-square-outlined.233589d8.mjs} +0 -0
- /package/dist/{close-outlined-DMcSQWxQ.9ca932eb.mjs → close-outlined-DMcSQWxQ.16cc51ff.mjs} +0 -0
- /package/dist/{control-outlined.69345ce9.mjs → control-outlined.d66ac4d2.mjs} +0 -0
- /package/dist/{copy-filled.28f04bba.mjs → copy-filled.a3dcd299.mjs} +0 -0
- /package/dist/{copy-outlined.ca34e717.mjs → copy-outlined.6a695d8a.mjs} +0 -0
- /package/dist/{delete-outlined.d1c5c60d.mjs → delete-outlined.20afb717.mjs} +0 -0
- /package/dist/{delete-twotone.8485a948.mjs → delete-twotone.1d40696a.mjs} +0 -0
- /package/dist/{down-circle-outlined.1e7e4a7b.mjs → down-circle-outlined.8ba93393.mjs} +0 -0
- /package/dist/{download-outlined.f13eae9a.mjs → download-outlined.e78b5364.mjs} +0 -0
- /package/dist/{edit-outlined.c08469a0.mjs → edit-outlined.0aae2217.mjs} +0 -0
- /package/dist/{edit-twotone.8e37fd1c.mjs → edit-twotone.67c952fa.mjs} +0 -0
- /package/dist/{exception-outlined.6dede184.mjs → exception-outlined.8c0003a2.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.217ef68f.mjs → exclamation-circle-outlined-DZrXCnvM.72c0c347.mjs} +0 -0
- /package/dist/{eye-outlined.649899dc.mjs → eye-outlined.b25b4d28.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.1e8e8688.mjs → fullscreen-exit-outlined-X1iYkFc4.1c62cceb.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined.a75b82c2.mjs → fullscreen-exit-outlined.b77fa876.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.b539229d.mjs → fullscreen-outlined-DDBrsRcy.9d7a397c.mjs} +0 -0
- /package/dist/{fullscreen-outlined.c9ba7960.mjs → fullscreen-outlined.cd572ef8.mjs} +0 -0
- /package/dist/{info-circle-outlined.c59a629f.mjs → info-circle-outlined.7ddbd554.mjs} +0 -0
- /package/dist/{one-to-one-outlined.4f97e62a.mjs → one-to-one-outlined.ac265beb.mjs} +0 -0
- /package/dist/{pause-circle-outlined.c32a598a.mjs → pause-circle-outlined.cd534f5f.mjs} +0 -0
- /package/dist/{pause-outlined.a5f6ccbd.mjs → pause-outlined.fca0d0f9.mjs} +0 -0
- /package/dist/{plus-outlined.2ff6998c.mjs → plus-outlined.bdaa6481.mjs} +0 -0
- /package/dist/{printer-outlined.d9d087d5.mjs → printer-outlined.a8d0d92b.mjs} +0 -0
- /package/dist/{reload-outlined.abae07b1.mjs → reload-outlined.d320578b.mjs} +0 -0
- /package/dist/{retweet-outlined.a2c4bb1a.mjs → retweet-outlined.bfa9b123.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.fd26a590.mjs → search-outlined-Od1M_oxf.7815ef44.mjs} +0 -0
- /package/dist/{search-outlined.8364f123.mjs → search-outlined.ba5c5a3f.mjs} +0 -0
- /package/dist/{setting-outlined.7f72790b.mjs → setting-outlined.a3caf743.mjs} +0 -0
- /package/dist/{stop-outlined.facea37d.mjs → stop-outlined.9f2c4f61.mjs} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.4bf0b865.mjs → three-dots-loading-bIlrTJYR.21cae646.mjs} +0 -0
- /package/dist/{upload-outlined.7ffb99b8.mjs → upload-outlined.c576b26a.mjs} +0 -0
@@ -4,7 +4,7 @@ import { IRequestConfig, IRequestOptions } from '../../service';
|
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
*/
|
7
|
-
export declare type IKgButtonEvent = 'onClick' | 'onImportOk' | 'onSubmitSave' | 'onSubmitCancel' | 'onBeforeRequest' | 'onAfterRequest';
|
7
|
+
export declare type IKgButtonEvent = 'onClick' | 'onError' | 'onImportBeforeUpload' | 'onImportOk' | 'onSubmitSave' | 'onSubmitCancel' | 'onBeforeRequest' | 'onAfterRequest';
|
8
8
|
export declare type IKgButtonOnClickEventListenerParameter = {
|
9
9
|
/**
|
10
10
|
* 被点击的按钮.
|
@@ -12,10 +12,22 @@ export declare type IKgButtonOnClickEventListenerParameter = {
|
|
12
12
|
button: VarButton;
|
13
13
|
};
|
14
14
|
export declare type IKgButtonOnClickEventListener = ((param: IKgButtonOnClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
15
|
+
export declare type IKgButtonOnImportBeforeUploadEventListenerParameter = {
|
16
|
+
button?: VarButton | null;
|
17
|
+
};
|
18
|
+
export declare type IKgButtonOnImportBeforeUploadEventListener = ((param: IKgButtonOnImportBeforeUploadEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
15
19
|
export declare type IKgButtonOnImportOkEventListenerParameter = {
|
16
20
|
button?: VarButton | null;
|
17
21
|
};
|
18
22
|
export declare type IKgButtonOnImportOkEventListener = ((param: IKgButtonOnImportOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
23
|
+
export declare type IKgButtonOnErrorEventListenerParameter = {
|
24
|
+
button?: VarButton | null;
|
25
|
+
/**
|
26
|
+
* 异常对象.
|
27
|
+
*/
|
28
|
+
e?: any;
|
29
|
+
};
|
30
|
+
export declare type IKgButtonOnErrorEventListener = ((param: IKgButtonOnErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
19
31
|
export declare type IKgButtonOnSubmitSaveEventListenerParameter = {};
|
20
32
|
export declare type IKgButtonOnSubmitSaveEventListener = ((param: IKgButtonOnSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
21
33
|
export declare type IKgButtonOnSubmitCancelEventListenerParameter = {};
|
@@ -35,15 +47,17 @@ export declare type IKgButtonOnAfterRequestEventListenerParameter = {
|
|
35
47
|
varButton: VarButton;
|
36
48
|
};
|
37
49
|
export declare type IKgButtonOnAfterRequestEventListener = ((param: IKgButtonOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
38
|
-
export declare type IKgButtonEventListenerParameter = IKgButtonOnClickEventListenerParameter | IKgButtonOnImportOkEventListenerParameter | IKgButtonOnSubmitSaveEventListenerParameter | IKgButtonOnSubmitCancelEventListenerParameter | IKgButtonOnBeforeRequestEventListenerParameter | IKgButtonOnAfterRequestEventListenerParameter;
|
39
|
-
export declare type IKgButtonEventListener = IKgButtonOnClickEventListener | IKgButtonOnImportOkEventListener | IKgButtonOnSubmitSaveEventListener | IKgButtonOnSubmitCancelEventListener | IKgButtonOnBeforeRequestEventListener | IKgButtonOnAfterRequestEventListener;
|
50
|
+
export declare type IKgButtonEventListenerParameter = IKgButtonOnClickEventListenerParameter | IKgButtonOnImportBeforeUploadEventListenerParameter | IKgButtonOnImportOkEventListenerParameter | IKgButtonOnErrorEventListenerParameter | IKgButtonOnSubmitSaveEventListenerParameter | IKgButtonOnSubmitCancelEventListenerParameter | IKgButtonOnBeforeRequestEventListenerParameter | IKgButtonOnAfterRequestEventListenerParameter;
|
51
|
+
export declare type IKgButtonEventListener = IKgButtonOnClickEventListener | IKgButtonOnImportBeforeUploadEventListener | IKgButtonOnImportOkEventListener | IKgButtonOnErrorEventListener | IKgButtonOnSubmitSaveEventListener | IKgButtonOnSubmitCancelEventListener | IKgButtonOnBeforeRequestEventListener | IKgButtonOnAfterRequestEventListener;
|
40
52
|
export declare const eventListeners: Record<string, {
|
53
|
+
onAfterRequest: Array<IKgButtonOnAfterRequestEventListener>;
|
54
|
+
onBeforeRequest: Array<IKgButtonOnBeforeRequestEventListener>;
|
41
55
|
onClick: Array<IKgButtonOnClickEventListener>;
|
56
|
+
onImportBeforeUpload: Array<IKgButtonOnImportBeforeUploadEventListener>;
|
57
|
+
onError: Array<IKgButtonOnErrorEventListener>;
|
42
58
|
onImportOk: Array<IKgButtonOnImportOkEventListener>;
|
43
|
-
onSubmitSave: Array<IKgButtonOnSubmitSaveEventListener>;
|
44
59
|
onSubmitCancel: Array<IKgButtonOnSubmitCancelEventListener>;
|
45
|
-
|
46
|
-
onAfterRequest: Array<IKgButtonOnAfterRequestEventListener>;
|
60
|
+
onSubmitSave: Array<IKgButtonOnSubmitSaveEventListener>;
|
47
61
|
}>;
|
48
62
|
/**
|
49
63
|
* 触发事件.
|
@@ -2,7 +2,7 @@ import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { VarButton, VarButtonConfig } from '../../api/WMS/models';
|
4
4
|
import { KG__VAR_BUTTON__TYPE } from '../../const';
|
5
|
-
import { eventListeners, IKgButtonOnAfterRequestEventListener, IKgButtonOnBeforeRequestEventListener, IKgButtonOnClickEventListener, IKgButtonOnImportOkEventListener, IKgButtonOnSubmitCancelEventListener, IKgButtonOnSubmitSaveEventListener } from './KgButton.event';
|
5
|
+
import { eventListeners, IKgButtonOnAfterRequestEventListener, IKgButtonOnBeforeRequestEventListener, IKgButtonOnClickEventListener, IKgButtonOnErrorEventListener, IKgButtonOnImportBeforeUploadEventListener, IKgButtonOnImportOkEventListener, IKgButtonOnSubmitCancelEventListener, IKgButtonOnSubmitSaveEventListener } from './KgButton.event';
|
6
6
|
import { IKgButtonStore } from './KgButton.store';
|
7
7
|
export interface IUseKgButton {
|
8
8
|
/**
|
@@ -108,7 +108,21 @@ export interface IUseKgButton {
|
|
108
108
|
*/
|
109
109
|
onClick(listener: IKgButtonOnClickEventListener, isOnce?: boolean): IRemoveEventListener;
|
110
110
|
/**
|
111
|
-
* 监听事件:
|
111
|
+
* 监听事件: 执行失败.
|
112
|
+
*
|
113
|
+
* @param listener 事件监听函数.
|
114
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
115
|
+
*/
|
116
|
+
onError(listener: IKgButtonOnErrorEventListener, isOnce?: boolean): IRemoveEventListener;
|
117
|
+
/**
|
118
|
+
* 监听事件: 导入按钮, 上传请求发起之前.
|
119
|
+
*
|
120
|
+
* @param listener 事件监听函数.
|
121
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
122
|
+
*/
|
123
|
+
onImportBeforeUpload(listener: IKgButtonOnImportBeforeUploadEventListener, isOnce?: boolean): IRemoveEventListener;
|
124
|
+
/**
|
125
|
+
* 监听事件: 导入按钮, 导入成功, 导入接口调用成功.
|
112
126
|
*
|
113
127
|
* @param listener 事件监听函数.
|
114
128
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.28.1-beta.
|
3
|
+
"version": "0.28.1-beta.6",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -32,25 +32,25 @@
|
|
32
32
|
"@ant-design/colors": "6.0.0",
|
33
33
|
"@ant-design/icons-vue": "6.1.0",
|
34
34
|
"@iconify-icons/akar-icons": "1.2.19",
|
35
|
-
"@iconify-icons/ant-design": "1.2.
|
35
|
+
"@iconify-icons/ant-design": "1.2.7",
|
36
36
|
"@iconify-icons/fluent-mdl2": "1.2.1",
|
37
37
|
"@iconify-icons/material-symbols": "1.2.58",
|
38
38
|
"@iconify-icons/mdi": "1.2.48",
|
39
39
|
"@iconify-icons/ph": "1.2.5",
|
40
|
-
"@iconify/vue": "4.
|
40
|
+
"@iconify/vue": "4.2.0",
|
41
41
|
"@kengic/core.core": "0.0.1-beta.22",
|
42
|
-
"@kengic/core.react": "0.0.2-beta.
|
42
|
+
"@kengic/core.react": "0.0.2-beta.7",
|
43
43
|
"@kengic/pont": "1.2.17-beta.5",
|
44
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
45
45
|
"@thymine/xunee": "0.4.9-beta.8",
|
46
46
|
"@types/crypto-js": "4.1.1",
|
47
47
|
"@types/fs-extra": "9.0.13",
|
48
48
|
"@types/inquirer": "8.2.5",
|
49
|
-
"@types/lodash-es": "4.17.
|
49
|
+
"@types/lodash-es": "4.17.12",
|
50
50
|
"@types/md5": "2.3.5",
|
51
51
|
"@types/node": "18.18.4",
|
52
|
-
"@types/semver": "7.5.
|
53
|
-
"@types/store": "2.0.
|
52
|
+
"@types/semver": "7.5.8",
|
53
|
+
"@types/store": "2.0.5",
|
54
54
|
"@types/uuid": "10.0.0",
|
55
55
|
"@vitejs/plugin-legacy": "2.3.1",
|
56
56
|
"@vitejs/plugin-vue": "3.2.0",
|
@@ -72,15 +72,15 @@
|
|
72
72
|
"md5": "2.3.0",
|
73
73
|
"picocolors": "1.0.0",
|
74
74
|
"pinia": "2.0.12",
|
75
|
-
"prettier": "3.
|
75
|
+
"prettier": "3.4.2",
|
76
76
|
"resize-observer-polyfill": "1.5.1",
|
77
|
-
"rimraf": "
|
77
|
+
"rimraf": "6.0.1",
|
78
78
|
"rollup": "2.79.1",
|
79
79
|
"rollup-plugin-visualizer": "5.8.3",
|
80
80
|
"screenfull": "6.0.2",
|
81
|
-
"semver": "7.
|
81
|
+
"semver": "7.6.3",
|
82
82
|
"store": "2.0.12",
|
83
|
-
"tsx": "
|
83
|
+
"tsx": "4.19.2",
|
84
84
|
"typescript": "~4.8.4",
|
85
85
|
"uuid": "10.0.0",
|
86
86
|
"vite": "3.2.3",
|
@@ -1,8 +0,0 @@
|
|
1
|
-
const l = {
|
2
|
-
width: 1024,
|
3
|
-
height: 1024,
|
4
|
-
body: '<path fill="currentColor" d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4l-66.1-.3c-4.4 0-8 3.5-8 8c0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4l66 .3c4.4 0 8-3.5 8-8c0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"/><path fill="currentColor" d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448s448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/>'
|
5
|
-
};
|
6
|
-
export {
|
7
|
-
l as default
|
8
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
const c = {
|
2
|
-
width: 1024,
|
3
|
-
height: 1024,
|
4
|
-
body: '<path fill="currentColor" d="m563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8L295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512L196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1l216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"/>'
|
5
|
-
};
|
6
|
-
export {
|
7
|
-
c as default
|
8
|
-
};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{fullscreen-exit-outlined.a75b82c2.mjs → fullscreen-exit-outlined.b77fa876.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{search-outlined-Od1M_oxf.fd26a590.mjs → search-outlined-Od1M_oxf.7815ef44.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/{three-dots-loading-bIlrTJYR.4bf0b865.mjs → three-dots-loading-bIlrTJYR.21cae646.mjs}
RENAMED
File without changes
|
File without changes
|