@byteluck-fe/runtime-engine 7.0.0-beta.8 → 7.0.0-beta.9
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.
|
@@ -2,6 +2,12 @@ import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
3
3
|
import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-community/core';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* 扩展 ColDef 类型,支持合并表头的 children 属性
|
|
7
|
+
*/
|
|
8
|
+
interface ExtendedColDef extends ColDef {
|
|
9
|
+
children?: ExtendedColDef[];
|
|
10
|
+
}
|
|
5
11
|
export declare function useColumns(params: {
|
|
6
12
|
instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
|
|
7
13
|
isShowSelection?: ComputedRef<boolean>;
|
|
@@ -16,7 +22,7 @@ export declare function useColumns(params: {
|
|
|
16
22
|
operationbtns: any;
|
|
17
23
|
onColumnsMounted: () => void;
|
|
18
24
|
onDragStopped: (params: DragStoppedEvent) => void;
|
|
19
|
-
handleSortsColumns: (viewColumns:
|
|
25
|
+
handleSortsColumns: (viewColumns: ExtendedColDef[], customConfig?: typing.ListHeaderConfigVo[]) => ExtendedColDef[];
|
|
20
26
|
isViewShowColumns: (item: ColDef) => any;
|
|
21
27
|
onColumnResized: (event: ColumnResizedEvent) => void;
|
|
22
28
|
onSetColumnVisible: (hideKeys: string[], type?: 'reset' | 'resetVisible') => void;
|
|
@@ -33,3 +39,4 @@ export declare function useColumns(params: {
|
|
|
33
39
|
isShowTreeGroupStatisticsBtn: ComputedRef<boolean | undefined>;
|
|
34
40
|
isMasterDetail: ComputedRef<boolean>;
|
|
35
41
|
};
|
|
42
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
2
|
import { CONTROL_TYPE, OptObject, ActionObject, BaseStyle } from '@byteluck-fe/model-driven-core-all';
|
|
3
3
|
import { PropsInstanceType } from '../../../constant';
|
|
4
|
-
import { DebouncedFunc } from 'lodash';
|
|
5
4
|
|
|
6
5
|
export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>, emit?: Function): {
|
|
7
6
|
isPlain: ComputedRef<boolean>;
|
|
@@ -29,5 +28,6 @@ export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>,
|
|
|
29
28
|
isShowPopover: Ref<boolean>;
|
|
30
29
|
showContent: ComputedRef<string>;
|
|
31
30
|
buttonContent: ComputedRef<string>;
|
|
32
|
-
clickHandle:
|
|
31
|
+
clickHandle: (event: Event) => void;
|
|
32
|
+
isLoading: Ref<boolean>;
|
|
33
33
|
};
|
|
@@ -35,13 +35,13 @@ export declare class DataViewPlugin implements Plugin {
|
|
|
35
35
|
handlerFormSubmit(payload: EventPayload & {
|
|
36
36
|
instance: ControlRuntimeInstance<'data-view'>;
|
|
37
37
|
isSubmit?: any;
|
|
38
|
-
}): Promise<typing.PlainResult$OptResDto$ | undefined>;
|
|
38
|
+
}): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
|
|
39
39
|
private onBeforeSubmit;
|
|
40
40
|
private onBeforeSubmitFormatParams;
|
|
41
41
|
private onAfterSubmit;
|
|
42
42
|
resetIsShow(): void;
|
|
43
43
|
onClickHandle(payload: Required<EventPayload> & {
|
|
44
44
|
instance: ControlRuntimeInstance<'data-view'>;
|
|
45
|
-
}): Promise<typing.PlainResult$OptResDto$ | undefined>;
|
|
45
|
+
}): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
|
|
46
46
|
}
|
|
47
47
|
export {};
|