@kengic/vue 0.30.1-beta.71 → 0.30.1-beta.72
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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +14543 -14477
- package/dist/src/component/KgVar/KgVar.Factory.d.ts +37 -1
- package/dist/src/component/KgVar/KgVar.d.ts +1 -2
- package/dist/src/component/KgVar/KgVar.event.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +3 -3
- package/dist/src/service/http-client.d.ts +1 -1
- package/dist/src/util/kg.util.d.ts +6 -2
- package/package.json +21 -20
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 工厂方法,
|
|
2
|
+
* 工厂方法, 用于构造 KgVar 组件.
|
|
3
3
|
*
|
|
4
4
|
* @param param
|
|
5
|
+
* @param param.formID 界面标识.
|
|
6
|
+
* @param param.level 界面层级.
|
|
5
7
|
*/
|
|
6
8
|
export declare function KgVarFactory(param?: {
|
|
9
|
+
fid?: string | null | undefined;
|
|
10
|
+
/** @deprecated 已废弃, 请使用 fid */
|
|
7
11
|
formID?: string | null | undefined;
|
|
12
|
+
level?: number | null | undefined;
|
|
8
13
|
}): import("vue").DefineComponent<{
|
|
9
14
|
id: import("vue").PropType<string>;
|
|
10
15
|
kgBackgroundGray: {
|
|
@@ -38,6 +43,37 @@ export declare function KgVarFactory(param?: {
|
|
|
38
43
|
/**
|
|
39
44
|
* 默认的 KgVar 组件.
|
|
40
45
|
*/
|
|
46
|
+
export declare const KgVar02: import("vue").DefineComponent<{
|
|
47
|
+
id: import("vue").PropType<string>;
|
|
48
|
+
kgBackgroundGray: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
kgFormID: import("vue").PropType<string>;
|
|
53
|
+
kgLevel: {
|
|
54
|
+
type: import("vue").PropType<number>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
58
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
59
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
id: import("vue").PropType<string>;
|
|
61
|
+
kgBackgroundGray: {
|
|
62
|
+
type: import("vue").PropType<boolean>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
kgFormID: import("vue").PropType<string>;
|
|
66
|
+
kgLevel: {
|
|
67
|
+
type: import("vue").PropType<number>;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
71
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
72
|
+
}>>, {
|
|
73
|
+
kgBackgroundGray: boolean;
|
|
74
|
+
kgLevel: number;
|
|
75
|
+
}>;
|
|
76
|
+
/** @deprecated 已废弃, 请使用 KgVar02 */
|
|
41
77
|
export declare const KgVar2: import("vue").DefineComponent<{
|
|
42
78
|
id: import("vue").PropType<string>;
|
|
43
79
|
kgBackgroundGray: {
|
|
@@ -38,9 +38,8 @@ export declare function getProps(): {
|
|
|
38
38
|
*/
|
|
39
39
|
kgSlots: PropType<IKgSlots>;
|
|
40
40
|
};
|
|
41
|
+
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
41
42
|
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
-
/** @deprecated 已弃用, 请使用 {@link KgVarProps} */
|
|
43
|
-
export declare type IKgVarProps = KgVarProps;
|
|
44
43
|
declare const _default: import("vue").DefineComponent<{
|
|
45
44
|
/**
|
|
46
45
|
* 界面标识.
|
|
@@ -49,6 +49,8 @@ export declare type IUseKgVar = {
|
|
|
49
49
|
/**
|
|
50
50
|
* 界面标识.
|
|
51
51
|
*/
|
|
52
|
+
fid: string;
|
|
53
|
+
/** @deprecated 已废弃, 请使用 {@link IUseKgVar.fid} */
|
|
52
54
|
formID: string;
|
|
53
55
|
/**
|
|
54
56
|
* <p>获取「变量配置:表单控件」, 根据所传参数进行过滤.</p>
|
|
@@ -95,9 +97,7 @@ export declare type IUseKgVar = {
|
|
|
95
97
|
getVarGridDetail(param: {
|
|
96
98
|
varName: string | null | undefined;
|
|
97
99
|
}): VarGridDetail | null;
|
|
98
|
-
/**
|
|
99
|
-
* 界面标识.
|
|
100
|
-
*/
|
|
100
|
+
/** @deprecated 已废弃, 请使用 {@link IUseKgVar.fid} */
|
|
101
101
|
id: string;
|
|
102
102
|
/**
|
|
103
103
|
* 是否正在复制.
|
|
@@ -40,7 +40,7 @@ interface IRequestOption {
|
|
|
40
40
|
/**
|
|
41
41
|
* <p>高级查询时, 各个请求参数的高级查询操作符.</p>
|
|
42
42
|
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
|
43
|
-
* <p>其中的 key 表示参数名,
|
|
43
|
+
* <p>其中的 key 表示参数名, 其中的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
|
44
44
|
*/
|
|
45
45
|
dynamicQueryOperatorModel?: Record<string, string>;
|
|
46
46
|
/**
|
|
@@ -100,9 +100,13 @@ export declare class KgUtil {
|
|
|
100
100
|
* @param value 值.
|
|
101
101
|
*/
|
|
102
102
|
static toDayjs(value: any): Dayjs | undefined;
|
|
103
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* 显示全局遮罩.
|
|
105
|
+
*/
|
|
104
106
|
static showLoading(): void;
|
|
105
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* 隐藏全局遮罩.
|
|
109
|
+
*/
|
|
106
110
|
static hideLoading(): void;
|
|
107
111
|
/**
|
|
108
112
|
* <p>使用 lodash 的 snakeCase() 将字符串转换为 snake_case 的命名方式, 并且去掉数字前面的下划线.</p>
|
package/package.json
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.30.1-beta.
|
|
3
|
+
"version": "0.30.1-beta.72",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
|
6
|
-
"build
|
|
6
|
+
"build--development": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
|
7
7
|
"--------------------------------------------------": "",
|
|
8
|
-
"gen
|
|
8
|
+
"gen-apis--WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
|
9
9
|
"- ------------------------------------------------": "",
|
|
10
10
|
"use-node": "nvm use 20.17.0 && corepack enable && corepack use pnpm@9.12.1",
|
|
11
|
-
"cnpm
|
|
11
|
+
"cnpm--sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
|
|
12
12
|
"-- -----------------------------------------------": "",
|
|
13
|
-
"
|
|
14
|
-
"bump-to
|
|
15
|
-
"copy-to
|
|
16
|
-
"
|
|
17
|
-
"copy-to
|
|
18
|
-
"copy-to
|
|
19
|
-
"copy-to
|
|
13
|
+
"bump-to--luotao--smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to--luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
|
14
|
+
"bump-to--luotao--smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && tsx script/bump-to--luotao--smartfactory.product.wms.wms--project-kengic-factory.ts",
|
|
15
|
+
"copy-to--luotao--smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--dev-3.2.ts",
|
|
16
|
+
"copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory.ts",
|
|
17
|
+
"copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-test": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-test.ts",
|
|
18
|
+
"copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-integration": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-integration.ts",
|
|
19
|
+
"copy-to--luotao--smartfactory.product.simulator--main": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.product.simulator--main.ts",
|
|
20
|
+
"copy-to--luotao--smartfactory.tyre.haohua.basic.was-java--PcrTireWeb": "npm run use-node && npm run build--development && tsx script/copy-to--luotao--smartfactory.tyre.haohua.basic.was-java--PcrTireWeb.ts",
|
|
20
21
|
"----- --------------------------------------------": "更新组件库的版本",
|
|
21
|
-
"bump
|
|
22
|
-
"bump
|
|
23
|
-
"bump
|
|
24
|
-
"bump
|
|
22
|
+
"bump--major": "npm run use-node && tsx script/bump.ts major",
|
|
23
|
+
"bump--minor": "npm run use-node && tsx script/bump.ts minor",
|
|
24
|
+
"bump--patch": "npm run use-node && tsx script/bump.ts patch",
|
|
25
|
+
"bump--beta": "npm run use-node && tsx script/bump.ts beta",
|
|
25
26
|
"---- ---------------------------------------------": "发布到 npmjs 仓库",
|
|
26
|
-
"publish
|
|
27
|
-
"publish
|
|
28
|
-
"publish
|
|
29
|
-
"publish
|
|
30
|
-
"publish
|
|
27
|
+
"publish--npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
|
|
28
|
+
"publish--major": "npm run bump--major && tsx script/publish.ts",
|
|
29
|
+
"publish--minor": "npm run bump--minor && tsx script/publish.ts",
|
|
30
|
+
"publish--patch": "npm run bump--patch && tsx script/publish.ts",
|
|
31
|
+
"publish--beta": "npm run bump--beta && tsx script/publish.ts"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"vue": "^3.2.43"
|