@kengic/vue 0.13.7 → 0.13.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarButtonConfig, VarCatalog, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarLookup, VarPossibility, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField, VarVariableConfig, VarVariableInput } from '../../apis/WMS/models';
|
3
|
-
import { IKgEventCb } from '../../consts';
|
3
|
+
import { IKgEventCb, IKgSubmitConfigProps } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'retrieve': 变量配置查询完成
|
@@ -111,6 +111,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
111
111
|
getVarVariableInput(): (frm_id: string | null | undefined, var_nam: string | null | undefined) => VarVariableInput | null;
|
112
112
|
getVarButtons(): (frm_id: string | null | undefined) => Array<VarButton> | null;
|
113
113
|
getVarSubmitConfig(): (frm_id: string | null | undefined) => VarSubmitConfig | null;
|
114
|
+
getVarSubmitConfigProps(): (frm_id: string | null | undefined) => IKgSubmitConfigProps;
|
114
115
|
/** 获取所有提交字段. */
|
115
116
|
getVarSubmitFields(): (frm_id: string | null | undefined) => Array<VarSubmitField> | null;
|
116
117
|
/** 获取创建时的提交字段. */
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
1
2
|
/** 移除事件监听函数. */
|
2
3
|
export declare type IRemoveEventListenerHandler = () => void;
|
3
4
|
export declare type IKgEventCb = {
|
@@ -20,3 +21,25 @@ export interface Menu {
|
|
20
21
|
}
|
21
22
|
/** 语言. */
|
22
23
|
export declare type IKgLocale = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
|
24
|
+
/**
|
25
|
+
* 确认弹窗的参数.
|
26
|
+
* 对应后端的 com.kengic.wms.var.entity.VarButton#modal_props 字段.
|
27
|
+
*/
|
28
|
+
export declare type IKgConfirmModalProps = ModalFuncProps & {
|
29
|
+
/** 是否隐藏取消按钮. */
|
30
|
+
kgHideCancelButton?: boolean;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* 提交弹窗的参数.
|
34
|
+
* 对应后端的 com.kengic.wms.var.entity.VarSubmitConfig#props 字段.
|
35
|
+
*/
|
36
|
+
export interface IKgSubmitConfigProps {
|
37
|
+
/** 创建时, 确认按钮的文本对应的变量名. */
|
38
|
+
'footer.ok-button.text-var-name.creating'?: string;
|
39
|
+
/** 更新时, 确认按钮的文本对应的变量名. */
|
40
|
+
'footer.ok-button.text-var-name.updating'?: string;
|
41
|
+
/** 复制时, 确认按钮的文本对应的变量名. */
|
42
|
+
'footer.ok-button.text-var-name.copying'?: string;
|
43
|
+
/** 删除时, 确认按钮的文本对应的变量名. */
|
44
|
+
'footer.ok-button.text-var-name.deleting'?: string;
|
45
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
2
|
import dayjs, { Dayjs } from 'dayjs';
|
3
|
+
import { IKgConfirmModalProps } from '../consts';
|
3
4
|
/**
|
4
5
|
* 通用工具.
|
5
6
|
*/
|
@@ -83,7 +84,7 @@ export declare class KgUtil {
|
|
83
84
|
* https://www.antdv.com/components/modal
|
84
85
|
* @param props
|
85
86
|
*/
|
86
|
-
static confirm(props:
|
87
|
+
static confirm(props: IKgConfirmModalProps): ModalFunc;
|
87
88
|
/**
|
88
89
|
* 如果不是表单验证错误, 则抛出该错误.
|
89
90
|
* @param e 错误对象.
|
@@ -110,7 +111,3 @@ export declare type ModalFunc = {
|
|
110
111
|
showLoading(): void;
|
111
112
|
hideLoading(): void;
|
112
113
|
};
|
113
|
-
export declare type KgConfirmModalProps = ModalFuncProps & {
|
114
|
-
/** 是否隐藏取消按钮. */
|
115
|
-
kgHideCancelButton?: boolean;
|
116
|
-
};
|