@kengic/vue 0.0.2-beta.8 → 0.1.0
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 +2708 -0
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +21 -0
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +62 -0
- package/dist/src/apis/api.d.ts +1 -0
- package/dist/src/apis/def.d.ts +1 -0
- package/dist/src/apis/index.d.ts +2 -0
- package/dist/src/components/KgButton/KgButton.Create.d.ts +10 -0
- package/dist/src/components/KgButton/KgButton.Delete.d.ts +11 -0
- package/dist/src/components/KgButton/KgButton.Update.d.ts +10 -0
- package/dist/src/components/KgButton/KgButton.d.ts +13 -0
- package/dist/src/components/KgButton/index.d.ts +4 -0
- package/dist/src/components/KgButton/index.vm.d.ts +9 -0
- package/dist/src/components/KgControl/KgControl.Input.d.ts +60 -0
- package/dist/src/components/KgControl/KgControl.Select.d.ts +57 -0
- package/dist/src/components/KgControl/KgControl.d.ts +60 -0
- package/dist/src/components/KgControl/index.d.ts +171 -0
- package/dist/src/components/KgControl/index.vm.d.ts +55 -0
- package/dist/src/components/KgPage/KgPage.d.ts +3 -0
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +58 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +16 -0
- package/dist/src/components/KgSearch/index.d.ts +4 -0
- package/dist/src/components/KgSearch/index.vm.d.ts +9 -0
- package/dist/src/components/KgVar/hooks/index.d.ts +48 -0
- package/dist/src/components/KgVar/index.d.ts +2 -0
- package/dist/src/components/KgVar/store/index.d.ts +14 -0
- package/dist/src/components/KgVar/store/index.data.d.ts +9 -0
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +24 -0
- package/dist/src/components/index.d.ts +8 -3
- package/dist/src/consts/i18n/en.d.ts +26 -0
- package/dist/src/consts/i18n/index.d.ts +53 -0
- package/dist/src/consts/i18n/t.d.ts +20 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +26 -0
- package/dist/src/consts/index.d.ts +65 -0
- package/dist/src/consts/injection-keys.const.d.ts +8 -0
- package/dist/src/index.d.ts +3 -7
- package/dist/src/services/http-client.d.ts +32 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/utils/app.util.d.ts +17 -0
- package/dist/src/utils/index.d.ts +4 -2
- package/dist/src/utils/kg.util.d.ts +38 -0
- package/dist/src/utils/logger.util.d.ts +40 -0
- package/dist/src/utils/route.util.d.ts +6 -0
- package/dist/src/utils/var.util.d.ts +11 -0
- package/kg.config.ts +23 -0
- package/package.json +24 -12
- package/.nvmrc +0 -1
- package/dist/index.js +0 -55
- package/dist/src/components/B.d.ts +0 -8
- package/dist/src/components/ComponentA.vue.d.ts +0 -6
- package/dist/src/constants/MyConstants.d.ts +0 -1
- package/dist/src/constants/index.d.ts +0 -2
- package/dist/src/utils/MyUtil.d.ts +0 -5
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
|
+
import * as DEF from '../../../def';
|
|
3
|
+
/** 请求参数. */
|
|
4
|
+
export declare class GetAllQuery {
|
|
5
|
+
/** 界面标识. */
|
|
6
|
+
frmId?: string | null;
|
|
7
|
+
/** 语言. */
|
|
8
|
+
localeId?: string | null;
|
|
9
|
+
constructor(obj?: GetAllQuery);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 查询所有变量配置.
|
|
13
|
+
*
|
|
14
|
+
* @param config 请求配置.
|
|
15
|
+
* @param option 请求选项.
|
|
16
|
+
*/
|
|
17
|
+
export declare function GetAll(config?: IRequestConfig<GetAllQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.VarDTO>;
|
|
18
|
+
export declare namespace GetAll {
|
|
19
|
+
var method: "GET";
|
|
20
|
+
var url: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetAll, GetAllQuery } from './GetAll';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as VarController from './VarController';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare class IPage<T0> {
|
|
2
|
+
/** Current. */
|
|
3
|
+
current?: number | null;
|
|
4
|
+
/** Pages. */
|
|
5
|
+
pages?: number | null;
|
|
6
|
+
/** Records. */
|
|
7
|
+
records?: Array<T0> | null;
|
|
8
|
+
/** Size. */
|
|
9
|
+
size?: number | null;
|
|
10
|
+
/** Total. */
|
|
11
|
+
total?: number | null;
|
|
12
|
+
constructor(obj?: IPage<T0>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 变量别名
|
|
16
|
+
*/
|
|
17
|
+
export declare class VarCatalog {
|
|
18
|
+
/** 定制级别. */
|
|
19
|
+
custLvl?: string | null;
|
|
20
|
+
/** 界面标识. */
|
|
21
|
+
frmId?: string | null;
|
|
22
|
+
/** 分组. */
|
|
23
|
+
grpNam?: string | null;
|
|
24
|
+
/** 主键. */
|
|
25
|
+
id?: string | null;
|
|
26
|
+
/** 语言. */
|
|
27
|
+
localeId?: string | null;
|
|
28
|
+
/** 变量名称. */
|
|
29
|
+
varNam?: string | null;
|
|
30
|
+
/** 显示文本. */
|
|
31
|
+
varText?: string | null;
|
|
32
|
+
constructor(obj?: VarCatalog);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 变量
|
|
36
|
+
*/
|
|
37
|
+
export declare class VarContext {
|
|
38
|
+
/** 界面标识. */
|
|
39
|
+
frmId?: string | null;
|
|
40
|
+
/** 界面名称. */
|
|
41
|
+
frmNam?: string | null;
|
|
42
|
+
/** 分组. */
|
|
43
|
+
grpNam?: string | null;
|
|
44
|
+
/** 主键. */
|
|
45
|
+
id?: string | null;
|
|
46
|
+
/** 变量名称. */
|
|
47
|
+
varNam?: string | null;
|
|
48
|
+
constructor(obj?: VarContext);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 变量配置.
|
|
52
|
+
*/
|
|
53
|
+
export declare class VarDTO {
|
|
54
|
+
/** 变量别名. */
|
|
55
|
+
varCatalogs?: Array<VarCatalog> | null;
|
|
56
|
+
constructor(obj?: VarDTO);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 获取对象的属性名数组.
|
|
60
|
+
* @param obj 对象.
|
|
61
|
+
*/
|
|
62
|
+
export declare function keys<C extends object>(obj: C): Array<keyof C>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WMSAPI as WMS } from './WMS';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WMSDEF as WMS } from './WMS';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
3
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
4
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
6
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
7
|
+
}>> & {
|
|
8
|
+
onKgClick?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './KgButton.Delete.less';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
4
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
5
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgDeleteOk"[], "kgDeleteOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
7
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
8
|
+
}>> & {
|
|
9
|
+
onKgDeleteOk?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
3
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
4
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
|
|
6
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
7
|
+
}>> & {
|
|
8
|
+
onKgClick?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './KgButton.less';
|
|
2
|
+
import { KG_BUTTON_TYPES_ENUM } from '../../consts';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPES_ENUM>;
|
|
5
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgDeleteOk" | "kgClick")[], "kgDeleteOk" | "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPES_ENUM>;
|
|
8
|
+
kgDisabled: import("vue").PropType<boolean>;
|
|
9
|
+
}>> & {
|
|
10
|
+
onKgDeleteOk?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
onKgClick?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { KG_BUTTON_TYPES_ENUM } from '../../consts';
|
|
3
|
+
export declare const getProps: () => {
|
|
4
|
+
/** 按钮类型. */
|
|
5
|
+
kgType: PropType<KG_BUTTON_TYPES_ENUM>;
|
|
6
|
+
/** 是否禁用. */
|
|
7
|
+
kgDisabled: PropType<boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare type KgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import './KgControl.less';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
kgVarName: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
kgSpan: {
|
|
8
|
+
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>;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
12
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
13
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
14
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
15
|
+
kgAction: import("vue").PropType<string>;
|
|
16
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
17
|
+
kgValidateInfos: {
|
|
18
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
kgActionType: {
|
|
22
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
26
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit")[], "update:value" | "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
kgVarName: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
kgSpan: {
|
|
33
|
+
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>;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
37
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
38
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
39
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
40
|
+
kgAction: import("vue").PropType<string>;
|
|
41
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
42
|
+
kgValidateInfos: {
|
|
43
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
kgActionType: {
|
|
47
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
51
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
52
|
+
}>> & {
|
|
53
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
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;
|
|
57
|
+
kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
|
|
58
|
+
kgActionType: import("axios").Method;
|
|
59
|
+
}>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import './KgControl.less';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
kgVarName: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
kgSpan: {
|
|
8
|
+
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>;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
12
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
13
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
14
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
15
|
+
kgAction: import("vue").PropType<string>;
|
|
16
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
17
|
+
kgValidateInfos: {
|
|
18
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
kgActionType: {
|
|
22
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
26
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
kgVarName: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
kgSpan: {
|
|
33
|
+
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>;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
37
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
38
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
39
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
40
|
+
kgAction: import("vue").PropType<string>;
|
|
41
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
42
|
+
kgValidateInfos: {
|
|
43
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
kgActionType: {
|
|
47
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
51
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
52
|
+
}>>, {
|
|
53
|
+
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;
|
|
54
|
+
kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
|
|
55
|
+
kgActionType: import("axios").Method;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import './KgControl.less';
|
|
2
|
+
import { KG_CONTROL_TYPES_ENUM } from '../../consts';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
kgVarName: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
kgSpan: {
|
|
9
|
+
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>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
13
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
14
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
15
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
16
|
+
kgAction: import("vue").PropType<string>;
|
|
17
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
18
|
+
kgValidateInfos: {
|
|
19
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
kgActionType: {
|
|
23
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
27
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
kgVarName: {
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
kgSpan: {
|
|
34
|
+
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>;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
38
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
39
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
40
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
41
|
+
kgAction: import("vue").PropType<string>;
|
|
42
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
43
|
+
kgValidateInfos: {
|
|
44
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
kgActionType: {
|
|
48
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
52
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
53
|
+
}>> & {
|
|
54
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
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;
|
|
57
|
+
kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
|
|
58
|
+
kgActionType: import("axios").Method;
|
|
59
|
+
}>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import KgControlSelect from './KgControl.Select';
|
|
2
|
+
import KgControlInput from './KgControl.Input';
|
|
3
|
+
import { type KgControlProps } from './index.vm';
|
|
4
|
+
export { KgControlSelect, KgControlInput, type KgControlProps };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
new (...args: any[]): {
|
|
7
|
+
$: import("vue").ComponentInternalInstance;
|
|
8
|
+
$data: {};
|
|
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;
|
|
12
|
+
kgActionType: import("axios").Method;
|
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
kgVarName: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
required: boolean;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
23
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
24
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
25
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
26
|
+
kgAction: import("vue").PropType<string>;
|
|
27
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
28
|
+
kgValidateInfos: {
|
|
29
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
kgActionType: {
|
|
33
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
37
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
38
|
+
}>> & {
|
|
39
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgSpan" | "kgValidateInfos" | "kgActionType">;
|
|
41
|
+
$attrs: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
$refs: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
$slots: Readonly<{
|
|
48
|
+
[name: string]: import("vue").Slot | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
51
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
52
|
+
$emit: (event: "kgSubmit", ...args: any[]) => void;
|
|
53
|
+
$el: any;
|
|
54
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
kgVarName: {
|
|
56
|
+
type: import("vue").PropType<string>;
|
|
57
|
+
required: boolean;
|
|
58
|
+
};
|
|
59
|
+
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>;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
64
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
65
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
66
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
67
|
+
kgAction: import("vue").PropType<string>;
|
|
68
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
69
|
+
kgValidateInfos: {
|
|
70
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
71
|
+
default: () => {};
|
|
72
|
+
};
|
|
73
|
+
kgActionType: {
|
|
74
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
78
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
79
|
+
}>> & {
|
|
80
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, () => 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;
|
|
84
|
+
kgActionType: import("axios").Method;
|
|
85
|
+
}, {}, string> & {
|
|
86
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
99
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
100
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
101
|
+
};
|
|
102
|
+
$forceUpdate: () => void;
|
|
103
|
+
$nextTick: typeof import("vue").nextTick;
|
|
104
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
105
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
kgVarName: {
|
|
107
|
+
type: import("vue").PropType<string>;
|
|
108
|
+
required: boolean;
|
|
109
|
+
};
|
|
110
|
+
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>;
|
|
112
|
+
default: number;
|
|
113
|
+
};
|
|
114
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
115
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
116
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
117
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
118
|
+
kgAction: import("vue").PropType<string>;
|
|
119
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
120
|
+
kgValidateInfos: {
|
|
121
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
122
|
+
default: () => {};
|
|
123
|
+
};
|
|
124
|
+
kgActionType: {
|
|
125
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
129
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
130
|
+
}>> & {
|
|
131
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
|
133
|
+
__isFragment?: undefined;
|
|
134
|
+
__isTeleport?: undefined;
|
|
135
|
+
__isSuspense?: undefined;
|
|
136
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
137
|
+
kgVarName: {
|
|
138
|
+
type: import("vue").PropType<string>;
|
|
139
|
+
required: boolean;
|
|
140
|
+
};
|
|
141
|
+
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>;
|
|
143
|
+
default: number;
|
|
144
|
+
};
|
|
145
|
+
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
146
|
+
kgPlaceholder: import("vue").PropType<string>;
|
|
147
|
+
kgCodeColumn: import("vue").PropType<string>;
|
|
148
|
+
kgDescriptionColumn: import("vue").PropType<string>;
|
|
149
|
+
kgAction: import("vue").PropType<string>;
|
|
150
|
+
kgActionParameter: import("vue").PropType<string>;
|
|
151
|
+
kgValidateInfos: {
|
|
152
|
+
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
|
|
153
|
+
default: () => {};
|
|
154
|
+
};
|
|
155
|
+
kgActionType: {
|
|
156
|
+
type: import("vue").PropType<import("axios").Method>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
value: import("vue").PropType<string | number | (string | number)[]>;
|
|
160
|
+
'onUpdate:value': import("vue").PropType<(value: any) => void>;
|
|
161
|
+
}>> & {
|
|
162
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
}, () => 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;
|
|
166
|
+
kgActionType: import("axios").Method;
|
|
167
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
168
|
+
readonly Input: typeof KgControlInput;
|
|
169
|
+
readonly Select: typeof KgControlSelect;
|
|
170
|
+
};
|
|
171
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { KG_CONTROL_TYPES_ENUM } from '../../consts';
|
|
3
|
+
import { Method } from 'axios';
|
|
4
|
+
import { validateInfos } from 'ant-design-vue/lib/form/useForm';
|
|
5
|
+
export declare const getProps: () => {
|
|
6
|
+
/** 变量名称. */
|
|
7
|
+
kgVarName: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 控件宽度.
|
|
13
|
+
* @default 6
|
|
14
|
+
*/
|
|
15
|
+
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>;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 控件类型.
|
|
21
|
+
* @default {@link KG_CONTROL_TYPES_ENUM.INPUT_BASIC}
|
|
22
|
+
*/
|
|
23
|
+
kgType: PropType<KG_CONTROL_TYPES_ENUM>;
|
|
24
|
+
kgPlaceholder: PropType<string>;
|
|
25
|
+
/**
|
|
26
|
+
* 数据列.
|
|
27
|
+
* {@link KG_CONTROL_TYPES_ENUM.SELECT_BASIC} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
|
|
28
|
+
*/
|
|
29
|
+
kgCodeColumn: PropType<string>;
|
|
30
|
+
/**
|
|
31
|
+
* 显示列.
|
|
32
|
+
* {@link KG_CONTROL_TYPES_ENUM.SELECT_BASIC} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
|
|
33
|
+
*/
|
|
34
|
+
kgDescriptionColumn: PropType<string>;
|
|
35
|
+
/** 接口地址. */
|
|
36
|
+
kgAction: PropType<string>;
|
|
37
|
+
/** 接口参数. */
|
|
38
|
+
kgActionParameter: PropType<string>;
|
|
39
|
+
/** 表单验证信息. */
|
|
40
|
+
kgValidateInfos: {
|
|
41
|
+
type: PropType<validateInfos>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 接口方法.
|
|
46
|
+
* @default GET
|
|
47
|
+
*/
|
|
48
|
+
kgActionType: {
|
|
49
|
+
type: PropType<Method>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
value: PropType<string | number | (string | number)[]>;
|
|
53
|
+
'onUpdate:value': PropType<(value: any) => void>;
|
|
54
|
+
};
|
|
55
|
+
export declare type KgControlProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './KgPage.less';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import './KgProgressA.less';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* 左侧数值(分子).
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
kgLeft: {
|
|
9
|
+
type: PropType<number | null | undefined>;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 右侧数值(分母).
|
|
14
|
+
* @default null
|
|
15
|
+
*/
|
|
16
|
+
kgRight: {
|
|
17
|
+
type: PropType<number | null | undefined>;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 右侧文本的宽度.
|
|
22
|
+
* @default 'auto'
|
|
23
|
+
*/
|
|
24
|
+
kgTextWidth: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
/**
|
|
30
|
+
* 左侧数值(分子).
|
|
31
|
+
* @default null
|
|
32
|
+
*/
|
|
33
|
+
kgLeft: {
|
|
34
|
+
type: PropType<number | null | undefined>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 右侧数值(分母).
|
|
39
|
+
* @default null
|
|
40
|
+
*/
|
|
41
|
+
kgRight: {
|
|
42
|
+
type: PropType<number | null | undefined>;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 右侧文本的宽度.
|
|
47
|
+
* @default 'auto'
|
|
48
|
+
*/
|
|
49
|
+
kgTextWidth: {
|
|
50
|
+
type: PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
kgLeft: number | null | undefined;
|
|
55
|
+
kgRight: number | null | undefined;
|
|
56
|
+
kgTextWidth: string;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|