@kengic/vue 0.1.1-beta.0 → 0.1.1-beta.2

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.
Files changed (33) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +1491 -1069
  3. package/dist/src/apis/WMS/Controllers/VarCatController/Add.d.ts +16 -0
  4. package/dist/src/apis/WMS/Controllers/VarCatController/Delete.d.ts +18 -0
  5. package/dist/src/apis/WMS/Controllers/VarCatController/DeleteBatch.d.ts +18 -0
  6. package/dist/src/apis/WMS/Controllers/VarCatController/Edit.d.ts +16 -0
  7. package/dist/src/apis/WMS/Controllers/VarCatController/ExportXls.d.ts +30 -0
  8. package/dist/src/apis/WMS/Controllers/VarCatController/ImportExcel.d.ts +15 -0
  9. package/dist/src/apis/WMS/Controllers/VarCatController/List.d.ts +39 -0
  10. package/dist/src/apis/WMS/Controllers/VarCatController/QueryById.d.ts +19 -0
  11. package/dist/src/apis/WMS/Controllers/VarCatController/index.d.ts +8 -0
  12. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
  13. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
  14. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
  15. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
  16. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +26 -0
  17. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
  18. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +35 -0
  19. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
  20. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
  21. package/dist/src/apis/WMS/Controllers/index.d.ts +2 -0
  22. package/dist/src/apis/WMS/models.d.ts +16 -16
  23. package/dist/src/components/KgControl/KgControl.Input.d.ts +17 -8
  24. package/dist/src/components/KgControl/KgControl.Select.d.ts +17 -8
  25. package/dist/src/components/KgControl/KgControl.d.ts +17 -8
  26. package/dist/src/components/KgControl/index.d.ts +38 -19
  27. package/dist/src/components/KgControl/index.vm.d.ts +12 -4
  28. package/dist/src/components/KgVar/hooks/index.d.ts +2 -2
  29. package/dist/src/components/KgVar/store/index.d.ts +2 -2
  30. package/dist/src/components/KgVar/store/index.data.d.ts +2 -2
  31. package/dist/src/index.d.ts +2 -1
  32. package/package.json +1 -1
  33. package/kg.config.ts +0 -23
