@kengic/vue 0.30.1-beta.23 → 0.30.1-beta.25
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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +13035 -12599
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +3 -2
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +4 -4
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +30 -30
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +36 -36
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +36 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +38 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -37
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +29 -1
- package/dist/src/component/KgSimulator/KgSimulator.service.d.ts +38 -3
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +6 -3
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +8 -1
- package/dist/src/const/const.model.d.ts +2 -6
- package/dist/src/const/form-id.const.d.ts +4 -0
- package/package.json +1 -1
|
@@ -10,6 +10,14 @@ export declare type PanelPlacement = 'LEFT_TOP' | 'LEFT_BOTTOM' | 'RIGHT_TOP' |
|
|
|
10
10
|
* 节点类型.
|
|
11
11
|
*/
|
|
12
12
|
export declare const NODE_KEY: {
|
|
13
|
+
/**
|
|
14
|
+
* 创建者.
|
|
15
|
+
*/
|
|
16
|
+
CREATOR: string;
|
|
17
|
+
/**
|
|
18
|
+
* 销毁者.
|
|
19
|
+
*/
|
|
20
|
+
DESTROYER: string;
|
|
13
21
|
/**
|
|
14
22
|
* 叠盘机.
|
|
15
23
|
*/
|
|
@@ -27,6 +35,12 @@ export declare const NODE_KEY: {
|
|
|
27
35
|
*/
|
|
28
36
|
PTSSJ: string;
|
|
29
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* 拖拽数据.
|
|
40
|
+
*/
|
|
41
|
+
export declare type IDragDataTransferData = {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
30
44
|
/**
|
|
31
45
|
* 获取对象的属性名数组.
|
|
32
46
|
* @param obj 对象.
|
|
@@ -62,8 +76,22 @@ export declare class Scene {
|
|
|
62
76
|
lastRunTime?: string | null;
|
|
63
77
|
/** 场景名称. */
|
|
64
78
|
name?: string | null;
|
|
65
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* 普通输送机.
|
|
81
|
+
*/
|
|
66
82
|
stations?: Array<Station> | null;
|
|
83
|
+
/**
|
|
84
|
+
* 叠盘机.
|
|
85
|
+
*/
|
|
86
|
+
DPJ?: Array<Station> | null;
|
|
87
|
+
/**
|
|
88
|
+
* 顶升移载机.
|
|
89
|
+
*/
|
|
90
|
+
DSYZJ?: Array<Station> | null;
|
|
91
|
+
/**
|
|
92
|
+
* 光电传感器.
|
|
93
|
+
*/
|
|
94
|
+
GDCGQ?: Array<Station> | null;
|
|
67
95
|
/** Status. */
|
|
68
96
|
status?: 0 | 1 | 2 | 3 | 4 | 5 | null;
|
|
69
97
|
/** 场景中的任务. */
|
|
@@ -1,4 +1,41 @@
|
|
|
1
|
+
import { Station } from './KgSimulator.model';
|
|
1
2
|
export declare type IUseDraw = {
|
|
3
|
+
/**
|
|
4
|
+
* 绘制环形输送线--绘制叠盘机.
|
|
5
|
+
*
|
|
6
|
+
* @param param
|
|
7
|
+
* @param param.station 叠盘机.
|
|
8
|
+
*/
|
|
9
|
+
circularConveyor$drawDPJ(param?: {
|
|
10
|
+
station: Station;
|
|
11
|
+
}): void;
|
|
12
|
+
/**
|
|
13
|
+
* 绘制环形输送线--绘制顶升移载机.
|
|
14
|
+
*
|
|
15
|
+
* @param param
|
|
16
|
+
* @param param.station 顶升移载机.
|
|
17
|
+
*/
|
|
18
|
+
circularConveyor$drawDSYZJ(param?: {
|
|
19
|
+
station: Station;
|
|
20
|
+
}): void;
|
|
21
|
+
/**
|
|
22
|
+
* 绘制环形输送线--绘制光电传感器.
|
|
23
|
+
*
|
|
24
|
+
* @param param
|
|
25
|
+
* @param param.station 光电传感器.
|
|
26
|
+
*/
|
|
27
|
+
circularConveyor$drawGDCGQ(param?: {
|
|
28
|
+
station: Station;
|
|
29
|
+
}): void;
|
|
30
|
+
/**
|
|
31
|
+
* 绘制环形输送线--绘制普通输送机.
|
|
32
|
+
*
|
|
33
|
+
* @param param
|
|
34
|
+
* @param param.station 普通输送机.
|
|
35
|
+
*/
|
|
36
|
+
circularConveyor$drawPTSSJ(param?: {
|
|
37
|
+
station: Station;
|
|
38
|
+
}): void;
|
|
2
39
|
/**
|
|
3
40
|
* 绘制图形.
|
|
4
41
|
*
|
|
@@ -11,7 +48,5 @@ export declare type IUseDraw = {
|
|
|
11
48
|
};
|
|
12
49
|
/**
|
|
13
50
|
* 绘制.
|
|
14
|
-
*
|
|
15
|
-
* @param param
|
|
16
51
|
*/
|
|
17
|
-
export declare function useDraw(
|
|
52
|
+
export declare function useDraw(): IUseDraw;
|
|
@@ -5,7 +5,7 @@ import { IKgTableRow } from '../KgTable';
|
|
|
5
5
|
/**
|
|
6
6
|
* 事件类型.
|
|
7
7
|
*/
|
|
8
|
-
export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick';
|
|
8
|
+
export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick' | 'onAfterSetFormModel';
|
|
9
9
|
export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
|
|
10
10
|
isCreating: boolean | null;
|
|
11
11
|
isUpdating: boolean | null;
|
|
@@ -98,9 +98,12 @@ export declare type IKgSubmitOnSubmitSaveEventListenerParameter = {};
|
|
|
98
98
|
export declare type IKgSubmitOnSubmitSaveEventListener = ((param: IKgSubmitOnSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
99
99
|
export declare type IKgSubmitOnSubmitCancelEventListenerParameter = {};
|
|
100
100
|
export declare type IKgSubmitOnSubmitCancelEventListener = ((param: IKgSubmitOnSubmitCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
101
|
-
export declare type
|
|
102
|
-
export declare type
|
|
101
|
+
export declare type IKgSubmitOnAfterSetFormModelEventListenerParameter = {};
|
|
102
|
+
export declare type IKgSubmitOnAfterSetFormModelEventListener = ((param: IKgSubmitOnAfterSetFormModelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
103
|
+
export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter | IKgSubmitOnAfterSetFormModelEventListenerParameter;
|
|
104
|
+
export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener | IKgSubmitOnAfterSetFormModelEventListener;
|
|
103
105
|
export declare const eventListeners: Record<string, {
|
|
106
|
+
onAfterSetFormModel: Array<IKgSubmitOnAfterSetFormModelEventListener>;
|
|
104
107
|
onAfterValidate: Array<IKgSubmitOnAfterValidateEventListener>;
|
|
105
108
|
onBeforeCancel: Array<IKgSubmitOnBeforeCancelEventListener>;
|
|
106
109
|
onBeforeOk: Array<IKgSubmitOnBeforeOkEventListener>;
|
|
@@ -4,7 +4,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
|
|
|
4
4
|
import { ComputedRef, Ref } from 'vue';
|
|
5
5
|
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
|
6
6
|
import { IKgVarSubmitConfigProperties, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
|
|
7
|
-
import { eventListeners, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
|
|
7
|
+
import { eventListeners, IKgSubmitOnAfterSetFormModelEventListener, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
|
|
8
8
|
import { useKgSubmitStore } from './KgSubmit.store';
|
|
9
9
|
export interface IUseKgSubmit {
|
|
10
10
|
/**
|
|
@@ -164,6 +164,13 @@ export interface IUseKgSubmit {
|
|
|
164
164
|
isLoading: ComputedRef<boolean>;
|
|
165
165
|
/** @deprecated 请使用 {@link formModel} */
|
|
166
166
|
model: ComputedRef<Record<string, any>>;
|
|
167
|
+
/**
|
|
168
|
+
* <p>监听事件: 表单对象设置完成.</p>
|
|
169
|
+
* @param listener 事件监听函数.
|
|
170
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
171
|
+
* @return {} 移除事件监听函数.
|
|
172
|
+
*/
|
|
173
|
+
onAfterSetFormModel(listener: IKgSubmitOnAfterSetFormModelEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
167
174
|
/**
|
|
168
175
|
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
|
169
176
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
|
@@ -88,9 +88,7 @@ export declare const KG: {
|
|
|
88
88
|
}>>>;
|
|
89
89
|
};
|
|
90
90
|
kgIsEditable: {
|
|
91
|
-
type: import("vue").PropType<boolean>;
|
|
92
|
-
* 画布.
|
|
93
|
-
*/
|
|
91
|
+
type: import("vue").PropType<boolean>;
|
|
94
92
|
default: boolean;
|
|
95
93
|
};
|
|
96
94
|
kgIsEnableOverview: {
|
|
@@ -444,9 +442,7 @@ export declare const KG_CONST: {
|
|
|
444
442
|
}>>>;
|
|
445
443
|
};
|
|
446
444
|
kgIsEditable: {
|
|
447
|
-
type: import("vue").PropType<boolean>;
|
|
448
|
-
* 画布.
|
|
449
|
-
*/
|
|
445
|
+
type: import("vue").PropType<boolean>;
|
|
450
446
|
default: boolean;
|
|
451
447
|
};
|
|
452
448
|
kgIsEnableOverview: {
|
|
@@ -31,6 +31,10 @@ export declare const FORM_IDS: {
|
|
|
31
31
|
* 模拟器--菜单--场景--打开--环线输送线.
|
|
32
32
|
*/
|
|
33
33
|
KG_SIMULATOR__MENU__SCENE__OPEN__CIRCULAR_CONVEYOR: string;
|
|
34
|
+
/**
|
|
35
|
+
* 模拟器--面板--属性.
|
|
36
|
+
*/
|
|
37
|
+
KG_SIMULATOR__PANEL__PROPERTY: string;
|
|
34
38
|
KG_SQL_CLIENT__RESULT_TAB: string;
|
|
35
39
|
/**
|
|
36
40
|
* 变量配置弹窗:按钮:按钮管理.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.30.1-beta.
|
|
3
|
+
"version": "0.30.1-beta.25",
|
|
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",
|