@kengic/vue 0.5.29-beta.0 → 0.5.29

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.
@@ -433,12 +433,38 @@ export declare class VarProfileMasterDTO {
433
433
  }
434
434
  /** 表单配置. */
435
435
  export declare class VarSubmitConfig {
436
+ /** 复制时是否清空ID字段. */
437
+ cpy_clear_id_flg?: number | null;
438
+ /** 复制时的默认宽度. */
439
+ cpy_dft_width?: number | null;
440
+ /** 复制时的显示方式. */
441
+ cpy_display_type?: string | null;
436
442
  /** 复制时可用. */
437
443
  cpy_flg?: number | null;
444
+ /** 复制时的布局方式. */
445
+ cpy_layout?: string | null;
446
+ /** 复制时的最小宽度. */
447
+ cpy_min_width?: number | null;
448
+ /** 创建时的默认宽度. */
449
+ crt_dft_width?: number | null;
450
+ /** 创建时的显示方式. */
451
+ crt_display_type?: string | null;
438
452
  /** 创建时可用. */
439
453
  crt_flg?: number | null;
454
+ /** 创建时的布局方式. */
455
+ crt_layout?: string | null;
456
+ /** 创建时的最小宽度. */
457
+ crt_min_width?: number | null;
458
+ /** 删除时的默认宽度. */
459
+ del_dft_width?: number | null;
460
+ /** 删除时的显示方式. */
461
+ del_display_type?: string | null;
440
462
  /** 删除时可用. */
441
463
  del_flg?: number | null;
464
+ /** 删除时的布局方式. */
465
+ del_layout?: string | null;
466
+ /** 删除时的最小宽度. */
467
+ del_min_width?: number | null;
442
468
  /** 是否默认全屏. */
443
469
  dft_fullscreen_flg?: number | null;
444
470
  /** 默认宽度. */
@@ -465,8 +491,16 @@ export declare class VarSubmitConfig {
465
491
  resizable_flg?: number | null;
466
492
  /** 是否根据表单宽度自动调整字段宽度. */
467
493
  responsive_flg?: number | null;
494
+ /** 更新时的默认宽度. */
495
+ upt_dft_width?: number | null;
496
+ /** 更新时的显示方式. */
497
+ upt_display_type?: string | null;
468
498
  /** 更新时可用. */
469
499
  upt_flg?: number | null;
500
+ /** 更新时的布局方式. */
501
+ upt_layout?: string | null;
502
+ /** 更新时的最小宽度. */
503
+ upt_min_width?: number | null;
470
504
  constructor(obj?: VarSubmitConfig);
471
505
  }
472
506
  /** 提交字段. */
@@ -1,4 +1,7 @@
1
1
  import { Ref, UnwrapRef } from 'vue';
2
+ import { KG_VAR_SUBMIT__DISPLAY_TYPE } from '../../consts';
3
+ import { IKgSubmitHeaderProps } from './components/KgSubmit.Header';
4
+ import { IKgSubmitProps } from './KgSubmit';
2
5
  export declare function _useFormModel(): {
3
6
  model: Ref<Record<string, any>>;
4
7
  };
@@ -7,3 +10,15 @@ export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivEleme
7
10
  export declare function _useTitle(): {
8
11
  title: Ref<string>;
9
12
  };
13
+ export declare function _useClass(props: IKgSubmitProps, kgSubmitHeaderProps: IKgSubmitHeaderProps): {
14
+ getClass: Ref<string>;
15
+ };
16
+ export declare function _useLayout(): {
17
+ getLayout: Ref<'horizontal' | 'vertical'>;
18
+ };
19
+ export declare function _useDisplayType(): {
20
+ getDisplayType: Ref<KG_VAR_SUBMIT__DISPLAY_TYPE>;
21
+ };
22
+ export declare function _useDefaultWidth(): {
23
+ getDefaultWidth: Ref<number>;
24
+ };
@@ -21,28 +21,43 @@ export declare type IKgSubmitOpenCbParam = {
21
21
  row: IKgTableRow | null;
22
22
  model: Ref<Record<string, any>>;
23
23
  };
24
- export declare type IKgSubmitOpenCb = (args: IKgSubmitOpenCbParam) => Promise<boolean>;
24
+ export declare type IKgSubmitOpenCb = (param: IKgSubmitOpenCbParam) => Promise<boolean>;
25
25
  /** 事件监听函数: close. */
26
- export declare type IKgSubmitCloseCb = (args?: any | null) => Promise<boolean>;
26
+ export declare type IKgSubmitCloseCb = (param?: any | null) => Promise<boolean>;
27
27
  /** 事件监听函数: beforeOk. */
28
28
  export declare type IKgSubmitBeforeOkCbParam = {
29
+ isCreating: boolean;
30
+ isUpdating: boolean;
31
+ isCopying: boolean;
32
+ isDeleting: boolean;
33
+ row: IKgTableRow | null;
29
34
  rules: Ref<Record<string, RuleObject[]>>;
30
35
  model: Ref<Record<string, any>>;
31
36
  };
32
- export declare type IKgSubmitBeforeOkCb = (args: IKgSubmitBeforeOkCbParam) => Promise<boolean>;
37
+ export declare type IKgSubmitBeforeOkCb = (param: IKgSubmitBeforeOkCbParam) => Promise<boolean>;
33
38
  /** 事件监听函数: afterValidate. */
34
39
  export declare type IKgSubmitAfterValidateCbParam = {
40
+ isCreating: boolean;
41
+ isUpdating: boolean;
42
+ isCopying: boolean;
43
+ isDeleting: boolean;
44
+ row: IKgTableRow | null;
35
45
  model: Ref<Record<string, any>>;
36
46
  };
37
- export declare type IKgSubmitAfterValidateCb = (args: IKgSubmitAfterValidateCbParam) => Promise<boolean>;
47
+ export declare type IKgSubmitAfterValidateCb = (param: IKgSubmitAfterValidateCbParam) => Promise<boolean>;
38
48
  /** 事件监听函数: beforeRequest. */
39
49
  export declare type IKgSubmitBeforeRequestCbParam = {
50
+ isCreating: boolean;
51
+ isUpdating: boolean;
52
+ isCopying: boolean;
53
+ isDeleting: boolean;
54
+ row: IKgTableRow | null;
40
55
  params: Record<string, any>;
41
56
  data: Record<string, any>;
42
57
  };
43
- export declare type IKgSubmitBeforeRequestCb = (args: IKgSubmitBeforeRequestCbParam) => Promise<boolean>;
58
+ export declare type IKgSubmitBeforeRequestCb = (param: IKgSubmitBeforeRequestCbParam) => Promise<boolean>;
44
59
  /** 事件监听函数: ok. */
45
- export declare type IKgSubmitOkCb = (args?: any | null) => Promise<boolean>;
60
+ export declare type IKgSubmitOkCb = (param?: any | null) => Promise<boolean>;
46
61
  export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitCloseCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb;
47
62
  export interface IKgSubmitState {
48
63
  openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
@@ -120,6 +120,7 @@ declare const _default: {
120
120
  importTemplate: string;
121
121
  lookup: string;
122
122
  no: string;
123
+ ok: string;
123
124
  query: string;
124
125
  refresh: string;
125
126
  required: string;
@@ -119,6 +119,7 @@ declare const _default: {
119
119
  importTemplate: string;
120
120
  lookup: string;
121
121
  no: string;
122
+ ok: string;
122
123
  query: string;
123
124
  refresh: string;
124
125
  required: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.29-beta.0",
3
+ "version": "0.5.29",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",