@kengic/vue 0.1.1-beta.5 → 0.1.1-beta.7
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 +1059 -1005
- package/dist/src/components/KgControl/KgControl.d.ts +2 -2
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +17 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +2 -8
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -4
- package/dist/src/components/KgVar/hooks/index.d.ts +2 -20
- package/dist/src/consts/i18n/en.d.ts +1 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
- package/dist/src/consts/injection-keys.const.d.ts +2 -0
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
17
17
|
kgPlaceholder: {
|
|
18
|
-
type: import("vue").PropType<string>;
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
kgCodeColumn: {
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
};
|
|
60
60
|
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
61
61
|
kgPlaceholder: {
|
|
62
|
-
type: import("vue").PropType<string>;
|
|
62
|
+
type: import("vue").PropType<string>;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
kgCodeColumn: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import './KgControl.Addon.Lookup.Modal.less';
|
|
3
|
+
export declare const getProps: () => {
|
|
4
|
+
visible: PropType<boolean>;
|
|
5
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
6
|
+
};
|
|
7
|
+
export declare type KgControlAddonLookupModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
visible: PropType<boolean>;
|
|
10
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
12
|
+
visible: PropType<boolean>;
|
|
13
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
14
|
+
}>> & {
|
|
15
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import './KgSearch.less';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
kgModel:
|
|
4
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
5
|
-
required: boolean;
|
|
6
|
-
};
|
|
3
|
+
kgModel: import("vue").PropType<Record<string, any>>;
|
|
7
4
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSearch" | "kgReset")[], "kgSearch" | "kgReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
kgModel:
|
|
9
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
5
|
+
kgModel: import("vue").PropType<Record<string, any>>;
|
|
12
6
|
}>> & {
|
|
13
7
|
onKgSearch?: ((...args: any[]) => any) | undefined;
|
|
14
8
|
onKgReset?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export declare const getProps: () => {
|
|
3
3
|
/** 表单对象. */
|
|
4
|
-
kgModel:
|
|
5
|
-
type: PropType<Record<string, any>>;
|
|
6
|
-
required: boolean;
|
|
7
|
-
};
|
|
4
|
+
kgModel: PropType<Record<string, any>>;
|
|
8
5
|
};
|
|
9
6
|
export declare type KgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
/**
|
|
3
3
|
* 启用变量.
|
|
4
|
-
* @param formID 界面标识.
|
|
4
|
+
* @param formID 界面标识. 在下级组件中调用时, 可以不传该参数.
|
|
5
5
|
*/
|
|
6
|
-
export declare function useKgVar(formID
|
|
7
|
-
/** 变量配置数据. */
|
|
6
|
+
export declare function useKgVar(formID?: string): {
|
|
8
7
|
kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
|
|
9
8
|
getTopFormID(): string | null;
|
|
10
9
|
getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
|
|
@@ -16,18 +15,9 @@ export declare function useKgVar(formID: string): {
|
|
|
16
15
|
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
17
16
|
enter(formID: string): Promise<void>;
|
|
18
17
|
}>;
|
|
19
|
-
/**
|
|
20
|
-
* 翻译变量. 响应式的.
|
|
21
|
-
* @param varName 变量名称.
|
|
22
|
-
*/
|
|
23
18
|
t1: (varName?: string | null) => ComputedRef<string>;
|
|
24
|
-
/**
|
|
25
|
-
* 翻译变量. 不是响应式的.
|
|
26
|
-
* @param varName 变量名称.
|
|
27
|
-
*/
|
|
28
19
|
t2: (varName?: string | null) => string;
|
|
29
20
|
} | {
|
|
30
|
-
/** 变量配置数据. */
|
|
31
21
|
kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
|
|
32
22
|
getTopFormID(): string | null;
|
|
33
23
|
getVarCatalogs(): Map<string, import("../../..").VarCatalog[]>;
|
|
@@ -39,14 +29,6 @@ export declare function useKgVar(formID: string): {
|
|
|
39
29
|
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
40
30
|
enter(formID: string): Promise<void>;
|
|
41
31
|
}>;
|
|
42
|
-
/**
|
|
43
|
-
* 翻译变量. 响应式的.
|
|
44
|
-
* @param varName 变量名称.
|
|
45
|
-
*/
|
|
46
32
|
t1: (varName?: string | null) => Ref<string>;
|
|
47
|
-
/**
|
|
48
|
-
* 翻译变量. 不是响应式的.
|
|
49
|
-
* @param varName 变量名称.
|
|
50
|
-
*/
|
|
51
33
|
t2: (varName?: string | null) => string;
|
|
52
34
|
};
|
|
@@ -18,6 +18,7 @@ export declare const KG_I18N: {
|
|
|
18
18
|
save: string;
|
|
19
19
|
cancel: string;
|
|
20
20
|
confirm: string;
|
|
21
|
+
lookup: string;
|
|
21
22
|
confirmDelete: string;
|
|
22
23
|
KgSearch: {
|
|
23
24
|
title: string;
|
|
@@ -43,6 +44,7 @@ export declare const KG_I18N: {
|
|
|
43
44
|
save: string;
|
|
44
45
|
cancel: string;
|
|
45
46
|
confirm: string;
|
|
47
|
+
lookup: string;
|
|
46
48
|
confirmDelete: string;
|
|
47
49
|
KgSearch: {
|
|
48
50
|
title: string;
|