@kengic/vue 0.19.2-beta.1 → 0.19.2-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,8 @@ export declare class CreateVarDdaQuery {
28
28
  varSubmitFields?: Array<VarSubmitField> | null;
29
29
  /** 变量翻译. */
30
30
  varVariableCatalogs?: Array<VarVariableCatalog> | null;
31
+ /** 控件配置. */
32
+ varVariableConfigs?: Array<VarVariableConfig> | null;
31
33
  constructor(obj?: CreateVarDdaQuery);
32
34
  }
33
35
  /** 创建表格视图. */
@@ -1,13 +1,11 @@
1
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
2
  import { SorterResult } from 'ant-design-vue/es/table/interface';
3
- import { ComputedRef, Ref, UnwrapRef, VNode } from 'vue';
3
+ import { ComputedRef, Ref, UnwrapRef } from 'vue';
4
4
  import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './index.vm';
5
5
  import { IKgTableProps } from './KgTable';
6
- export declare type IUseRenderBodyCell = {
7
- /** 表格的列. */
8
- renderBodyCell: (args: any, context?: KG_TABLE_CELL_CONTEXT) => VNode;
6
+ export declare function _useRenderBodyCell(): {
7
+ renderBodyCell: (args: any, context?: KG_TABLE_CELL_CONTEXT) => any;
9
8
  };
10
- export declare function _useRenderBodyCell(): IUseRenderBodyCell;
11
9
  export declare type IUseColumns = {
12
10
  /** 表格的列. */
13
11
  columns: ComputedRef<ColumnsType<IKgTableRow>>;
@@ -1,16 +1,16 @@
1
1
  import { PropType } from 'vue';
2
2
  import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../index.vm';
3
- import './KgTable.Cell.less';
3
+ import './KgTable.BodyCell.less';
4
4
  export declare const getProps: () => {
5
- /** 行. */
5
+ /** 行对象. */
6
6
  kgRow: PropType<IKgTableRow>;
7
- /** 列值. */
7
+ /** 列数据. */
8
8
  kgValue: PropType<any>;
9
9
  /** 变量名称. */
10
10
  kgVarName: PropType<string | null>;
11
11
  /**
12
12
  * 所处环境.
13
- * @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
13
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
14
14
  */
15
15
  kgContext: {
16
16
  type: PropType<string>;
@@ -20,15 +20,15 @@ export declare const getProps: () => {
20
20
  onKgUpdateLinkClick: PropType<() => void>;
21
21
  };
22
22
  declare const _default: import("vue").DefineComponent<{
23
- /** 行. */
23
+ /** 行对象. */
24
24
  kgRow: PropType<IKgTableRow>;
25
- /** 列值. */
25
+ /** 列数据. */
26
26
  kgValue: PropType<any>;
27
27
  /** 变量名称. */
28
28
  kgVarName: PropType<string | null>;
29
29
  /**
30
30
  * 所处环境.
31
- * @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
31
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
32
32
  */
33
33
  kgContext: {
34
34
  type: PropType<string>;
@@ -37,15 +37,15 @@ declare const _default: import("vue").DefineComponent<{
37
37
  /** 点击链接, 打开更新弹窗. */
38
38
  onKgUpdateLinkClick: PropType<() => void>;
39
39
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
- /** 行. */
40
+ /** 行对象. */
41
41
  kgRow: PropType<IKgTableRow>;
42
- /** 列值. */
42
+ /** 列数据. */
43
43
  kgValue: PropType<any>;
44
44
  /** 变量名称. */
45
45
  kgVarName: PropType<string | null>;
46
46
  /**
47
47
  * 所处环境.
48
- * @default {@link KG_TABLE_CELL_CONTEXT.TABLE_CELL}
48
+ * @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
49
49
  */
50
50
  kgContext: {
51
51
  type: PropType<string>;
@@ -0,0 +1,53 @@
1
+ import { ColumnType } from 'ant-design-vue/es/table';
2
+ import { PropType } from 'vue';
3
+ import './KgTable.HeaderCell.less';
4
+ export declare const getProps: () => {
5
+ /**
6
+ * 列的数据.
7
+ */
8
+ column: {
9
+ type: PropType<ColumnType<any>>;
10
+ };
11
+ /**
12
+ * 表格是否禁用.
13
+ * @default undefined
14
+ */
15
+ kgDisabled: {
16
+ type: PropType<boolean>;
17
+ default: undefined;
18
+ };
19
+ };
20
+ declare const _default: import("vue").DefineComponent<{
21
+ /**
22
+ * 列的数据.
23
+ */
24
+ column: {
25
+ type: PropType<ColumnType<any>>;
26
+ };
27
+ /**
28
+ * 表格是否禁用.
29
+ * @default undefined
30
+ */
31
+ kgDisabled: {
32
+ type: PropType<boolean>;
33
+ default: undefined;
34
+ };
35
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ /**
37
+ * 列的数据.
38
+ */
39
+ column: {
40
+ type: PropType<ColumnType<any>>;
41
+ };
42
+ /**
43
+ * 表格是否禁用.
44
+ * @default undefined
45
+ */
46
+ kgDisabled: {
47
+ type: PropType<boolean>;
48
+ default: undefined;
49
+ };
50
+ }>> & {}, {
51
+ kgDisabled: boolean;
52
+ }>;
53
+ export default _default;
@@ -47,7 +47,7 @@ export interface IKgTableSlotParams<T = IKgTableRow> {
47
47
  }
48
48
  /** 表格的单元格所处环境. */
49
49
  export declare const enum KG_TABLE_CELL_CONTEXT {
50
- /** 表格的单元格. */
50
+ /** 表体的单元格. */
51
51
  TABLE_CELL = "TABLE_CELL",
52
52
  /** 表头的过滤器. */
53
53
  TABLE_FILTER = "TABLE_FILTER"
@@ -1,4 +1,4 @@
1
- import { ResultSetMetadataColumn, SysPermission, VarButton, VarGridDetail, VarProfileDetail, VarSubmitField } from '../../../apis/WMS/models';
1
+ import { ResultSetMetadataColumn, SysPermission, VarButton, VarGridDetail, VarProfileDetail, VarSubmitField, VarVariableConfig } from '../../../apis/WMS/models';
2
2
  export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"KgPageDdaCreate", import("pinia")._UnwrapAll<Pick<{
3
3
  isLoading: import("vue").Ref<boolean>;
4
4
  resultSetMetadataColumns: import("vue").Ref<{
@@ -243,6 +243,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
243
243
  var_nam?: string | null | undefined;
244
244
  var_text?: string | null | undefined;
245
245
  }[] | null | undefined;
246
+ varVariableConfigs?: {
247
+ cpy_ctrl_prop?: string | null | undefined;
248
+ cpy_ctrl_typ?: string | null | undefined;
249
+ crt_ctrl_prop?: string | null | undefined;
250
+ crt_ctrl_typ?: string | null | undefined;
251
+ ctrl_prop?: string | null | undefined;
252
+ ctrl_typ?: string | null | undefined;
253
+ cust_lvl?: number | null | undefined;
254
+ del_ctrl_prop?: string | null | undefined;
255
+ del_ctrl_typ?: string | null | undefined;
256
+ frm_id?: string | null | undefined;
257
+ grp_nam?: string | null | undefined;
258
+ id?: string | null | undefined;
259
+ locale_id?: string | null | undefined;
260
+ prf_ctrl_prop?: string | null | undefined;
261
+ prf_ctrl_typ?: string | null | undefined;
262
+ upt_ctrl_prop?: string | null | undefined;
263
+ upt_ctrl_typ?: string | null | undefined;
264
+ var_nam?: string | null | undefined;
265
+ }[] | null | undefined;
246
266
  }>;
247
267
  getIsLoading: import("vue").ComputedRef<boolean>;
248
268
  getResultSetMetadataColumns: import("vue").ComputedRef<{
@@ -487,6 +507,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
487
507
  var_nam?: string | null | undefined;
488
508
  var_text?: string | null | undefined;
489
509
  }[] | null | undefined;
510
+ varVariableConfigs?: {
511
+ cpy_ctrl_prop?: string | null | undefined;
512
+ cpy_ctrl_typ?: string | null | undefined;
513
+ crt_ctrl_prop?: string | null | undefined;
514
+ crt_ctrl_typ?: string | null | undefined;
515
+ ctrl_prop?: string | null | undefined;
516
+ ctrl_typ?: string | null | undefined;
517
+ cust_lvl?: number | null | undefined;
518
+ del_ctrl_prop?: string | null | undefined;
519
+ del_ctrl_typ?: string | null | undefined;
520
+ frm_id?: string | null | undefined;
521
+ grp_nam?: string | null | undefined;
522
+ id?: string | null | undefined;
523
+ locale_id?: string | null | undefined;
524
+ prf_ctrl_prop?: string | null | undefined;
525
+ prf_ctrl_typ?: string | null | undefined;
526
+ upt_ctrl_prop?: string | null | undefined;
527
+ upt_ctrl_typ?: string | null | undefined;
528
+ var_nam?: string | null | undefined;
529
+ }[] | null | undefined;
490
530
  }>;
491
531
  getFrmId: import("vue").ComputedRef<string | null | undefined>;
492
532
  getVarButtons: import("vue").ComputedRef<{
@@ -534,9 +574,9 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
534
574
  deleteVarButton: (param: {
535
575
  varNam: string | null | undefined;
536
576
  }) => void;
537
- setVarProfileDetails: (_varProfileDetails: Array<VarProfileDetail>) => void;
538
- setVarGridDetails: (_varGridDetails: Array<VarGridDetail>) => void;
539
- setVarSubmitFields: (_varSubmitFields: Array<VarSubmitField>) => void;
577
+ setVarProfileDetails: (varProfileDetails: Array<VarProfileDetail>) => void;
578
+ setVarGridDetails: (varGridDetails: Array<VarGridDetail>) => void;
579
+ setVarSubmitFields: (varSubmitFields: Array<VarSubmitField>) => void;
540
580
  createVarVariableCatalog: (param: {
541
581
  varNam: string | null | undefined;
542
582
  varText: string | null | undefined;
@@ -545,6 +585,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
545
585
  varNam: string | null | undefined;
546
586
  varText: string | null | undefined;
547
587
  }) => void;
588
+ setVarVariableConfigs: (varVariableConfigs: Array<VarVariableConfig>) => void;
548
589
  getVarText: (varNam: string | null | undefined) => string;
549
590
  }, "isLoading" | "resultSetMetadataColumns" | "createVarDdaQuery">>, import("pinia")._UnwrapAll<Pick<{
550
591
  isLoading: import("vue").Ref<boolean>;
@@ -790,6 +831,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
790
831
  var_nam?: string | null | undefined;
791
832
  var_text?: string | null | undefined;
792
833
  }[] | null | undefined;
834
+ varVariableConfigs?: {
835
+ cpy_ctrl_prop?: string | null | undefined;
836
+ cpy_ctrl_typ?: string | null | undefined;
837
+ crt_ctrl_prop?: string | null | undefined;
838
+ crt_ctrl_typ?: string | null | undefined;
839
+ ctrl_prop?: string | null | undefined;
840
+ ctrl_typ?: string | null | undefined;
841
+ cust_lvl?: number | null | undefined;
842
+ del_ctrl_prop?: string | null | undefined;
843
+ del_ctrl_typ?: string | null | undefined;
844
+ frm_id?: string | null | undefined;
845
+ grp_nam?: string | null | undefined;
846
+ id?: string | null | undefined;
847
+ locale_id?: string | null | undefined;
848
+ prf_ctrl_prop?: string | null | undefined;
849
+ prf_ctrl_typ?: string | null | undefined;
850
+ upt_ctrl_prop?: string | null | undefined;
851
+ upt_ctrl_typ?: string | null | undefined;
852
+ var_nam?: string | null | undefined;
853
+ }[] | null | undefined;
793
854
  }>;
794
855
  getIsLoading: import("vue").ComputedRef<boolean>;
795
856
  getResultSetMetadataColumns: import("vue").ComputedRef<{
@@ -1034,6 +1095,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1034
1095
  var_nam?: string | null | undefined;
1035
1096
  var_text?: string | null | undefined;
1036
1097
  }[] | null | undefined;
1098
+ varVariableConfigs?: {
1099
+ cpy_ctrl_prop?: string | null | undefined;
1100
+ cpy_ctrl_typ?: string | null | undefined;
1101
+ crt_ctrl_prop?: string | null | undefined;
1102
+ crt_ctrl_typ?: string | null | undefined;
1103
+ ctrl_prop?: string | null | undefined;
1104
+ ctrl_typ?: string | null | undefined;
1105
+ cust_lvl?: number | null | undefined;
1106
+ del_ctrl_prop?: string | null | undefined;
1107
+ del_ctrl_typ?: string | null | undefined;
1108
+ frm_id?: string | null | undefined;
1109
+ grp_nam?: string | null | undefined;
1110
+ id?: string | null | undefined;
1111
+ locale_id?: string | null | undefined;
1112
+ prf_ctrl_prop?: string | null | undefined;
1113
+ prf_ctrl_typ?: string | null | undefined;
1114
+ upt_ctrl_prop?: string | null | undefined;
1115
+ upt_ctrl_typ?: string | null | undefined;
1116
+ var_nam?: string | null | undefined;
1117
+ }[] | null | undefined;
1037
1118
  }>;
1038
1119
  getFrmId: import("vue").ComputedRef<string | null | undefined>;
1039
1120
  getVarButtons: import("vue").ComputedRef<{
@@ -1081,9 +1162,9 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1081
1162
  deleteVarButton: (param: {
1082
1163
  varNam: string | null | undefined;
1083
1164
  }) => void;
1084
- setVarProfileDetails: (_varProfileDetails: Array<VarProfileDetail>) => void;
1085
- setVarGridDetails: (_varGridDetails: Array<VarGridDetail>) => void;
1086
- setVarSubmitFields: (_varSubmitFields: Array<VarSubmitField>) => void;
1165
+ setVarProfileDetails: (varProfileDetails: Array<VarProfileDetail>) => void;
1166
+ setVarGridDetails: (varGridDetails: Array<VarGridDetail>) => void;
1167
+ setVarSubmitFields: (varSubmitFields: Array<VarSubmitField>) => void;
1087
1168
  createVarVariableCatalog: (param: {
1088
1169
  varNam: string | null | undefined;
1089
1170
  varText: string | null | undefined;
@@ -1092,6 +1173,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1092
1173
  varNam: string | null | undefined;
1093
1174
  varText: string | null | undefined;
1094
1175
  }) => void;
1176
+ setVarVariableConfigs: (varVariableConfigs: Array<VarVariableConfig>) => void;
1095
1177
  getVarText: (varNam: string | null | undefined) => string;
1096
1178
  }, "getVarButtons" | "getIsLoading" | "getResultSetMetadataColumns" | "getCreateVarDdaQuery" | "getFrmId">>, Pick<{
1097
1179
  isLoading: import("vue").Ref<boolean>;
@@ -1337,6 +1419,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1337
1419
  var_nam?: string | null | undefined;
1338
1420
  var_text?: string | null | undefined;
1339
1421
  }[] | null | undefined;
1422
+ varVariableConfigs?: {
1423
+ cpy_ctrl_prop?: string | null | undefined;
1424
+ cpy_ctrl_typ?: string | null | undefined;
1425
+ crt_ctrl_prop?: string | null | undefined;
1426
+ crt_ctrl_typ?: string | null | undefined;
1427
+ ctrl_prop?: string | null | undefined;
1428
+ ctrl_typ?: string | null | undefined;
1429
+ cust_lvl?: number | null | undefined;
1430
+ del_ctrl_prop?: string | null | undefined;
1431
+ del_ctrl_typ?: string | null | undefined;
1432
+ frm_id?: string | null | undefined;
1433
+ grp_nam?: string | null | undefined;
1434
+ id?: string | null | undefined;
1435
+ locale_id?: string | null | undefined;
1436
+ prf_ctrl_prop?: string | null | undefined;
1437
+ prf_ctrl_typ?: string | null | undefined;
1438
+ upt_ctrl_prop?: string | null | undefined;
1439
+ upt_ctrl_typ?: string | null | undefined;
1440
+ var_nam?: string | null | undefined;
1441
+ }[] | null | undefined;
1340
1442
  }>;
1341
1443
  getIsLoading: import("vue").ComputedRef<boolean>;
1342
1444
  getResultSetMetadataColumns: import("vue").ComputedRef<{
@@ -1581,6 +1683,26 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1581
1683
  var_nam?: string | null | undefined;
1582
1684
  var_text?: string | null | undefined;
1583
1685
  }[] | null | undefined;
1686
+ varVariableConfigs?: {
1687
+ cpy_ctrl_prop?: string | null | undefined;
1688
+ cpy_ctrl_typ?: string | null | undefined;
1689
+ crt_ctrl_prop?: string | null | undefined;
1690
+ crt_ctrl_typ?: string | null | undefined;
1691
+ ctrl_prop?: string | null | undefined;
1692
+ ctrl_typ?: string | null | undefined;
1693
+ cust_lvl?: number | null | undefined;
1694
+ del_ctrl_prop?: string | null | undefined;
1695
+ del_ctrl_typ?: string | null | undefined;
1696
+ frm_id?: string | null | undefined;
1697
+ grp_nam?: string | null | undefined;
1698
+ id?: string | null | undefined;
1699
+ locale_id?: string | null | undefined;
1700
+ prf_ctrl_prop?: string | null | undefined;
1701
+ prf_ctrl_typ?: string | null | undefined;
1702
+ upt_ctrl_prop?: string | null | undefined;
1703
+ upt_ctrl_typ?: string | null | undefined;
1704
+ var_nam?: string | null | undefined;
1705
+ }[] | null | undefined;
1584
1706
  }>;
1585
1707
  getFrmId: import("vue").ComputedRef<string | null | undefined>;
1586
1708
  getVarButtons: import("vue").ComputedRef<{
@@ -1628,9 +1750,9 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1628
1750
  deleteVarButton: (param: {
1629
1751
  varNam: string | null | undefined;
1630
1752
  }) => void;
1631
- setVarProfileDetails: (_varProfileDetails: Array<VarProfileDetail>) => void;
1632
- setVarGridDetails: (_varGridDetails: Array<VarGridDetail>) => void;
1633
- setVarSubmitFields: (_varSubmitFields: Array<VarSubmitField>) => void;
1753
+ setVarProfileDetails: (varProfileDetails: Array<VarProfileDetail>) => void;
1754
+ setVarGridDetails: (varGridDetails: Array<VarGridDetail>) => void;
1755
+ setVarSubmitFields: (varSubmitFields: Array<VarSubmitField>) => void;
1634
1756
  createVarVariableCatalog: (param: {
1635
1757
  varNam: string | null | undefined;
1636
1758
  varText: string | null | undefined;
@@ -1639,5 +1761,6 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
1639
1761
  varNam: string | null | undefined;
1640
1762
  varText: string | null | undefined;
1641
1763
  }) => void;
1764
+ setVarVariableConfigs: (varVariableConfigs: Array<VarVariableConfig>) => void;
1642
1765
  getVarText: (varNam: string | null | undefined) => string;
1643
- }, "setIsLoading" | "setResultSetMetadataColumns" | "setFrmId" | "patchSysPermission" | "updateVarDda" | "createVarButton" | "patchVarButton" | "deleteVarButton" | "setVarProfileDetails" | "setVarGridDetails" | "setVarSubmitFields" | "createVarVariableCatalog" | "updateVarVariableCatalog" | "getVarText">>;
1766
+ }, "setIsLoading" | "setResultSetMetadataColumns" | "setFrmId" | "patchSysPermission" | "updateVarDda" | "createVarButton" | "patchVarButton" | "deleteVarButton" | "setVarProfileDetails" | "setVarGridDetails" | "setVarSubmitFields" | "createVarVariableCatalog" | "updateVarVariableCatalog" | "setVarVariableConfigs" | "getVarText">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.19.2-beta.1",
3
+ "version": "0.19.2-beta.2",
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",