@kengic/vue 0.6.1-beta.7 → 0.6.1

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.
@@ -127,7 +127,7 @@ export declare class VarButtonConfig {
127
127
  id?: string | null;
128
128
  constructor(obj?: VarButtonConfig);
129
129
  }
130
- /** 变量别名. */
130
+ /** 变量配置:翻译. */
131
131
  export declare class VarCatalog {
132
132
  /** 定制级别(CustomLevel). */
133
133
  cust_lvl?: number | null;
@@ -303,7 +303,7 @@ export declare class VarGridMasterDTO {
303
303
  varGridDetails?: Array<VarGridDetail> | null;
304
304
  constructor(obj?: VarGridMasterDTO);
305
305
  }
306
- /** 变量查找. */
306
+ /** 变量配置:查找弹窗配置. */
307
307
  export declare class VarLookup {
308
308
  /** 定制级别(CustomLevel). */
309
309
  cust_lvl?: number | null;
@@ -327,7 +327,7 @@ export declare class VarLookup {
327
327
  var_nam?: string | null;
328
328
  constructor(obj?: VarLookup);
329
329
  }
330
- /** 变量下拉列表配置. */
330
+ /** 变量配置:下拉列表配置. */
331
331
  export declare class VarPossibility {
332
332
  /** 接口地址(Command). */
333
333
  cmd?: string | null;
@@ -523,7 +523,7 @@ export declare class VarSubmitConfig {
523
523
  upt_min_width?: number | null;
524
524
  constructor(obj?: VarSubmitConfig);
525
525
  }
526
- /** 提交字段. */
526
+ /** 表单字段. */
527
527
  export declare class VarSubmitField {
528
528
  /** 复制时的默认值. */
529
529
  cpy_dft_val?: string | null;
@@ -571,6 +571,8 @@ export declare class VarSubmitField {
571
571
  key_flg?: number | null;
572
572
  /** 提示文字(Placeholder). */
573
573
  placeholder?: string | null;
574
+ /** 所属分组. */
575
+ section?: string | null;
574
576
  /** 显示顺序. */
575
577
  srtseq?: number | null;
576
578
  /** 更新时的默认值. */
@@ -589,14 +591,26 @@ export declare class VarSubmitField {
589
591
  var_nam?: string | null;
590
592
  constructor(obj?: VarSubmitField);
591
593
  }
592
- /** 变量控件配置. */
594
+ /** 变量配置:控件配置. */
593
595
  export declare class VarVariableConfig {
596
+ /** 复制时的控件属性. */
597
+ cpy_ctrl_prop?: string | null;
598
+ /** 复制时的控件类型. */
599
+ cpy_ctrl_typ?: string | null;
600
+ /** 创建时的控件属性. */
601
+ crt_ctrl_prop?: string | null;
602
+ /** 创建时的控件类型. */
603
+ crt_ctrl_typ?: string | null;
594
604
  /** 控件属性(ControlProperties). */
595
605
  ctrl_prop?: string | null;
596
606
  /** 控件类型(ControlType). */
597
607
  ctrl_typ?: string | null;
598
608
  /** 定制级别(CustomLevel). */
599
609
  cust_lvl?: number | null;
610
+ /** 删除时的控件属性. */
611
+ del_ctrl_prop?: string | null;
612
+ /** 删除时的控件类型. */
613
+ del_ctrl_typ?: string | null;
600
614
  /** 界面标识(FormID). */
601
615
  frm_id?: string | null;
602
616
  /** 分组(GroupName). */
@@ -605,11 +619,19 @@ export declare class VarVariableConfig {
605
619
  id?: string | null;
606
620
  /** 语言(LocaleID). */
607
621
  locale_id?: string | null;
622
+ /** 查询时的控件属性. */
623
+ prf_ctrl_prop?: string | null;
624
+ /** 查询时的控件类型. */
625
+ prf_ctrl_typ?: string | null;
626
+ /** 更新时的控件属性. */
627
+ upt_ctrl_prop?: string | null;
628
+ /** 更新时的控件类型. */
629
+ upt_ctrl_typ?: string | null;
608
630
  /** 变量名称(VariableName). */
609
631
  var_nam?: string | null;
610
632
  constructor(obj?: VarVariableConfig);
611
633
  }
612
- /** 变量表单输入验证. */
634
+ /** 变量配置:表单输入验证. */
613
635
  export declare class VarVariableInput {
614
636
  /** 定制级别(CustomLevel). */
615
637
  cust_lvl?: number | null;
@@ -89,7 +89,7 @@ export declare type IKgFormItemSlotControlParam = {
89
89
  varName: string;
90
90
  props: ComputedRef<IKgFormItemProps>;
91
91
  model: ComputedRef<Record<string, any>>;
92
- varConfig: VarVariableConfig;
92
+ varVariableConfig: VarVariableConfig;
93
93
  varProfileDetail: VarProfileDetail;
94
94
  varSubmitField: VarSubmitField;
95
95
  };
@@ -66,6 +66,13 @@ export interface IKgTableCellDisplayTypeProperties {
66
66
  /** 要跳转的路由地址. */
67
67
  path: string;
68
68
  };
69
+ DESC: {
70
+ /**
71
+ * 描述字段的名称.
72
+ * @default 原字段 + '_dsc'
73
+ */
74
+ dscFieldName?: string;
75
+ };
69
76
  }
70
77
  /**
71
78
  * 对应于 {@link VarVariableConfig.ctrl_prop} 字段, 不同类型的额外参数.
@@ -95,7 +95,7 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
95
95
  getVarCatalog(): (formID?: string | null, var_nam?: string | null) => VarCatalog | null;
96
96
  getVarLookup(): (formID?: string | null, var_nam?: string | null) => VarLookup | null;
97
97
  getVarPossibility(): (formID?: string | null, var_nam?: string | null) => VarPossibility | null;
98
- getVariableConfig(): (formID?: string | null, var_nam?: string | null) => VarVariableConfig | null;
98
+ getVarVariableConfig(): (formID?: string | null, var_nam?: string | null) => VarVariableConfig | null;
99
99
  getVarVariableInput(): (formID?: string | null, var_nam?: string | null) => VarVariableInput | null;
100
100
  getVarButtons(): (formID?: string | null) => Array<VarButton> | null;
101
101
  getVarSubmitConfig(): (formID?: string | null) => VarSubmitConfig | null;
@@ -43,6 +43,7 @@ export interface IKgState {
43
43
  /** 检查权限的方法. */
44
44
  pFunction: P | null;
45
45
  router: Router | null;
46
+ useUserStore: StoreDefinition | null;
46
47
  /** 配置参数. */
47
48
  option: IKgStateOption;
48
49
  }
@@ -50,11 +51,13 @@ export declare type IKgStoreDefinition = StoreDefinition<'Kg', IKgState, {
50
51
  /** 获取配置参数. */
51
52
  getLocale: ComputedRef<IKgLocale> | null;
52
53
  getRouter: Router | null;
54
+ getUseUserStore(): StoreDefinition<any, any, any, any> | null;
53
55
  /** 获取配置参数. */
54
56
  getOption: IKgStateOption;
55
57
  }, {
56
58
  setLocale(locale: ComputedRef<IKgLocale> | null): void;
57
59
  setRouter(router: Router): void;
60
+ setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
58
61
  setT(i18n: any): void;
59
62
  setP(fn: P): void;
60
63
  setOption(option: IKgStateOption): void;
@@ -1,4 +1,4 @@
1
- import { Pinia } from 'pinia';
1
+ import { Pinia, StoreDefinition } from 'pinia';
2
2
  import { App, ComputedRef } from 'vue';
3
3
  import { Router } from 'vue-router';
4
4
  import { IKgLocale } from '../consts';
@@ -25,6 +25,8 @@ export declare type IKgOptions = {
25
25
  /** 权限方法, 用来判断是否具有某个(某些)权限. */
26
26
  pFunction: P;
27
27
  router: Router;
28
+ /** 状态数据: 用户. */
29
+ useUserStore: StoreDefinition<any, any, any, any>;
28
30
  /** 配置参数. */
29
31
  option?: IKgStateOption;
30
32
  };
@@ -79,7 +79,14 @@ export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
79
79
  /** 显示为超链接, 点击打开更新弹窗. */
80
80
  UPDATE_LINK = "UPDATE_LINK",
81
81
  /** 显示为超链接, 点击跳转到其他路由. */
82
- ROUTE_LINK = "ROUTE_LINK"
82
+ ROUTE_LINK = "ROUTE_LINK",
83
+ /**
84
+ * 显示描述.
85
+ * 假如原字段为 'status', 则实际上会显示描述字段 'status_dsc' 的值.
86
+ * 默认, 描述字段是原字段加上 '_dsc' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc'.
87
+ * 可以通过 {@link IKgTableCellDisplayTypeProperties.DESC.dscFieldName} 设置自定义的描述字段名.
88
+ */
89
+ DESC = "DESC"
83
90
  }
84
91
  /** 按钮类型. */
85
92
  export declare const enum KG_BUTTON_TYPE {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.6.1-beta.7",
3
+ "version": "0.6.1",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -46,7 +46,7 @@
46
46
  "vue-router": "4.1.6"
47
47
  },
48
48
  "devDependencies": {
49
- "@kengic/pont": "1.2.10-beta.43",
49
+ "@kengic/pont": "1.2.10-beta.44",
50
50
  "@types/lodash-es": "~4.17.7",
51
51
  "@types/node": "~18.14.6",
52
52
  "@types/semver": "~7.3.13",