@kengic/vue 0.2.1-beta.10 → 0.2.1-beta.12
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 +2453 -2385
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +1 -1
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +1 -1
- package/dist/src/components/KgTable/KgTable.Info.d.ts +6 -0
- package/dist/src/components/KgTable/KgTable.data.d.ts +7 -3
- package/dist/src/components/KgTable/index.hooks.d.ts +2 -0
- package/dist/src/components/KgTable/index.store.d.ts +4 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +2 -2
- package/dist/src/components/KgVar/index.store.d.ts +6 -2
- 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/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare const getProps: () => {
|
|
|
6
6
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
7
7
|
onKgOk: PropType<(value: string | Array<string>, record: IKgTableRecord | Array<IKgTableRecord>) => void>;
|
|
8
8
|
};
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
10
10
|
declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
visible: PropType<boolean>;
|
|
12
12
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
@@ -4,7 +4,7 @@ import { IKgTableRecord } from '../../KgTable';
|
|
|
4
4
|
export declare const getProps: () => {
|
|
5
5
|
onKgOk: PropType<(value: any, row: IKgTableRecord) => void>;
|
|
6
6
|
};
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
8
8
|
declare const _default: import("vue").DefineComponent<{
|
|
9
9
|
onKgOk: PropType<(value: any, row: IKgTableRecord<{}>) => void>;
|
|
10
10
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
@@ -13,6 +13,8 @@ export declare const getProps: () => {
|
|
|
13
13
|
kgShowClearCheck: PropType<boolean>;
|
|
14
14
|
/** 是否显示'清空表格'按钮. */
|
|
15
15
|
kgShowClearTable: PropType<boolean>;
|
|
16
|
+
/** 是否禁用. */
|
|
17
|
+
kgDisabled: PropType<boolean>;
|
|
16
18
|
/** 是否显示'定位'按钮. */
|
|
17
19
|
kgShowLocate: PropType<boolean>;
|
|
18
20
|
};
|
|
@@ -30,6 +32,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
32
|
kgShowClearCheck: PropType<boolean>;
|
|
31
33
|
/** 是否显示'清空表格'按钮. */
|
|
32
34
|
kgShowClearTable: PropType<boolean>;
|
|
35
|
+
/** 是否禁用. */
|
|
36
|
+
kgDisabled: PropType<boolean>;
|
|
33
37
|
/** 是否显示'定位'按钮. */
|
|
34
38
|
kgShowLocate: PropType<boolean>;
|
|
35
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
@@ -45,6 +49,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
49
|
kgShowClearCheck: PropType<boolean>;
|
|
46
50
|
/** 是否显示'清空表格'按钮. */
|
|
47
51
|
kgShowClearTable: PropType<boolean>;
|
|
52
|
+
/** 是否禁用. */
|
|
53
|
+
kgDisabled: PropType<boolean>;
|
|
48
54
|
/** 是否显示'定位'按钮. */
|
|
49
55
|
kgShowLocate: PropType<boolean>;
|
|
50
56
|
}>>, {
|
|
@@ -5,7 +5,11 @@ export declare type IUseColumns = {
|
|
|
5
5
|
columns: ComputedRef<ColumnsType<IKgTableRecord>>;
|
|
6
6
|
scrollX: ComputedRef<string>;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
9
|
-
* 表格的列.
|
|
10
|
-
*/
|
|
8
|
+
/** 表格的列. */
|
|
11
9
|
export declare function _useColumns(): IUseColumns;
|
|
10
|
+
export declare type IUseSpinning = {
|
|
11
|
+
/** 是否显示加载状态. */
|
|
12
|
+
isSpinning: ComputedRef<boolean>;
|
|
13
|
+
};
|
|
14
|
+
/** 加载状态. */
|
|
15
|
+
export declare function _useSpinning(): IUseSpinning;
|
|
@@ -6,6 +6,8 @@ export declare type IUseKgTable = {
|
|
|
6
6
|
selectedRows: ComputedRef<ReturnType<KgTableStore['getSelectedRows']>>;
|
|
7
7
|
/** 是否已经加载过一次了. */
|
|
8
8
|
isRetrieved: ComputedRef<ReturnType<KgTableStore['getIsRetrieved']>>;
|
|
9
|
+
/** 是否正在查询. */
|
|
10
|
+
isRetrieving: ComputedRef<ReturnType<KgTableStore['getIsRetrieving']>>;
|
|
9
11
|
/** 监听双击事件. */
|
|
10
12
|
onRowDoubleClick(cb: IKgTableRowDoubleClickCb): void;
|
|
11
13
|
};
|
|
@@ -13,12 +13,15 @@ export interface KgTableState {
|
|
|
13
13
|
* 如果表格启用了自动查询, 当第一次自动查询之后, 该属性为 true.
|
|
14
14
|
*/
|
|
15
15
|
isRetrievedMap: Map<string, boolean>;
|
|
16
|
+
/** 是否正在查询. */
|
|
17
|
+
isRetrievingMap: Map<string, boolean>;
|
|
16
18
|
/** '双击某行'事件监听函数列表. */
|
|
17
19
|
onRowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
|
|
18
20
|
}
|
|
19
21
|
export declare type KgTableStoreDefinition = StoreDefinition<'KgTable', KgTableState, {
|
|
20
22
|
getSelectedRows(): (formID?: string | null) => Array<IKgTableRecord> | null;
|
|
21
23
|
getIsRetrieved(): (formID?: string | null) => boolean | null;
|
|
24
|
+
getIsRetrieving(): (formID?: string | null) => boolean | null;
|
|
22
25
|
}, {
|
|
23
26
|
dispose: (formID?: string | null) => void;
|
|
24
27
|
addEventListener: (formID: string, event: IKgTableEvent, cb: IKgTableRowDoubleClickCb) => void;
|
|
@@ -26,6 +29,7 @@ export declare type KgTableStoreDefinition = StoreDefinition<'KgTable', KgTableS
|
|
|
26
29
|
emit: (formID: string, event: IKgTableEvent, record?: any | null) => void;
|
|
27
30
|
setSelectedRows(formID: string, selectedRows: Array<IKgTableRecord>): void;
|
|
28
31
|
setIsRetrieved(formID: string, value: boolean): void;
|
|
32
|
+
setIsRetrieving(formID: string, value: boolean): void;
|
|
29
33
|
}>;
|
|
30
34
|
export declare type KgTableStore = ReturnType<KgTableStoreDefinition>;
|
|
31
35
|
export declare const useKgTableStore: () => KgTableStoreDefinition;
|
|
@@ -13,9 +13,9 @@ export declare type IUseKgVar = {
|
|
|
13
13
|
/** 当前查询条件 ID. */
|
|
14
14
|
currentVarProfileMasterID: ComputedRef<ReturnType<IKgVarStore['getCurrentVarProfileMasterID']>>;
|
|
15
15
|
/** 所有查询字段. */
|
|
16
|
-
varProfileDetails: ComputedRef<Array<VarProfileDetail
|
|
16
|
+
varProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
|
17
17
|
/** 所有要显示的查询字段. */
|
|
18
|
-
visibleVarProfileDetails: ComputedRef<Array<VarProfileDetail
|
|
18
|
+
visibleVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
|
|
19
19
|
t1: (varName?: string | null) => ComputedRef<string>;
|
|
20
20
|
t2: (varName?: string | null) => string;
|
|
21
21
|
};
|
|
@@ -5,6 +5,8 @@ export interface KgVarState {
|
|
|
5
5
|
* 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
|
|
6
6
|
*/
|
|
7
7
|
formIDs: Array<string>;
|
|
8
|
+
/** 正在查询变量配置. */
|
|
9
|
+
isRetrievingMap: Map<string, boolean>;
|
|
8
10
|
/** 变量别名. */
|
|
9
11
|
varCatalogsMap: Map<string, Array<VarCatalog>>;
|
|
10
12
|
/** 变量查找. */
|
|
@@ -32,6 +34,7 @@ export interface KgVarState {
|
|
|
32
34
|
}
|
|
33
35
|
export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState, {
|
|
34
36
|
getTopFormID(): string | null;
|
|
37
|
+
isRetrieving(): (formID?: string | null) => boolean | null;
|
|
35
38
|
getVarCatalogs(): (formID?: string | null) => Array<VarCatalog> | null;
|
|
36
39
|
getVarCatalog(): (formID?: string | null, varName?: string | null) => VarCatalog | null;
|
|
37
40
|
getVarLookup(): (formID?: string | null, varName?: string | null) => VarLookup | null;
|
|
@@ -49,9 +52,10 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState,
|
|
|
49
52
|
getVarGridMaster(): (formID?: string | null) => VarGridMasterDTO | null;
|
|
50
53
|
getVarGridDetails(): (formID?: string | null) => Array<VarGridDetail> | null;
|
|
51
54
|
}, {
|
|
52
|
-
leave(formID: string): void;
|
|
53
|
-
retrieveAll(formID?: string | null): Promise<void>;
|
|
54
55
|
enter(formID: string): Promise<void>;
|
|
56
|
+
leave(formID: string): void;
|
|
57
|
+
retrieve(formID?: string | null): Promise<void>;
|
|
58
|
+
setIsRetrieving(formID: string, value: boolean): void;
|
|
55
59
|
setCurrentVarProfileMasterID(formID: string, currentVarProfileMasterID: string): void;
|
|
56
60
|
}>;
|
|
57
61
|
export declare type IKgVarStore = ReturnType<IKgVarStoreDefinition>;
|
|
@@ -21,6 +21,7 @@ export declare const KG_I18N: {
|
|
|
21
21
|
lookup: string;
|
|
22
22
|
button: string;
|
|
23
23
|
confirmDelete: string;
|
|
24
|
+
deleteSuccess: string;
|
|
24
25
|
emptyText: string;
|
|
25
26
|
KgSearch: {
|
|
26
27
|
title: string;
|
|
@@ -60,6 +61,7 @@ export declare const KG_I18N: {
|
|
|
60
61
|
lookup: string;
|
|
61
62
|
button: string;
|
|
62
63
|
confirmDelete: string;
|
|
64
|
+
deleteSuccess: string;
|
|
63
65
|
emptyText: string;
|
|
64
66
|
KgSearch: {
|
|
65
67
|
title: string;
|