@kengic/vue 0.26.3-beta.4 → 0.26.3-beta.6

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.
@@ -2,9 +2,6 @@ import { IRequestConfig, IRequestOptions } from '../../../../services';
2
2
  import * as DEF from '../../../def';
3
3
  /** 请求参数. */
4
4
  export declare class GetAllQuery {
5
- /** 界面标识(FormID). */
6
- frm_id?: string | null;
7
- constructor(obj?: GetAllQuery);
8
5
  }
9
6
  /**
10
7
  * 查询所有变量配置.
@@ -12,8 +9,8 @@ export declare class GetAllQuery {
12
9
  * @param config 请求配置.
13
10
  * @param option 请求选项.
14
11
  */
15
- export declare function GetAll(config?: IRequestConfig<GetAllQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarDTO>;
12
+ export declare function GetAll(config?: IRequestConfig<GetAllQuery, DEF.WMS.VarQuery>, option?: IRequestOptions): Promise<DEF.WMS.VarDTO>;
16
13
  export declare namespace GetAll {
17
- var method: "GET";
14
+ var method: "POST";
18
15
  var url: string;
19
16
  }
@@ -299,6 +299,8 @@ export declare class UpdateVarGridMasterQuery {
299
299
  frm_id?: string | null;
300
300
  /** 视图变量名称(GridVariableName). */
301
301
  grd_var_nam?: string | null;
302
+ /** 视图名称翻译. */
303
+ grd_var_nam_dsc?: string | null;
302
304
  /** 分组(GroupName). */
303
305
  grp_nam?: string | null;
304
306
  /** 主键 */
@@ -717,6 +719,8 @@ export declare class VarGridMasterDTO {
717
719
  id?: string | null;
718
720
  /** 用户(UserID). */
719
721
  usr_id?: string | null;
722
+ /** 用户姓名. */
723
+ usr_id_dsc?: string | null;
720
724
  /** 表格视图明细列表. */
721
725
  varGridDetails?: Array<VarGridDetail> | null;
722
726
  constructor(obj?: VarGridMasterDTO);
@@ -803,6 +807,12 @@ export declare class VarProfileMasterDTO {
803
807
  varProfileDetails?: Array<VarProfileDetail> | null;
804
808
  constructor(obj?: VarProfileMasterDTO);
805
809
  }
810
+ /** 变量配置查询参数. */
811
+ export declare class VarQuery {
812
+ /** 界面标识(FormID). */
813
+ frm_id?: string | null;
814
+ constructor(obj?: VarQuery);
815
+ }
806
816
  /** 提交表单配置. */
807
817
  export declare class VarSubmitConfig {
808
818
  /** 所属按钮的变量名称. */
@@ -222,7 +222,19 @@ export interface IUseKgSubmit {
222
222
  onOpen(listener: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
223
223
  /**
224
224
  * <p>修改某个「提交表单字段」的部分属性.</p>
225
- * <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」.</p>
225
+ *
226
+ * <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
227
+ * <ul>
228
+ * <li>
229
+ * <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonVarName} === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
230
+ * </li>
231
+ * <li>
232
+ * <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarButton.var_nam} 是否匹配来确认按钮.</p>
233
+ * </li>
234
+ * <li>
235
+ * <p>如果参数 {@link param.buttonType} !== <code>undefined</code> && {@link param.buttonType} !== <code>OTHER</code>, 根据 {@link param.buttonType} 和 {@link VarButton.typ} 是否匹配来确认按钮.</p>
236
+ * </li>
237
+ * </ul>
226
238
  *
227
239
  * @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
228
240
  * @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
@@ -2,35 +2,35 @@ import { RowClassName } from 'ant-design-vue/es/vc-table/interface';
2
2
  import { ExtractPropTypes, PropType } from 'vue';
3
3
  import './KgTable.less';
4
4
  export declare const getProps: () => {
5
+ /** 是否禁用某行的勾选框. */
6
+ kgCheckboxDisabled: PropType<(row: any) => boolean>;
5
7
  /** 是否禁用表格. */
6
8
  kgDisabled: {
7
9
  type: PropType<boolean>;
8
10
  default: undefined;
9
11
  };
10
- /** 是否禁用某行的勾选框. */
11
- kgCheckboxDisabled: PropType<(row: any) => boolean>;
12
12
  /** 设置行的样式类名. */
13
13
  kgRowClassName: PropType<RowClassName<any>>;
14
14
  };
15
15
  export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
16
16
  declare const _default: import("vue").DefineComponent<{
17
+ /** 是否禁用某行的勾选框. */
18
+ kgCheckboxDisabled: PropType<(row: any) => boolean>;
17
19
  /** 是否禁用表格. */
18
20
  kgDisabled: {
19
21
  type: PropType<boolean>;
20
22
  default: undefined;
21
23
  };
22
- /** 是否禁用某行的勾选框. */
23
- kgCheckboxDisabled: PropType<(row: any) => boolean>;
24
24
  /** 设置行的样式类名. */
25
25
  kgRowClassName: PropType<RowClassName<any>>;
26
26
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
27
+ /** 是否禁用某行的勾选框. */
28
+ kgCheckboxDisabled: PropType<(row: any) => boolean>;
27
29
  /** 是否禁用表格. */
28
30
  kgDisabled: {
29
31
  type: PropType<boolean>;
30
32
  default: undefined;
31
33
  };
32
- /** 是否禁用某行的勾选框. */
33
- kgCheckboxDisabled: PropType<(row: any) => boolean>;
34
34
  /** 设置行的样式类名. */
35
35
  kgRowClassName: PropType<RowClassName<any>>;
36
36
  }>>, {
@@ -22,6 +22,8 @@ export declare function _useLoading(): {
22
22
  isLoading: ComputedRef<boolean>;
23
23
  };
24
24
  export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
25
+ export declare type ICacheScrollState = {};
26
+ export declare function _useCacheScrollState(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): ICacheScrollState;
25
27
  export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
26
28
  export declare function _useDatas(): {
27
29
  transformDatas: (response: Ref<any>) => {
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
@@ -216,6 +216,7 @@ declare const _default: {
216
216
  };
217
217
  action: string;
218
218
  add: string;
219
+ allUser: string;
219
220
  asc: string;
220
221
  button: string;
221
222
  cancel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.3-beta.4",
3
+ "version": "0.26.3-beta.6",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",