@kengic/vue 0.19.1-beta.0 → 0.19.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -2
- package/dist/kengic-vue.js +2224 -2212
- package/dist/src/components/KgForm/index.hooks.d.ts +5 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +3 -6
- package/dist/src/components/KgSearch/index.hooks.d.ts +3 -3
- package/dist/src/components/KgSearch/index.store.d.ts +4 -4
- package/dist/src/components/KgTable/index.hooks.d.ts +473 -33
- package/dist/src/components/KgTable/index.store.d.ts +272 -129
- package/dist/src/components/KgTable/index.vm.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +49 -70
- package/dist/src/components/KgVar/index.store.d.ts +5 -5
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +6 -6
- package/dist/src/components/util.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +2 -2
- package/dist/src/utils/kg-var.util.d.ts +1 -1
- package/package.json +1 -1
@@ -14,29 +14,29 @@ export declare function useKgForm(formID?: string | null): {
|
|
14
14
|
* @param cb 回调函数.
|
15
15
|
* @param once 是否只会触发一次. 默认为 undefined.
|
16
16
|
*/
|
17
|
-
onSelectBeforeSetDatas: (cb: IKgFormSelectBeforeSetDatasCb) => import("../..").IRemoveEventListenerHandler;
|
17
|
+
onSelectBeforeSetDatas: (cb: IKgFormSelectBeforeSetDatasCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
|
18
18
|
/**
|
19
19
|
* 事件: 下拉列表选中某个(可能多个)数据.
|
20
20
|
* @param cb 回调函数.
|
21
21
|
* @param once 是否只会触发一次. 默认为 undefined.
|
22
22
|
*/
|
23
|
-
onSelectChange: (cb: IKgFormSelectChangeCb) => import("../..").IRemoveEventListenerHandler;
|
23
|
+
onSelectChange: (cb: IKgFormSelectChangeCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
|
24
24
|
/**
|
25
25
|
* 事件: 查找弹窗打开之前.
|
26
26
|
* @param cb 回调函数.
|
27
27
|
* @param once 是否只会触发一次. 默认为 undefined.
|
28
28
|
*/
|
29
|
-
onLookupBeforeOpen: (cb: IKgFormLookupBeforeOpenCb) => import("../..").IRemoveEventListenerHandler;
|
29
|
+
onLookupBeforeOpen: (cb: IKgFormLookupBeforeOpenCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
|
30
30
|
/**
|
31
31
|
* 事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
|
32
32
|
* @param cb 回调函数.
|
33
33
|
* @param once 是否只会触发一次. 默认为 undefined.
|
34
34
|
*/
|
35
|
-
onLookupBeforeOk: (cb: IKgFormLookupBeforeOkCb) => import("../..").IRemoveEventListenerHandler;
|
35
|
+
onLookupBeforeOk: (cb: IKgFormLookupBeforeOkCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
|
36
36
|
/**
|
37
37
|
* 事件: 查找弹窗点击确定.
|
38
38
|
* @param cb 回调函数.
|
39
39
|
* @param once 是否只会触发一次. 默认为 undefined.
|
40
40
|
*/
|
41
|
-
onLookupOk: (cb: IKgFormLookupOkCb) => import("../..").IRemoveEventListenerHandler;
|
41
|
+
onLookupOk: (cb: IKgFormLookupOkCb, once?: boolean | undefined) => import("../..").IRemoveEventListenerHandler;
|
42
42
|
};
|
@@ -41,7 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
onKgSubmit: import("vue").PropType<() => void>;
|
42
42
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
43
43
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
44
|
-
/** 初始. */
|
45
44
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
46
45
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "kgSelectChange" | "update:value" | "kgSelectDatasChange")[], "kgSubmit" | "kgChange" | "kgSelectChange" | "update:value" | "kgSelectDatasChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
47
46
|
kgVarName: {
|
@@ -84,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
84
83
|
onKgSubmit: import("vue").PropType<() => void>;
|
85
84
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
86
85
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
87
|
-
/** 初始. */
|
88
86
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
89
87
|
}>> & {
|
90
88
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
@@ -8,11 +8,11 @@ export declare type IUseKgFormItemSelect = {
|
|
8
8
|
/** 作为显示的列. */
|
9
9
|
lbl_clm: ComputedRef<string>;
|
10
10
|
/** 查询参数. */
|
11
|
-
|
11
|
+
requestParams: ComputedRef<Record<string, any>>;
|
12
12
|
/** 列表数据. */
|
13
13
|
datas: Ref<Array<Record<string, any>>>;
|
14
14
|
/** 是否正在查询列表数据. */
|
15
|
-
|
15
|
+
isDatasRequesting: Ref<boolean>;
|
16
16
|
/**
|
17
17
|
* 处理列表数据.
|
18
18
|
* @param datas 原始列表数据.
|
@@ -22,6 +22,6 @@ export declare type IUseKgFormItemSelect = {
|
|
22
22
|
/**
|
23
23
|
* 查询列表数据.
|
24
24
|
*/
|
25
|
-
|
25
|
+
requestDatas(): Promise<void>;
|
26
26
|
};
|
27
27
|
export declare function useKgFormItemSelect(): IUseKgFormItemSelect;
|
@@ -21,8 +21,7 @@ export declare function getDefaultHeight(varProfileDetails?: Array<VarProfileDet
|
|
21
21
|
* @param headerTeleport 是否将头部放到顶部的导航栏中.
|
22
22
|
*/
|
23
23
|
export declare function getMaxHeight(varProfileDetails?: Array<VarProfileDetail> | null, headerTeleport?: boolean | null): number;
|
24
|
-
export declare
|
25
|
-
export declare function _useLayoutHeaderResizeObserver(): IUseLayoutHeaderResizeObserver;
|
24
|
+
export declare function _useLayoutHeaderResizeObserver(): {};
|
26
25
|
export declare function _useCommon(): {
|
27
26
|
isVisible: import("vue").ComputedRef<boolean>;
|
28
27
|
isResizable: import("vue").ComputedRef<boolean>;
|
@@ -32,8 +31,6 @@ export declare function _useCommon(): {
|
|
32
31
|
maxHeight: import("vue").ComputedRef<number>;
|
33
32
|
minHeight: import("vue").ComputedRef<1 | 42>;
|
34
33
|
};
|
35
|
-
export declare
|
36
|
-
|
37
|
-
initFormModel(): void;
|
34
|
+
export declare function _useFormModel(kgResizableRef: Ref<any | null>, formRef: Ref<FormInstance | null>, kgResizableProps: Ref<IKgResizableProps>): {
|
35
|
+
initFormModel: () => Promise<void>;
|
38
36
|
};
|
39
|
-
export declare function _useFormModel(kgResizableRef: Ref<any | null>, formRef: Ref<FormInstance | null>, kgResizableProps: Ref<IKgResizableProps>): IUseFormModel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
2
2
|
import { IRemoveEventListenerHandler } from '../../consts';
|
3
|
-
import {
|
3
|
+
import { IKgTableRequestParams } from '../KgTable';
|
4
4
|
import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
|
5
5
|
export declare type IUseKgSearch = {
|
6
6
|
formID: string;
|
@@ -13,14 +13,14 @@ export declare type IUseKgSearch = {
|
|
13
13
|
/** 高级查询的操作符表单数据对象. */
|
14
14
|
operatorModel: ComputedRef<ReturnType<IKgSearchStore['getOperatorModel']>>;
|
15
15
|
/** 查询. */
|
16
|
-
search(param?: boolean |
|
16
|
+
search(param?: boolean | IKgTableRequestParams): void;
|
17
17
|
/** 重置. */
|
18
18
|
reset(): void;
|
19
19
|
/**
|
20
20
|
* 事件: ready, 查询字段初始完成, 组件渲染完成.
|
21
21
|
* @param cb 回调函数.
|
22
22
|
* @param once 是否只会触发一次. 默认为 undefined.
|
23
|
-
|
23
|
+
*/
|
24
24
|
onReady(cb: IKgSearchReadyCb, once?: boolean): IRemoveEventListenerHandler;
|
25
25
|
/**
|
26
26
|
* 事件: search, 点击查询按钮, 并且表单验证通过.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { IKgEventCb } from '../../consts';
|
3
|
-
import {
|
3
|
+
import { IKgTableRequestParams } from '../KgTable';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'ready': 就绪, 查询字段初始完成, 组件渲染完成
|
@@ -10,13 +10,13 @@ import { IKgTableSearchParams } from '../KgTable';
|
|
10
10
|
export declare type IKgSearchEvent = 'ready' | 'search' | 'reset';
|
11
11
|
/** 事件监听函数: ready. */
|
12
12
|
export declare type IKgSearchReadyCb = ((param: any) => Promise<boolean>) & IKgEventCb;
|
13
|
-
export declare type IKgSearchSearchCb = ((param:
|
13
|
+
export declare type IKgSearchSearchCb = ((param: IKgTableRequestParams) => Promise<boolean>) & IKgEventCb;
|
14
14
|
/** 事件监听函数: reset. */
|
15
15
|
export declare type IKgSearchResetCb = ((param: any) => Promise<boolean>) & IKgEventCb;
|
16
|
-
export declare type IKgSearchCbParam =
|
16
|
+
export declare type IKgSearchCbParam = IKgTableRequestParams;
|
17
17
|
export declare type IKgSearchCb = IKgSearchReadyCb | IKgSearchSearchCb | IKgSearchResetCb;
|
18
18
|
/** 查询方法. */
|
19
|
-
export declare type IKgSearchSearchFn = (param?:
|
19
|
+
export declare type IKgSearchSearchFn = (param?: IKgTableRequestParams) => void;
|
20
20
|
/** 重置方法. */
|
21
21
|
export declare type IKgSearchResetFn = () => void;
|
22
22
|
export interface IKgSearchState {
|