nsc-react-component 4.0.8 → 4.0.11
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.
|
@@ -3,6 +3,10 @@ import { FormPageProps } from "../FormPage/index";
|
|
|
3
3
|
import "./index.module.less";
|
|
4
4
|
import { StoreProps } from "@bj-nsc/msn";
|
|
5
5
|
import { PaginationProps } from "antd";
|
|
6
|
+
type ButtonItem = string | {
|
|
7
|
+
code: string;
|
|
8
|
+
recordShow?: string | Function;
|
|
9
|
+
};
|
|
6
10
|
interface TableProps {
|
|
7
11
|
actionColumn?: boolean;
|
|
8
12
|
store?: StoreProps;
|
|
@@ -43,10 +47,7 @@ interface NSCBaseBageProps {
|
|
|
43
47
|
onSearch?: (value?: any) => void;
|
|
44
48
|
onReset?: () => void;
|
|
45
49
|
initData?: any;
|
|
46
|
-
buttons?:
|
|
47
|
-
code: string;
|
|
48
|
-
recordShow?: string | Function;
|
|
49
|
-
}>;
|
|
50
|
+
buttons?: ButtonItem[];
|
|
50
51
|
onShowForm?: (value?: any, editorFlag?: string) => void;
|
|
51
52
|
onHideForm?: () => void;
|
|
52
53
|
onFormChange?: (changedValues?: any, allValues?: any) => void;
|
|
@@ -111,9 +112,11 @@ declare class BasePage extends PureComponent<NSCBaseBageProps, any> {
|
|
|
111
112
|
pageRef: React.RefObject<any>;
|
|
112
113
|
pageContentRef: React.RefObject<any>;
|
|
113
114
|
dateFormat: any;
|
|
115
|
+
tableWrapperRef: React.RefObject<HTMLDivElement>;
|
|
114
116
|
constructor(props: any);
|
|
115
117
|
componentDidMount(): void;
|
|
116
|
-
componentDidUpdate(): void;
|
|
118
|
+
componentDidUpdate(prevProps: any): void;
|
|
119
|
+
componentWillUnmount(): void;
|
|
117
120
|
setSearchParams(params: any, callBack: any): void;
|
|
118
121
|
doSubmit(data: any, label?: string): void;
|
|
119
122
|
onSelect: (checkedTreeKeys: any) => void;
|
|
@@ -143,6 +146,7 @@ declare class BasePage extends PureComponent<NSCBaseBageProps, any> {
|
|
|
143
146
|
setTreeData(data: any): void;
|
|
144
147
|
getSelectedKey: (selected: any) => any[];
|
|
145
148
|
convertQueryParams(): any;
|
|
149
|
+
calculateTableHeaderHeight: () => void;
|
|
146
150
|
render(): React.JSX.Element;
|
|
147
151
|
}
|
|
148
152
|
export default BasePage;
|