@kengic/vue 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,21 @@
1
- import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
1
+ import { VarButton, VarButtonConfig, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitField } from '../../apis/WMS/models';
2
2
  export declare function transformVarProfileConfig(varProfileConfig?: VarProfileConfig | null): VarProfileConfig | null;
3
3
  export declare function transformVarGridConfig(varGridConfig?: VarGridConfig | null): VarGridConfig | null;
4
4
  export declare function transformVarGridMasterDTOs(varGridMasterDTOs?: Array<VarGridMasterDTO> | null): Array<VarGridMasterDTO>;
5
+ export declare function transformVarProfileMasterDTOs(varProfileMasterDTOs?: Array<VarProfileMasterDTO> | null): Array<VarProfileMasterDTO>;
5
6
  export declare function transformVarSubmitConfig(varSubmitConfig?: VarSubmitConfig | null): VarSubmitConfig | null;
6
7
  export declare function transformVarSubmitFields(varSubmitFields?: Array<VarSubmitField> | null): Array<VarSubmitField>;
7
8
  export declare function transformVarButtons(varButtons?: Array<VarButton> | null): Array<VarButton>;
8
9
  export declare function transformVarButtonConfig(varButtonConfig?: VarButtonConfig | null): VarButtonConfig | null;
9
10
  /**
10
- * 处理 VarGridDetail 数据, 排序/防呆.
11
+ * 处理 VarGridDetail 数据.
11
12
  *
12
13
  * @param varGridDetails 原始数据.
13
14
  */
14
15
  export declare function transformVarGridDetails(varGridDetails?: Array<VarGridDetail> | null): Array<VarGridDetail>;
16
+ /**
17
+ * 处理 VarProfileDetail 数据.
18
+ *
19
+ * @param varProfileDetails 原始数据.
20
+ */
21
+ export declare function transformVarProfileDetails(varProfileDetails?: Array<VarProfileDetail> | null): Array<VarProfileDetail>;
@@ -14,6 +14,16 @@ export declare type IKgStateOption = {
14
14
  /** 默认为 '/sys/index'. */
15
15
  [KG_APP.SYS]?: string;
16
16
  };
17
+ KgSearch?: {
18
+ /** 高级查询. */
19
+ dynamicQuery?: {
20
+ /**
21
+ * 是否启用功能.
22
+ * @default false
23
+ */
24
+ on?: boolean;
25
+ };
26
+ };
17
27
  KgTable?: {
18
28
  /** 列的过滤. */
19
29
  filter?: {
@@ -41,8 +51,8 @@ export declare type IKgStateOption = {
41
51
  * 是否启用功能.
42
52
  * @default true
43
53
  */
44
- enable?: boolean;
45
- /** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.enable} 为 false 时才生效. */
54
+ on?: boolean;
55
+ /** 默认的仓库编码, 只有在 {@link IKgStateOption.KgWarehouse.on} 为 false 时才生效. */
46
56
  defaultWarehouseID?: string;
47
57
  };
48
58
  };
@@ -14,7 +14,6 @@ export declare function setPinia(pinia: Pinia): void;
14
14
  export declare function pinia(): Pinia | null;
15
15
  export declare type IKgOptions = {
16
16
  app: App;
17
- pinia: Pinia;
18
17
  /** 当前语言. */
19
18
  locale: ComputedRef<IKgLocale>;
20
19
  /**
@@ -30,6 +29,11 @@ export declare type IKgOptions = {
30
29
  /** 配置参数. */
31
30
  option?: IKgStateOption;
32
31
  };
32
+ /**
33
+ * 初始化 pinia.
34
+ * @param pinia pinia.
35
+ */
36
+ export declare function setupKgStore(pinia: Pinia): void;
33
37
  /**
34
38
  * 初始化组件库.
35
39
  * @param options 参数.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",