nsc-react-component 1.0.23 → 1.0.27
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/lib/Interface.d.ts +4 -4
- package/lib/button/index.d.ts +27 -27
- package/lib/cascader/index.d.ts +27 -27
- package/lib/checkbox/CheckboxGroup.d.ts +22 -22
- package/lib/checkbox/index.d.ts +8 -8
- package/lib/common/BodyRow/index.d.ts +26 -26
- package/lib/common/Icon.d.ts +14 -14
- package/lib/common/IconFont.d.ts +4 -4
- package/lib/common/NoAuthority.d.ts +4 -4
- package/lib/common/NoData.d.ts +4 -4
- package/lib/common/NoMessage.d.ts +4 -4
- package/lib/common/NoNetWork.d.ts +4 -4
- package/lib/common/Page404.d.ts +4 -4
- package/lib/common/PageRequest.d.ts +45 -45
- package/lib/common/TreePanel.d.ts +74 -74
- package/lib/common/withZhLocale.d.ts +3 -3
- package/lib/config.d.ts +20 -20
- package/lib/datepick/Rangepicker.d.ts +4 -4
- package/lib/datepick/index.d.ts +3 -3
- package/lib/form/Form.d.ts +47 -47
- package/lib/form/filed/Cascader.d.ts +6 -6
- package/lib/form/filed/Checkbox.d.ts +6 -6
- package/lib/form/filed/DatePicker.d.ts +6 -6
- package/lib/form/filed/FormItem.d.ts +11 -11
- package/lib/form/filed/Input.d.ts +7 -6
- package/lib/form/filed/Input.js +7 -4
- package/lib/form/filed/InputEamil.d.ts +6 -6
- package/lib/form/filed/InputNumber.d.ts +6 -6
- package/lib/form/filed/InputPassword.d.ts +6 -6
- package/lib/form/filed/Item.d.ts +17 -21
- package/lib/form/filed/Item.js +34 -7
- package/lib/form/filed/Radio.d.ts +6 -6
- package/lib/form/filed/RangerPicker.d.ts +6 -6
- package/lib/form/filed/Rate.d.ts +6 -6
- package/lib/form/filed/Select.d.ts +6 -6
- package/lib/form/filed/Slider.d.ts +6 -6
- package/lib/form/filed/Switch.d.ts +6 -6
- package/lib/form/filed/TagSelect.d.ts +6 -6
- package/lib/form/filed/TextArea.d.ts +6 -6
- package/lib/form/filed/Upload.d.ts +6 -6
- package/lib/form/index.d.ts +41 -41
- package/lib/index.d.ts +26 -26
- package/lib/input/Email.d.ts +16 -16
- package/lib/input/Number.d.ts +13 -13
- package/lib/input/Password.d.ts +16 -16
- package/lib/input/Search.d.ts +16 -16
- package/lib/input/TextArea.d.ts +16 -16
- package/lib/input/index.d.ts +33 -33
- package/lib/input/index.js +10 -13
- package/lib/menu/index.d.ts +28 -28
- package/lib/radio/RadioGroup.d.ts +25 -25
- package/lib/radio/index.d.ts +11 -11
- package/lib/select/index.d.ts +29 -29
- package/lib/table/index.d.ts +87 -87
- package/lib/tabs/Tabpane.d.ts +13 -13
- package/lib/tabs/index.d.ts +18 -18
- package/lib/tagSelect/TagSelect.d.ts +51 -51
- package/lib/tagSelect/index.d.ts +23 -23
- package/lib/tree/TreeSearch.d.ts +42 -42
- package/lib/tree/index.d.ts +62 -62
- package/lib/treeUtils.d.ts +70 -70
- package/lib/utils.d.ts +14 -12
- package/lib/utils.js +7 -2
- package/package.json +1 -1
- package/.vscode/launch.json +0 -15
package/lib/Interface.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface encrypt {
|
|
2
|
-
type: "sm2" | "sm4" | "base64" | "md5";
|
|
3
|
-
key?: string;
|
|
4
|
-
}
|
|
1
|
+
export interface encrypt {
|
|
2
|
+
type: "sm2" | "sm4" | "base64" | "md5";
|
|
3
|
+
key?: string;
|
|
4
|
+
}
|
package/lib/button/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} defaultStyle 是否显示默认样式,传入默认样式,
|
|
4
|
-
* type 默认样式分为两种按钮模式,铺满和带边框两种 default ,border 默认primary
|
|
5
|
-
* colorType 按钮背景颜色类型 success stress normal danger white 默认normal
|
|
6
|
-
*/
|
|
7
|
-
interface IButtonProp {
|
|
8
|
-
defaultStyle?: {
|
|
9
|
-
type?: "primary" | "border";
|
|
10
|
-
colorType?: "success" | "stress" | "white" | "danger" | "normal";
|
|
11
|
-
};
|
|
12
|
-
[propName: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export default class NSCButton extends React.PureComponent<IButtonProp> {
|
|
15
|
-
state: {
|
|
16
|
-
buttonLoading: boolean;
|
|
17
|
-
storeLoadiong: boolean;
|
|
18
|
-
};
|
|
19
|
-
constructor(props: any);
|
|
20
|
-
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
21
|
-
buttonLoading: any;
|
|
22
|
-
storeLoadiong: any;
|
|
23
|
-
};
|
|
24
|
-
setLoading(loading: boolean): void;
|
|
25
|
-
render(): JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} defaultStyle 是否显示默认样式,传入默认样式,
|
|
4
|
+
* type 默认样式分为两种按钮模式,铺满和带边框两种 default ,border 默认primary
|
|
5
|
+
* colorType 按钮背景颜色类型 success stress normal danger white 默认normal
|
|
6
|
+
*/
|
|
7
|
+
interface IButtonProp {
|
|
8
|
+
defaultStyle?: {
|
|
9
|
+
type?: "primary" | "border";
|
|
10
|
+
colorType?: "success" | "stress" | "white" | "danger" | "normal";
|
|
11
|
+
};
|
|
12
|
+
[propName: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export default class NSCButton extends React.PureComponent<IButtonProp> {
|
|
15
|
+
state: {
|
|
16
|
+
buttonLoading: boolean;
|
|
17
|
+
storeLoadiong: boolean;
|
|
18
|
+
};
|
|
19
|
+
constructor(props: any);
|
|
20
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
21
|
+
buttonLoading: any;
|
|
22
|
+
storeLoadiong: any;
|
|
23
|
+
};
|
|
24
|
+
setLoading(loading: boolean): void;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
package/lib/cascader/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { CascaderProps } from "antd";
|
|
3
|
-
import { TreeStore } from "@bj-nsc/msn";
|
|
4
|
-
interface ICascaderProps extends CascaderProps {
|
|
5
|
-
store?: TreeStore;
|
|
6
|
-
labelField?: string;
|
|
7
|
-
valueField?: string;
|
|
8
|
-
childrenField?: string;
|
|
9
|
-
onChange?: (value?: any, valuePath?: Array<any>, selectedOptions?: any) => void;
|
|
10
|
-
}
|
|
11
|
-
export default class NSCCascader extends PureComponent<ICascaderProps> {
|
|
12
|
-
state: {
|
|
13
|
-
dataSource: any[];
|
|
14
|
-
dataStore: any[];
|
|
15
|
-
stateValue: any[];
|
|
16
|
-
};
|
|
17
|
-
store: any;
|
|
18
|
-
config: {
|
|
19
|
-
breadcrumbMap: {};
|
|
20
|
-
};
|
|
21
|
-
componentDidUpdate(): void;
|
|
22
|
-
constructor(props: any);
|
|
23
|
-
onChange(value: any, selectOptions: any): void;
|
|
24
|
-
componentDidMount(): void;
|
|
25
|
-
render(): JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { CascaderProps } from "antd";
|
|
3
|
+
import { TreeStore } from "@bj-nsc/msn";
|
|
4
|
+
interface ICascaderProps extends CascaderProps {
|
|
5
|
+
store?: TreeStore;
|
|
6
|
+
labelField?: string;
|
|
7
|
+
valueField?: string;
|
|
8
|
+
childrenField?: string;
|
|
9
|
+
onChange?: (value?: any, valuePath?: Array<any>, selectedOptions?: any) => void;
|
|
10
|
+
}
|
|
11
|
+
export default class NSCCascader extends PureComponent<ICascaderProps> {
|
|
12
|
+
state: {
|
|
13
|
+
dataSource: any[];
|
|
14
|
+
dataStore: any[];
|
|
15
|
+
stateValue: any[];
|
|
16
|
+
};
|
|
17
|
+
store: any;
|
|
18
|
+
config: {
|
|
19
|
+
breadcrumbMap: {};
|
|
20
|
+
};
|
|
21
|
+
componentDidUpdate(): void;
|
|
22
|
+
constructor(props: any);
|
|
23
|
+
onChange(value: any, selectOptions: any): void;
|
|
24
|
+
componentDidMount(): void;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { StoreProps } from "@bj-nsc/msn";
|
|
3
|
-
interface ICheckboxGroupProps {
|
|
4
|
-
store?: StoreProps;
|
|
5
|
-
data?: Array<string | Object>;
|
|
6
|
-
labelField?: string;
|
|
7
|
-
valueField?: string;
|
|
8
|
-
[propName: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare class NSCCheckboxGroup extends PureComponent<ICheckboxGroupProps> {
|
|
11
|
-
state: {
|
|
12
|
-
dataSource: any[];
|
|
13
|
-
dataStore: any[];
|
|
14
|
-
};
|
|
15
|
-
store: any;
|
|
16
|
-
constructor(props: any);
|
|
17
|
-
convertData(data: any): any[];
|
|
18
|
-
componentDidMount(): void;
|
|
19
|
-
componentDidUpdate(): void;
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
}
|
|
22
|
-
export default NSCCheckboxGroup;
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { StoreProps } from "@bj-nsc/msn";
|
|
3
|
+
interface ICheckboxGroupProps {
|
|
4
|
+
store?: StoreProps;
|
|
5
|
+
data?: Array<string | Object>;
|
|
6
|
+
labelField?: string;
|
|
7
|
+
valueField?: string;
|
|
8
|
+
[propName: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare class NSCCheckboxGroup extends PureComponent<ICheckboxGroupProps> {
|
|
11
|
+
state: {
|
|
12
|
+
dataSource: any[];
|
|
13
|
+
dataStore: any[];
|
|
14
|
+
};
|
|
15
|
+
store: any;
|
|
16
|
+
constructor(props: any);
|
|
17
|
+
convertData(data: any): any[];
|
|
18
|
+
componentDidMount(): void;
|
|
19
|
+
componentDidUpdate(): void;
|
|
20
|
+
render(): JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export default NSCCheckboxGroup;
|
package/lib/checkbox/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { CheckboxProps } from "antd";
|
|
3
|
-
import Group from "./CheckboxGroup";
|
|
4
|
-
declare class NSCCheckbox extends PureComponent<CheckboxProps> {
|
|
5
|
-
static Group: typeof Group;
|
|
6
|
-
render(): JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
export default NSCCheckbox;
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { CheckboxProps } from "antd";
|
|
3
|
+
import Group from "./CheckboxGroup";
|
|
4
|
+
declare class NSCCheckbox extends PureComponent<CheckboxProps> {
|
|
5
|
+
static Group: typeof Group;
|
|
6
|
+
render(): JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
export default NSCCheckbox;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DndContext as DragDropContext } from "react-dnd";
|
|
3
|
-
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
4
|
-
export { DndContextType } from "react-dnd";
|
|
5
|
-
export interface IBodyRowProps {
|
|
6
|
-
isOver?: boolean;
|
|
7
|
-
connectDragSource?: (dom: React.ReactElement) => React.ReactElement;
|
|
8
|
-
connectDropTarget?: (dom: React.ReactElement) => React.ReactElement;
|
|
9
|
-
moveRow?: (dragIndex: number, hoverIndex: number, draging: {
|
|
10
|
-
index: number;
|
|
11
|
-
}, props: any) => void;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
className?: string;
|
|
14
|
-
index?: number;
|
|
15
|
-
}
|
|
16
|
-
declare class BodyRow extends React.Component<IBodyRowProps> {
|
|
17
|
-
static BodyRowComponent: {
|
|
18
|
-
body: {
|
|
19
|
-
row: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
static DragDropContext: typeof DragDropContext;
|
|
23
|
-
static HTML5Backend: typeof HTML5Backend;
|
|
24
|
-
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
25
|
-
}
|
|
26
|
-
export default BodyRow;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DndContext as DragDropContext } from "react-dnd";
|
|
3
|
+
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
4
|
+
export { DndContextType } from "react-dnd";
|
|
5
|
+
export interface IBodyRowProps {
|
|
6
|
+
isOver?: boolean;
|
|
7
|
+
connectDragSource?: (dom: React.ReactElement) => React.ReactElement;
|
|
8
|
+
connectDropTarget?: (dom: React.ReactElement) => React.ReactElement;
|
|
9
|
+
moveRow?: (dragIndex: number, hoverIndex: number, draging: {
|
|
10
|
+
index: number;
|
|
11
|
+
}, props: any) => void;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
className?: string;
|
|
14
|
+
index?: number;
|
|
15
|
+
}
|
|
16
|
+
declare class BodyRow extends React.Component<IBodyRowProps> {
|
|
17
|
+
static BodyRowComponent: {
|
|
18
|
+
body: {
|
|
19
|
+
row: any;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
static DragDropContext: typeof DragDropContext;
|
|
23
|
+
static HTML5Backend: typeof HTML5Backend;
|
|
24
|
+
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
25
|
+
}
|
|
26
|
+
export default BodyRow;
|
package/lib/common/Icon.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
interface INscIconProps {
|
|
3
|
-
type?: string | JSX.Element;
|
|
4
|
-
onClick?: (e: any) => void;
|
|
5
|
-
[propName: string]: any;
|
|
6
|
-
}
|
|
7
|
-
declare class NscIcon extends PureComponent<INscIconProps> {
|
|
8
|
-
state: {
|
|
9
|
-
spin: boolean;
|
|
10
|
-
};
|
|
11
|
-
setLoading(v: any): void;
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export default NscIcon;
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
interface INscIconProps {
|
|
3
|
+
type?: string | JSX.Element;
|
|
4
|
+
onClick?: (e: any) => void;
|
|
5
|
+
[propName: string]: any;
|
|
6
|
+
}
|
|
7
|
+
declare class NscIcon extends PureComponent<INscIconProps> {
|
|
8
|
+
state: {
|
|
9
|
+
spin: boolean;
|
|
10
|
+
};
|
|
11
|
+
setLoading(v: any): void;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default NscIcon;
|
package/lib/common/IconFont.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IconFontProps } from "@ant-design/icons/lib/components/IconFont";
|
|
3
|
-
declare const IconFont: (props: IconFontProps) => JSX.Element;
|
|
4
|
-
export default IconFont;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconFontProps } from "@ant-design/icons/lib/components/IconFont";
|
|
3
|
+
declare const IconFont: (props: IconFontProps) => JSX.Element;
|
|
4
|
+
export default IconFont;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class NoAuthority extends PureComponent {
|
|
3
|
-
render(): JSX.Element;
|
|
4
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class NoAuthority extends PureComponent {
|
|
3
|
+
render(): JSX.Element;
|
|
4
|
+
}
|
package/lib/common/NoData.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class NoData extends PureComponent<any> {
|
|
3
|
-
render(): JSX.Element;
|
|
4
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class NoData extends PureComponent<any> {
|
|
3
|
+
render(): JSX.Element;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class NoData extends PureComponent<any> {
|
|
3
|
-
render(): JSX.Element;
|
|
4
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class NoData extends PureComponent<any> {
|
|
3
|
+
render(): JSX.Element;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class NoData extends PureComponent<any> {
|
|
3
|
-
render(): JSX.Element;
|
|
4
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class NoData extends PureComponent<any> {
|
|
3
|
+
render(): JSX.Element;
|
|
4
|
+
}
|
package/lib/common/Page404.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
export default class NoData extends PureComponent<any> {
|
|
3
|
-
render(): JSX.Element;
|
|
4
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
export default class NoData extends PureComponent<any> {
|
|
3
|
+
render(): JSX.Element;
|
|
4
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
interface IOption {
|
|
3
|
-
scope: typeof NscPageRequest.prototype;
|
|
4
|
-
params: any;
|
|
5
|
-
type: any;
|
|
6
|
-
callbackBeforeClose: () => void | null;
|
|
7
|
-
callback: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare class NscPageRequest extends PureComponent {
|
|
10
|
-
returnValue: any;
|
|
11
|
-
state: {
|
|
12
|
-
visible: boolean;
|
|
13
|
-
title: string;
|
|
14
|
-
};
|
|
15
|
-
option: IOption;
|
|
16
|
-
/**
|
|
17
|
-
* 渲染完成
|
|
18
|
-
* @param {*} params 传递过来的参数对象
|
|
19
|
-
* @param {*} type 可以描述窗口类型
|
|
20
|
-
* @param {*} option 整改传递对象
|
|
21
|
-
*/
|
|
22
|
-
beforeRender(params: any, type: any, option: any): void;
|
|
23
|
-
show(option?: IOption): void;
|
|
24
|
-
hide(): void;
|
|
25
|
-
setReturnValue(returnValue: any): void;
|
|
26
|
-
getReturnValue(): any;
|
|
27
|
-
/**
|
|
28
|
-
* 关闭带回调
|
|
29
|
-
*/
|
|
30
|
-
close(result: any): void;
|
|
31
|
-
/**
|
|
32
|
-
* 获取参数,如果key不传递,且获取全部
|
|
33
|
-
* @param {String} key
|
|
34
|
-
*/
|
|
35
|
-
getParams(key: any): any;
|
|
36
|
-
/**
|
|
37
|
-
* 修改传递值
|
|
38
|
-
* @param {Object} key 如果key为Object,且覆盖全部参数,如果key为String,且使用value覆盖指定的key值
|
|
39
|
-
* @param {*} value 数值
|
|
40
|
-
*/
|
|
41
|
-
setParams(key: any, value: any): this;
|
|
42
|
-
getType(): any;
|
|
43
|
-
setType(type: any): void;
|
|
44
|
-
}
|
|
45
|
-
export default NscPageRequest;
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
interface IOption {
|
|
3
|
+
scope: typeof NscPageRequest.prototype;
|
|
4
|
+
params: any;
|
|
5
|
+
type: any;
|
|
6
|
+
callbackBeforeClose: () => void | null;
|
|
7
|
+
callback: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare class NscPageRequest extends PureComponent {
|
|
10
|
+
returnValue: any;
|
|
11
|
+
state: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
option: IOption;
|
|
16
|
+
/**
|
|
17
|
+
* 渲染完成
|
|
18
|
+
* @param {*} params 传递过来的参数对象
|
|
19
|
+
* @param {*} type 可以描述窗口类型
|
|
20
|
+
* @param {*} option 整改传递对象
|
|
21
|
+
*/
|
|
22
|
+
beforeRender(params: any, type: any, option: any): void;
|
|
23
|
+
show(option?: IOption): void;
|
|
24
|
+
hide(): void;
|
|
25
|
+
setReturnValue(returnValue: any): void;
|
|
26
|
+
getReturnValue(): any;
|
|
27
|
+
/**
|
|
28
|
+
* 关闭带回调
|
|
29
|
+
*/
|
|
30
|
+
close(result: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* 获取参数,如果key不传递,且获取全部
|
|
33
|
+
* @param {String} key
|
|
34
|
+
*/
|
|
35
|
+
getParams(key: any): any;
|
|
36
|
+
/**
|
|
37
|
+
* 修改传递值
|
|
38
|
+
* @param {Object} key 如果key为Object,且覆盖全部参数,如果key为String,且使用value覆盖指定的key值
|
|
39
|
+
* @param {*} value 数值
|
|
40
|
+
*/
|
|
41
|
+
setParams(key: any, value: any): this;
|
|
42
|
+
getType(): any;
|
|
43
|
+
setType(type: any): void;
|
|
44
|
+
}
|
|
45
|
+
export default NscPageRequest;
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import React, { Component } from "react";
|
|
2
|
-
import "antd/es/tree/style";
|
|
3
|
-
import { StoreConfigType } from "@bj-nsc/msn";
|
|
4
|
-
import { TreeProps } from "antd";
|
|
5
|
-
export interface TreeCommonProps {
|
|
6
|
-
titleAlias?: string;
|
|
7
|
-
handleAdd?: (params: any) => void;
|
|
8
|
-
handleDelete?: (params: any) => void;
|
|
9
|
-
handleEdit?: (params: any) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface ITreePanelProps extends TreeProps {
|
|
12
|
-
store: StoreConfigType<any>;
|
|
13
|
-
checkPropagation?: boolean;
|
|
14
|
-
renderTreeNode?: (props: ITreePanelProps, item: any) => React.ReactElement;
|
|
15
|
-
openKeys?: string[] | null;
|
|
16
|
-
}
|
|
17
|
-
declare class TreePanel<P> extends Component<ITreePanelProps & TreeCommonProps & P, any> {
|
|
18
|
-
state: {
|
|
19
|
-
searchText: any;
|
|
20
|
-
fieldOption: {
|
|
21
|
-
keyField: string;
|
|
22
|
-
titleField: string;
|
|
23
|
-
pathsField: string;
|
|
24
|
-
};
|
|
25
|
-
searchColor: any;
|
|
26
|
-
loading: boolean;
|
|
27
|
-
treeDatas: any[];
|
|
28
|
-
checkedKeys: any[];
|
|
29
|
-
expandedKeys: any[];
|
|
30
|
-
selectedKeys: any[];
|
|
31
|
-
selectNode: any;
|
|
32
|
-
};
|
|
33
|
-
store: any;
|
|
34
|
-
static defaultProps: {
|
|
35
|
-
store: {};
|
|
36
|
-
};
|
|
37
|
-
componentDidUpdate(prevProps: any): void;
|
|
38
|
-
constructor(props: any);
|
|
39
|
-
dataChangeBefore: (data: any) => any;
|
|
40
|
-
_iterator: (data: any) => any;
|
|
41
|
-
/**
|
|
42
|
-
* 修改数据
|
|
43
|
-
*/
|
|
44
|
-
mapData: () => void;
|
|
45
|
-
/**
|
|
46
|
-
* 初始化节点选中
|
|
47
|
-
* @param {*} modelData 数据
|
|
48
|
-
*/
|
|
49
|
-
_dataToCheckedKeys(modelData: any): any[];
|
|
50
|
-
/**
|
|
51
|
-
* 界面渲染
|
|
52
|
-
*/
|
|
53
|
-
renderTemplate(treeProps: ITreePanelProps, newTreeDatas: any): JSX.Element;
|
|
54
|
-
render(): React.ReactNode;
|
|
55
|
-
/**
|
|
56
|
-
* 获取数据对象
|
|
57
|
-
*/
|
|
58
|
-
getStore(): any;
|
|
59
|
-
/**
|
|
60
|
-
* 获取数据模型对象
|
|
61
|
-
*/
|
|
62
|
-
getModel(): any;
|
|
63
|
-
/**
|
|
64
|
-
* 刷新界面
|
|
65
|
-
* @param {Object} options 参数
|
|
66
|
-
*/
|
|
67
|
-
reload(options: any): this;
|
|
68
|
-
/**
|
|
69
|
-
* 菜单搜索过滤显示
|
|
70
|
-
* @param {String} val
|
|
71
|
-
*/
|
|
72
|
-
handleSearch(val: any, fieldOption?: any, searchColor?: any): void;
|
|
73
|
-
}
|
|
74
|
-
export default TreePanel;
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import "antd/es/tree/style";
|
|
3
|
+
import { StoreConfigType } from "@bj-nsc/msn";
|
|
4
|
+
import { TreeProps } from "antd";
|
|
5
|
+
export interface TreeCommonProps {
|
|
6
|
+
titleAlias?: string;
|
|
7
|
+
handleAdd?: (params: any) => void;
|
|
8
|
+
handleDelete?: (params: any) => void;
|
|
9
|
+
handleEdit?: (params: any) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ITreePanelProps extends TreeProps {
|
|
12
|
+
store: StoreConfigType<any>;
|
|
13
|
+
checkPropagation?: boolean;
|
|
14
|
+
renderTreeNode?: (props: ITreePanelProps, item: any) => React.ReactElement;
|
|
15
|
+
openKeys?: string[] | null;
|
|
16
|
+
}
|
|
17
|
+
declare class TreePanel<P> extends Component<ITreePanelProps & TreeCommonProps & P, any> {
|
|
18
|
+
state: {
|
|
19
|
+
searchText: any;
|
|
20
|
+
fieldOption: {
|
|
21
|
+
keyField: string;
|
|
22
|
+
titleField: string;
|
|
23
|
+
pathsField: string;
|
|
24
|
+
};
|
|
25
|
+
searchColor: any;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
treeDatas: any[];
|
|
28
|
+
checkedKeys: any[];
|
|
29
|
+
expandedKeys: any[];
|
|
30
|
+
selectedKeys: any[];
|
|
31
|
+
selectNode: any;
|
|
32
|
+
};
|
|
33
|
+
store: any;
|
|
34
|
+
static defaultProps: {
|
|
35
|
+
store: {};
|
|
36
|
+
};
|
|
37
|
+
componentDidUpdate(prevProps: any): void;
|
|
38
|
+
constructor(props: any);
|
|
39
|
+
dataChangeBefore: (data: any) => any;
|
|
40
|
+
_iterator: (data: any) => any;
|
|
41
|
+
/**
|
|
42
|
+
* 修改数据
|
|
43
|
+
*/
|
|
44
|
+
mapData: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* 初始化节点选中
|
|
47
|
+
* @param {*} modelData 数据
|
|
48
|
+
*/
|
|
49
|
+
_dataToCheckedKeys(modelData: any): any[];
|
|
50
|
+
/**
|
|
51
|
+
* 界面渲染
|
|
52
|
+
*/
|
|
53
|
+
renderTemplate(treeProps: ITreePanelProps, newTreeDatas: any): JSX.Element;
|
|
54
|
+
render(): React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* 获取数据对象
|
|
57
|
+
*/
|
|
58
|
+
getStore(): any;
|
|
59
|
+
/**
|
|
60
|
+
* 获取数据模型对象
|
|
61
|
+
*/
|
|
62
|
+
getModel(): any;
|
|
63
|
+
/**
|
|
64
|
+
* 刷新界面
|
|
65
|
+
* @param {Object} options 参数
|
|
66
|
+
*/
|
|
67
|
+
reload(options: any): this;
|
|
68
|
+
/**
|
|
69
|
+
* 菜单搜索过滤显示
|
|
70
|
+
* @param {String} val
|
|
71
|
+
*/
|
|
72
|
+
handleSearch(val: any, fieldOption?: any, searchColor?: any): void;
|
|
73
|
+
}
|
|
74
|
+
export default TreePanel;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare function withZhLocale<P>(Component: React.ComponentType<P>): React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<P>>;
|
|
3
|
-
export default withZhLocale;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function withZhLocale<P>(Component: React.ComponentType<P>): React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<P>>;
|
|
3
|
+
export default withZhLocale;
|
package/lib/config.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
interface IComponentConfig {
|
|
2
|
-
loginProjectName?: string;
|
|
3
|
-
authorization?: string;
|
|
4
|
-
loginPath?: string;
|
|
5
|
-
exception505?: string;
|
|
6
|
-
exception403?: string;
|
|
7
|
-
iconfontUrl?: string;
|
|
8
|
-
viewUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const setConfig: (config: IComponentConfig) => {
|
|
11
|
-
loginProjectName: string;
|
|
12
|
-
authorization: string;
|
|
13
|
-
loginPath: string;
|
|
14
|
-
exception505: string;
|
|
15
|
-
exception403: string;
|
|
16
|
-
iconfontUrl: string;
|
|
17
|
-
viewUrl: string;
|
|
18
|
-
} & IComponentConfig;
|
|
19
|
-
declare const _default: () => IComponentConfig;
|
|
20
|
-
export default _default;
|
|
1
|
+
interface IComponentConfig {
|
|
2
|
+
loginProjectName?: string;
|
|
3
|
+
authorization?: string;
|
|
4
|
+
loginPath?: string;
|
|
5
|
+
exception505?: string;
|
|
6
|
+
exception403?: string;
|
|
7
|
+
iconfontUrl?: string;
|
|
8
|
+
viewUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const setConfig: (config: IComponentConfig) => {
|
|
11
|
+
loginProjectName: string;
|
|
12
|
+
authorization: string;
|
|
13
|
+
loginPath: string;
|
|
14
|
+
exception505: string;
|
|
15
|
+
exception403: string;
|
|
16
|
+
iconfontUrl: string;
|
|
17
|
+
viewUrl: string;
|
|
18
|
+
} & IComponentConfig;
|
|
19
|
+
declare const _default: () => IComponentConfig;
|
|
20
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "moment/locale/zh-cn";
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
|
4
|
-
export default _default;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "moment/locale/zh-cn";
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
|
4
|
+
export default _default;
|
package/lib/datepick/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
|
3
|
-
export default _default;
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
|
3
|
+
export default _default;
|