@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.
@@ -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
- commandParameter: ComputedRef<Record<string, any>>;
11
+ requestParams: ComputedRef<Record<string, any>>;
12
12
  /** 列表数据. */
13
13
  datas: Ref<Array<Record<string, any>>>;
14
14
  /** 是否正在查询列表数据. */
15
- isDatasRetrieving: Ref<boolean>;
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
- queryDatas(): Promise<void>;
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 type IUseLayoutHeaderResizeObserver = {};
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 type IUseFormModel = {
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 { IKgTableSearchParams } from '../KgTable';
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 | IKgTableSearchParams): void;
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 { IKgTableSearchParams } from '../KgTable';
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: IKgTableSearchParams) => Promise<boolean>) & IKgEventCb;
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 = IKgTableSearchParams;
16
+ export declare type IKgSearchCbParam = IKgTableRequestParams;
17
17
  export declare type IKgSearchCb = IKgSearchReadyCb | IKgSearchSearchCb | IKgSearchResetCb;
18
18
  /** 查询方法. */
19
- export declare type IKgSearchSearchFn = (param?: IKgTableSearchParams) => void;
19
+ export declare type IKgSearchSearchFn = (param?: IKgTableRequestParams) => void;
20
20
  /** 重置方法. */
21
21
  export declare type IKgSearchResetFn = () => void;
22
22
  export interface IKgSearchState {