@@ -7,16 +7,21 @@ declare const _default: {
7
7
  $: import("vue").ComponentInternalInstance;
8
8
  $data: {};
9
9
  $props: Partial<{
10
- kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
11
- kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
10
+ kgGutter: number;
11
+ kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
12
+ kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
12
13
  kgActionType: import("axios").Method;
13
14
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
15
  kgVarName: {
15
16
  type: import("vue").PropType<string>;
16
17
  required: boolean;
17
18
  };
19
+ kgGutter: {
20
+ type: import("vue").PropType<number>;
21
+ default: number;
22
+ };
18
23
  kgSpan: {
19
- type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
24
+ type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
20
25
  default: number;
21
26
  };
22
27
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
@@ -25,8 +30,8 @@ declare const _default: {
25
30
  kgDescriptionColumn: import("vue").PropType<string>;
26
31
  kgAction: import("vue").PropType<string>;
27
32
  kgActionParameter: import("vue").PropType<string>;
28
- kgValidateInfos: {
29
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
33
+ kgValidateInfo: {
34
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
30
35
  default: () => {};
31
36
  };
32
37
  kgActionType: {
@@ -37,7 +42,7 @@ declare const _default: {
37
42
  'onUpdate:value': import("vue").PropType<(value: any) => void>;
38
43
  }>> & {
39
44
  onKgSubmit?: ((...args: any[]) => any) | undefined;
40
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgSpan" | "kgValidateInfos" | "kgActionType">;
45
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgGutter" | "kgSpan" | "kgValidateInfo" | "kgActionType">;
41
46
  $attrs: {
42
47
  [x: string]: unknown;
43
48
  };
@@ -56,8 +61,12 @@ declare const _default: {
56
61
  type: import("vue").PropType<string>;
57
62
  required: boolean;
58
63
  };
64
+ kgGutter: {
65
+ type: import("vue").PropType<number>;
66
+ default: number;
67
+ };
59
68
  kgSpan: {
60
- type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
69
+ type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
61
70
  default: number;
62
71
  };
63
72
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
@@ -66,8 +75,8 @@ declare const _default: {
66
75
  kgDescriptionColumn: import("vue").PropType<string>;
67
76
  kgAction: import("vue").PropType<string>;
68
77
  kgActionParameter: import("vue").PropType<string>;
69
- kgValidateInfos: {
70
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
78
+ kgValidateInfo: {
79
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
71
80
  default: () => {};
72
81
  };
73
82
  kgActionType: {
@@ -79,8 +88,9 @@ declare const _default: {
79
88
  }>> & {
80
89
  onKgSubmit?: ((...args: any[]) => any) | undefined;
81
90
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], string, {
82
- kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
83
- kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
91
+ kgGutter: number;
92
+ kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
93
+ kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
84
94
  kgActionType: import("axios").Method;
85
95
  }, {}, string> & {
86
96
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -107,8 +117,12 @@ declare const _default: {
107
117
  type: import("vue").PropType<string>;
108
118
  required: boolean;
109
119
  };
120
+ kgGutter: {
121
+ type: import("vue").PropType<number>;
122
+ default: number;
123
+ };
110
124
  kgSpan: {
111
- type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
125
+ type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
112
126
  default: number;
113
127
  };
114
128
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
@@ -117,8 +131,8 @@ declare const _default: {
117
131
  kgDescriptionColumn: import("vue").PropType<string>;
118
132
  kgAction: import("vue").PropType<string>;
119
133
  kgActionParameter: import("vue").PropType<string>;
120
- kgValidateInfos: {
121
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
134
+ kgValidateInfo: {
135
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
122
136
  default: () => {};
123
137
  };
124
138
  kgActionType: {
@@ -138,8 +152,12 @@ declare const _default: {
138
152
  type: import("vue").PropType<string>;
139
153
  required: boolean;
140
154
  };
155
+ kgGutter: {
156
+ type: import("vue").PropType<number>;
157
+ default: number;
158
+ };
141
159
  kgSpan: {
142
- type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
160
+ type: import("vue").PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
143
161
  default: number;
144
162
  };
145
163
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
@@ -148,8 +166,8 @@ declare const _default: {
148
166
  kgDescriptionColumn: import("vue").PropType<string>;
149
167
  kgAction: import("vue").PropType<string>;
150
168
  kgActionParameter: import("vue").PropType<string>;
151
- kgValidateInfos: {
152
- type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
169
+ kgValidateInfo: {
170
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
153
171
  default: () => {};
154
172
  };
155
173
  kgActionType: {
@@ -161,8 +179,9 @@ declare const _default: {
161
179
  }>> & {
162
180
  onKgSubmit?: ((...args: any[]) => any) | undefined;
163
181
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", {
164
- kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
165
- kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
182
+ kgGutter: number;
183
+ kgSpan: 1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
184
+ kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
166
185
  kgActionType: import("axios").Method;
167
186
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
168
187
  readonly Input: typeof KgControlInput;
@@ -1,19 +1,27 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { KG_CONTROL_TYPES_ENUM } from '../../consts';
3
3
  import { Method } from 'axios';
4
- import { validateInfos } from 'ant-design-vue/lib/form/useForm';
4
+ import { ValidateInfo } from 'ant-design-vue/lib/form/useForm';
5
5
  export declare const getProps: () => {
6
6
  /** 变量名称. */
7
7
  kgVarName: {
8
8
  type: PropType<string>;
9
9
  required: boolean;
10
10
  };
11
+ /**
12
+ * 控件间隔.
13
+ * @default 6
14
+ */
15
+ kgGutter: {
16
+ type: PropType<number>;
17
+ default: number;
18
+ };
11
19
  /**
12
20
  * 控件宽度.
13
21
  * @default 6
14
22
  */
15
23
  kgSpan: {
16
- type: PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
24
+ type: PropType<1 | 2 | 6 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
17
25
  default: number;
18
26
  };
19
27
  /**
@@ -37,8 +45,8 @@ export declare const getProps: () => {
37
45
  /** 接口参数. */
38
46
  kgActionParameter: PropType<string>;
39
47
  /** 表单验证信息. */
40
- kgValidateInfos: {
41
- type: PropType<validateInfos>;
48
+ kgValidateInfo: {
49
+ type: PropType<ValidateInfo>;
42
50
  default: () => {};
43
51
  };
44
52
  /**
@@ -7,7 +7,7 @@ export declare function useKgVar(formID: string): {
7
7
  /** 变量配置数据. */
8
8
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
9
9
  getTopFormID(): string | null;
10
- getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
10
+ getVarCats(): Map<string, import("../../..").VarCat[]>;
11
11
  }, {
12
12
  leave(formID: string): void;
13
13
  deleteAll(formID: string): void;
@@ -28,7 +28,7 @@ export declare function useKgVar(formID: string): {
28
28
  /** 变量配置数据. */
29
29
  kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
30
30
  getTopFormID(): string | null;
31
- getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
31
+ getVarCats(): Map<string, import("../../..").VarCat[]>;
32
32
  }, {
33
33
  leave(formID: string): void;
34
34
  deleteAll(formID: string): void;
@@ -1,9 +1,9 @@
1
1
  import { type StoreDefinition } from 'pinia';
2
2
  import { KgVarState } from './index.data';
3
- import { VarCatalog } from '../../../apis/WMS/models';
3
+ import { VarCat } from '../../../apis/WMS/models';
4
4
  declare type IKgVarStore = StoreDefinition<'KgVar', KgVarState, {
5
5
  getTopFormID(): string | null;
6
- getVarCatalogs(): Map<string, Array<VarCatalog>>;
6
+ getVarCats(): Map<string, Array<VarCat>>;
7
7
  }, {
8
8
  leave(formID: string): void;
9
9
  deleteAll(formID: string): void;
@@ -1,9 +1,9 @@
1
- import { VarCatalog } from '../../../apis/WMS/models';
1
+ import { VarCat } from '../../../apis/WMS/models';
2
2
  export interface KgVarState {
3
3
  /**
4
4
  * 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
5
5
  */
6
6
  formIDs: Array<string>;
7
7
  /** 变量别名. */
8
- varCatalogs: Map<string, Array<VarCatalog>>;
8
+ varCats: Map<string, Array<VarCat>>;
9
9
  }
@@ -1,5 +1,6 @@
1
1
  import './assets/index.less';
2
- export { DEF, API as KG_API } from './apis';
2
+ export { API as KG_API } from './apis';
3
+ export * from './apis/WMS/models';
3
4
  export * from './components';
4
5
  export * from './consts';
5
6
  export * from './services';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.1.1-beta.0",
3
+ "version": "0.1.1-beta.2",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
package/kg.config.ts DELETED
@@ -1,23 +0,0 @@
1
- import { IPontConfig } from '@kengic/pont';
2
-
3
- const config: IPontConfig = {
4
- pont: {
5
- origins: [
6
- {
7
- name: 'WMS',
8
- originUrl: 'http://localhost:8080/kengic-boot/v2/api-docs',
9
- originType: 'SwaggerV2',
10
- responseClassName: 'Result',
11
- includeControllers: {
12
- VarController: ['GetAll'],
13
- },
14
- includeClasses: ['IPage', 'VarCatalog', 'VarContext', 'VarDTO'],
15
- },
16
- ],
17
- publicPath: '/kengic-boot',
18
- httpClientPath: "'../../../../services'",
19
- outDir: './src/apis',
20
- },
21
- };
22
-
23
- export { config };