@kengic/vue 0.13.6 → 0.13.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -517,6 +517,8 @@ export declare class VarSubmitConfig {
517
517
  max_width?: number | null;
518
518
  /** 最小宽度. */
519
519
  min_width?: number | null;
520
+ /** 配置属性. */
521
+ props?: string | null;
520
522
  /** 是否支持拖动宽度. */
521
523
  resizable_flg?: number | null;
522
524
  /** 是否根据表单宽度自动调整字段宽度. */
@@ -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
  */
@@ -74,6 +75,7 @@ export declare class KgUtil {
74
75
  * @param key 属性名.
75
76
  * @param value 参数的原始值.
76
77
  * @param formID 界面标识.
78
+ * @param isPad 是否补齐日期格式. 即将 `YYYY-MM-DD` 补齐为 `YYYY-MM-DD 00:00:00`, 将 `HH:mm:ss` 补齐为 `1970-01-01 HH:mm:ss`.
77
79
  */
78
80
  private static parseParamFromDayJS;
79
81
  /**
@@ -82,7 +84,7 @@ export declare class KgUtil {
82
84
  * https://www.antdv.com/components/modal
83
85
  * @param props
84
86
  */
85
- static confirm(props: KgConfirmModalProps): ModalFunc;
87
+ static confirm(props: IKgConfirmModalProps): ModalFunc;
86
88
  /**
87
89
  * 如果不是表单验证错误, 则抛出该错误.
88
90
  * @param e 错误对象.
@@ -109,7 +111,3 @@ export declare type ModalFunc = {
109
111
  showLoading(): void;
110
112
  hideLoading(): void;
111
113
  };
112
- export declare type KgConfirmModalProps = ModalFuncProps & {
113
- /** 是否隐藏取消按钮. */
114
- kgHideCancelButton?: boolean;
115
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",