@kengic/vue 0.10.7 → 0.10.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,4 +11,4 @@ export declare type IUseServices = {
11
11
  };
12
12
  export declare function _useServices(): IUseServices;
13
13
  /** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
14
- export declare function _useObserveMenuItemColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
14
+ export declare function _useObserveMenuColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
@@ -3,7 +3,7 @@ import { StoreDefinition } from 'pinia';
3
3
  import { Ref } from 'vue';
4
4
  import { IPage } from '../../apis/WMS/models';
5
5
  import { IKgEventCb } from '../../consts';
6
- import { IKgTableRow } from './index.vm';
6
+ import { IKgTableRow, IKgTableRowHeight } from './index.vm';
7
7
  /**
8
8
  * 事件类型.
9
9
  * 'ready': 就绪, 配置初始完成, 组件渲染完成
@@ -71,6 +71,8 @@ export interface IKgTableState {
71
71
  isRetrievingMap: Map<string, boolean>;
72
72
  /** 表格宽度. */
73
73
  tableWidthMap: Map<string, number>;
74
+ /** 行高. */
75
+ rowHeightMap: Map<string, IKgTableRowHeight>;
74
76
  /** 事件监听函数列表: ready. */
75
77
  onReadyListenersMap: Map<string, Array<IKgTableReadyCb>>;
76
78
  /** '双击某行'事件监听函数列表. */
@@ -95,6 +97,7 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
95
97
  getIsRetrieved(): (formID: string | null | undefined) => boolean | null;
96
98
  getIsRetrieving(): (formID: string | null | undefined) => boolean | null;
97
99
  getTableWidth(): (formID: string | null | undefined) => number | null;
100
+ getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
98
101
  }, {
99
102
  /**
100
103
  * 清理数据.
@@ -137,6 +140,7 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
137
140
  setIsRetrieved(formID: string | null | undefined, value: boolean): void;
138
141
  setIsRetrieving(formID: string | null | undefined, value: boolean): void;
139
142
  setTableWidth(formID: string | null | undefined, value: number): void;
143
+ setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
140
144
  /**
141
145
  * 清空表格数据.
142
146
  * @param formID 界面标识.
@@ -1,6 +1,8 @@
1
1
  import { ColumnType } from 'ant-design-vue/es/table/interface';
2
2
  import { VarGridDetail } from '../../apis/WMS/models';
3
3
  export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
4
+ /** 行高. */
5
+ export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
4
6
  /** 表格的行对象. */
5
7
  export declare type IKgTableRow<T = {}> = {
6
8
  id?: string | null;
@@ -14,11 +14,25 @@ export declare type IKgStateOption = {
14
14
  /** 默认为 '/sys/index'. */
15
15
  [KG_APP.SYS]?: string;
16
16
  };
17
+ KgTable?: {
18
+ Setting?: {
19
+ rowHeight?: {
20
+ /**
21
+ * 是否启用功能.
22
+ * @default false
23
+ */
24
+ on?: boolean;
25
+ };
26
+ };
27
+ };
17
28
  /** 仓库选择. */
18
29
  KgWarehouse?: {
19
- /** 是否启用. */
30
+ /**
31
+ * 是否启用功能.
32
+ * @default true
33
+ */
20
34
  enable?: boolean;
21
- /** 默认的仓库编码, 只有在 IKgStateOption.KgWarehouse.enable 为 false 时才生效. */
35
+ /** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.enable} 为 false 时才生效. */
22
36
  defaultWarehouseID?: string;
23
37
  };
24
38
  };
@@ -53,6 +53,10 @@ declare const _default: {
53
53
  column: string;
54
54
  config: string;
55
55
  emptyText: string;
56
+ rowHeight: string;
57
+ rowHeightH: string;
58
+ rowHeightL: string;
59
+ rowHeightM: string;
56
60
  'save-var-grid-master-as-success-message': string;
57
61
  saveVarGridMaster: string;
58
62
  saveVarGridMasterAs: string;
@@ -53,6 +53,10 @@ declare const _default: {
53
53
  column: string;
54
54
  config: string;
55
55
  emptyText: string;
56
+ rowHeight: string;
57
+ rowHeightH: string;
58
+ rowHeightL: string;
59
+ rowHeightM: string;
56
60
  'save-var-grid-master-as-success-message': string;
57
61
  saveVarGridMaster: string;
58
62
  saveVarGridMasterAs: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.10.7",
3
+ "version": "0.10.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",