nsc-react-component 1.0.23 → 1.0.24
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 +6 -6
- 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 +21 -21
- 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/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 +12 -12
- package/package.json +1 -1
- package/.vscode/launch.json +0 -15
package/lib/form/Form.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import React, { PureComponent } from "react";
|
|
2
|
-
import { FormProps, ModalProps, DrawerProps } from "antd";
|
|
3
|
-
import { FormInstance } from "antd/lib/form";
|
|
4
|
-
interface IFormProps extends FormProps {
|
|
5
|
-
showModel?: "modal" | "drawer";
|
|
6
|
-
modalProps?: ModalProps;
|
|
7
|
-
drawerProps?: DrawerProps;
|
|
8
|
-
url?: string;
|
|
9
|
-
encryptFields?: Array<String>;
|
|
10
|
-
}
|
|
11
|
-
declare class NscForm extends PureComponent<IFormProps> {
|
|
12
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
13
|
-
state: {
|
|
14
|
-
formVisible: boolean;
|
|
15
|
-
formModalProps: {};
|
|
16
|
-
formDrawerProps: {};
|
|
17
|
-
};
|
|
18
|
-
constructor(props: any);
|
|
19
|
-
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
20
|
-
formVisible: any;
|
|
21
|
-
formDrawerProps: any;
|
|
22
|
-
};
|
|
23
|
-
getFieldError(name: any): string[];
|
|
24
|
-
getFieldInstance(name: any): any;
|
|
25
|
-
getFieldsError(): import("rc-field-form/es/interface").FieldError[];
|
|
26
|
-
getFieldsValue(): any;
|
|
27
|
-
getFieldValue(name: any): any;
|
|
28
|
-
isFieldsTouched(): boolean;
|
|
29
|
-
isFieldTouched(name: any): boolean;
|
|
30
|
-
isFieldValidating(name: any): boolean;
|
|
31
|
-
resetFields(): void;
|
|
32
|
-
scrollToField(name: any, options: any): void;
|
|
33
|
-
setFields(filds: any): void;
|
|
34
|
-
setFieldsValue(values: any): void;
|
|
35
|
-
submit(): void;
|
|
36
|
-
onSubmit(url?: string, options?: any, callback?: (res?: any) => void, msg?: boolean): void;
|
|
37
|
-
validateFields(name: any): Promise<any>;
|
|
38
|
-
hideForm(): void;
|
|
39
|
-
showForm(): void;
|
|
40
|
-
cloneElement(item: any, index?: number): string | React.DetailedReactHTMLElement<{
|
|
41
|
-
key: number;
|
|
42
|
-
children: any;
|
|
43
|
-
}, HTMLElement>;
|
|
44
|
-
renderPanel(newChildren: any, props: any): JSX.Element;
|
|
45
|
-
render(): JSX.Element;
|
|
46
|
-
}
|
|
47
|
-
export default NscForm;
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { FormProps, ModalProps, DrawerProps } from "antd";
|
|
3
|
+
import { FormInstance } from "antd/lib/form";
|
|
4
|
+
interface IFormProps extends FormProps {
|
|
5
|
+
showModel?: "modal" | "drawer";
|
|
6
|
+
modalProps?: ModalProps;
|
|
7
|
+
drawerProps?: DrawerProps;
|
|
8
|
+
url?: string;
|
|
9
|
+
encryptFields?: Array<String>;
|
|
10
|
+
}
|
|
11
|
+
declare class NscForm extends PureComponent<IFormProps> {
|
|
12
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
13
|
+
state: {
|
|
14
|
+
formVisible: boolean;
|
|
15
|
+
formModalProps: {};
|
|
16
|
+
formDrawerProps: {};
|
|
17
|
+
};
|
|
18
|
+
constructor(props: any);
|
|
19
|
+
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
20
|
+
formVisible: any;
|
|
21
|
+
formDrawerProps: any;
|
|
22
|
+
};
|
|
23
|
+
getFieldError(name: any): string[];
|
|
24
|
+
getFieldInstance(name: any): any;
|
|
25
|
+
getFieldsError(): import("rc-field-form/es/interface").FieldError[];
|
|
26
|
+
getFieldsValue(): any;
|
|
27
|
+
getFieldValue(name: any): any;
|
|
28
|
+
isFieldsTouched(): boolean;
|
|
29
|
+
isFieldTouched(name: any): boolean;
|
|
30
|
+
isFieldValidating(name: any): boolean;
|
|
31
|
+
resetFields(): void;
|
|
32
|
+
scrollToField(name: any, options: any): void;
|
|
33
|
+
setFields(filds: any): void;
|
|
34
|
+
setFieldsValue(values: any): void;
|
|
35
|
+
submit(): void;
|
|
36
|
+
onSubmit(url?: string, options?: any, callback?: (res?: any) => void, msg?: boolean): void;
|
|
37
|
+
validateFields(name: any): Promise<any>;
|
|
38
|
+
hideForm(): void;
|
|
39
|
+
showForm(): void;
|
|
40
|
+
cloneElement(item: any, index?: number): string | React.DetailedReactHTMLElement<{
|
|
41
|
+
key: number;
|
|
42
|
+
children: any;
|
|
43
|
+
}, HTMLElement>;
|
|
44
|
+
renderPanel(newChildren: any, props: any): JSX.Element;
|
|
45
|
+
render(): JSX.Element;
|
|
46
|
+
}
|
|
47
|
+
export default NscForm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormCascader extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormCascader;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormCascader extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormCascader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormCheckbox extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormCheckbox;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormCheckbox extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormCheckbox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormDatePicker extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormDatePicker;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormDatePicker extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormDatePicker;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { FormItemProps } from "antd";
|
|
3
|
-
interface IFormProps extends FormItemProps {
|
|
4
|
-
message?: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
[propName: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export default class NSCFormItem extends PureComponent<IFormProps> {
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { FormItemProps } from "antd";
|
|
3
|
+
interface IFormProps extends FormItemProps {
|
|
4
|
+
message?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
[propName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export default class NSCFormItem extends PureComponent<IFormProps> {
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormInput extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormInput;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormInput extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormInputEmail extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormInputEmail;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormInputEmail extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormInputEmail;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormInputNumber extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormInputNumber;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormInputNumber extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormInputNumber;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormInputPassword extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormInputPassword;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormInputPassword extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormInputPassword;
|
package/lib/form/filed/Item.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { FormItemProps } from "antd";
|
|
3
|
-
interface enctry {
|
|
4
|
-
type?: "sm2" | "sm4" | "base64" | "md5";
|
|
5
|
-
key?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IFormProps extends FormItemProps {
|
|
8
|
-
message?: string;
|
|
9
|
-
type?: any;
|
|
10
|
-
encrypt?: enctry | boolean;
|
|
11
|
-
decrypt?: enctry | boolean;
|
|
12
|
-
[propName: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export default class NSCFormItem extends PureComponent<IFormProps> {
|
|
15
|
-
/**
|
|
16
|
-
* 自定义渲染组件
|
|
17
|
-
*/
|
|
18
|
-
getFieldComponent(itemProps: any, props: any): JSX.Element;
|
|
19
|
-
render(): JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { FormItemProps } from "antd";
|
|
3
|
+
interface enctry {
|
|
4
|
+
type?: "sm2" | "sm4" | "base64" | "md5";
|
|
5
|
+
key?: string;
|
|
6
|
+
}
|
|
7
|
+
interface IFormProps extends FormItemProps {
|
|
8
|
+
message?: string;
|
|
9
|
+
type?: any;
|
|
10
|
+
encrypt?: enctry | boolean;
|
|
11
|
+
decrypt?: enctry | boolean;
|
|
12
|
+
[propName: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export default class NSCFormItem extends PureComponent<IFormProps> {
|
|
15
|
+
/**
|
|
16
|
+
* 自定义渲染组件
|
|
17
|
+
*/
|
|
18
|
+
getFieldComponent(itemProps: any, props: any): JSX.Element;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormRadio extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormRadio;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormRadio extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormRadio;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormRangePicker extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormRangePicker;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormRangePicker extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormRangePicker;
|
package/lib/form/filed/Rate.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormRate extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormRate;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormRate extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormRate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormSelect extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormSelect;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormSelect extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormSlider extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormSlider;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormSlider extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormSlider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormSwitch extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormSwitch;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormSwitch extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormSwitch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscTagSelect extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscTagSelect;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscTagSelect extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscTagSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormTextArea extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormTextArea;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormTextArea extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormTextArea;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import NscFormItem from "./Item";
|
|
3
|
-
declare class NscFormUpload extends NscFormItem {
|
|
4
|
-
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
-
}
|
|
6
|
-
export default NscFormUpload;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import NscFormItem from "./Item";
|
|
3
|
+
declare class NscFormUpload extends NscFormItem {
|
|
4
|
+
getFieldComponent(fieldProps: any): JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export default NscFormUpload;
|
package/lib/form/index.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Input from "./filed/Input";
|
|
3
|
-
import InputNumber from "./filed/InputNumber";
|
|
4
|
-
import InputPassword from "./filed/InputPassword";
|
|
5
|
-
import InputEmail from "./filed/InputEamil";
|
|
6
|
-
import Item from "./filed/FormItem";
|
|
7
|
-
import NewForm from "./Form";
|
|
8
|
-
import Select from "./filed/Select";
|
|
9
|
-
import Cascader from "./filed/Cascader";
|
|
10
|
-
import Checkbox from "./filed/Checkbox";
|
|
11
|
-
import Radio from "./filed/Radio";
|
|
12
|
-
import Rate from "./filed/Rate";
|
|
13
|
-
import Switch from "./filed/Switch";
|
|
14
|
-
import Slider from "./filed/Slider";
|
|
15
|
-
import DatePicker from "./filed/DatePicker";
|
|
16
|
-
import Upload from "./filed/Upload";
|
|
17
|
-
import RangePicker from "./filed/RangerPicker";
|
|
18
|
-
import TextArea from "./filed/TextArea";
|
|
19
|
-
import TagSelect from "./filed/TagSelect";
|
|
20
|
-
declare class NSCForm extends NewForm {
|
|
21
|
-
static Item: typeof Item;
|
|
22
|
-
static useForm: typeof import("antd/lib/form/Form").useForm;
|
|
23
|
-
static List: import("react").FC<import("antd/lib/form").FormListProps>;
|
|
24
|
-
static Input: typeof Input;
|
|
25
|
-
static InputNumber: typeof InputNumber;
|
|
26
|
-
static InputPassword: typeof InputPassword;
|
|
27
|
-
static InputEmail: typeof InputEmail;
|
|
28
|
-
static TextArea: typeof TextArea;
|
|
29
|
-
static Select: typeof Select;
|
|
30
|
-
static Cascader: typeof Cascader;
|
|
31
|
-
static Checkbox: typeof Checkbox;
|
|
32
|
-
static Radio: typeof Radio;
|
|
33
|
-
static Rate: typeof Rate;
|
|
34
|
-
static Switch: typeof Switch;
|
|
35
|
-
static Slider: typeof Slider;
|
|
36
|
-
static DatePicker: typeof DatePicker;
|
|
37
|
-
static Upload: typeof Upload;
|
|
38
|
-
static RangePicker: typeof RangePicker;
|
|
39
|
-
static TagSelect: typeof TagSelect;
|
|
40
|
-
}
|
|
41
|
-
export default NSCForm;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Input from "./filed/Input";
|
|
3
|
+
import InputNumber from "./filed/InputNumber";
|
|
4
|
+
import InputPassword from "./filed/InputPassword";
|
|
5
|
+
import InputEmail from "./filed/InputEamil";
|
|
6
|
+
import Item from "./filed/FormItem";
|
|
7
|
+
import NewForm from "./Form";
|
|
8
|
+
import Select from "./filed/Select";
|
|
9
|
+
import Cascader from "./filed/Cascader";
|
|
10
|
+
import Checkbox from "./filed/Checkbox";
|
|
11
|
+
import Radio from "./filed/Radio";
|
|
12
|
+
import Rate from "./filed/Rate";
|
|
13
|
+
import Switch from "./filed/Switch";
|
|
14
|
+
import Slider from "./filed/Slider";
|
|
15
|
+
import DatePicker from "./filed/DatePicker";
|
|
16
|
+
import Upload from "./filed/Upload";
|
|
17
|
+
import RangePicker from "./filed/RangerPicker";
|
|
18
|
+
import TextArea from "./filed/TextArea";
|
|
19
|
+
import TagSelect from "./filed/TagSelect";
|
|
20
|
+
declare class NSCForm extends NewForm {
|
|
21
|
+
static Item: typeof Item;
|
|
22
|
+
static useForm: typeof import("antd/lib/form/Form").useForm;
|
|
23
|
+
static List: import("react").FC<import("antd/lib/form").FormListProps>;
|
|
24
|
+
static Input: typeof Input;
|
|
25
|
+
static InputNumber: typeof InputNumber;
|
|
26
|
+
static InputPassword: typeof InputPassword;
|
|
27
|
+
static InputEmail: typeof InputEmail;
|
|
28
|
+
static TextArea: typeof TextArea;
|
|
29
|
+
static Select: typeof Select;
|
|
30
|
+
static Cascader: typeof Cascader;
|
|
31
|
+
static Checkbox: typeof Checkbox;
|
|
32
|
+
static Radio: typeof Radio;
|
|
33
|
+
static Rate: typeof Rate;
|
|
34
|
+
static Switch: typeof Switch;
|
|
35
|
+
static Slider: typeof Slider;
|
|
36
|
+
static DatePicker: typeof DatePicker;
|
|
37
|
+
static Upload: typeof Upload;
|
|
38
|
+
static RangePicker: typeof RangePicker;
|
|
39
|
+
static TagSelect: typeof TagSelect;
|
|
40
|
+
}
|
|
41
|
+
export default NSCForm;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export { default as Button } from "./button";
|
|
2
|
-
export { default as Cascader } from "./cascader";
|
|
3
|
-
export { default as Checkbox } from "./checkbox";
|
|
4
|
-
export { default as BodyRow } from "./common/BodyRow";
|
|
5
|
-
export { default as Icon } from "./common/Icon";
|
|
6
|
-
export { default as TreePanel } from "./common/TreePanel";
|
|
7
|
-
export { default as DatePicker } from "./datepick";
|
|
8
|
-
export { default as Form } from "./form";
|
|
9
|
-
export { default as Input } from "./input";
|
|
10
|
-
export { default as Menu } from "./menu";
|
|
11
|
-
export { default as Radio } from "./radio";
|
|
12
|
-
export { default as Select } from "./select";
|
|
13
|
-
export { default as Table } from "./table";
|
|
14
|
-
export { DndContextType, IBodyRowProps, INSCTableProps } from "./table";
|
|
15
|
-
export { default as Tabs } from "./tabs";
|
|
16
|
-
export { default as Tree } from "./tree";
|
|
17
|
-
export { NscTreeProps, Store, StoreConfigType } from "./tree";
|
|
18
|
-
export { default as getDefaultConfig, setConfig } from "./config";
|
|
19
|
-
export { default as TagSelect } from "./tagSelect";
|
|
20
|
-
export { default as NoData } from "./common/NoData";
|
|
21
|
-
export { default as NoMessage } from "./common/NoMessage";
|
|
22
|
-
export { default as NoNetWork } from "./common/NoNetWork";
|
|
23
|
-
export { default as Page404 } from "./common/Page404";
|
|
24
|
-
export { default as NoAuthority } from "./common/NoAuthority";
|
|
25
|
-
export { default as RangePicker } from "./datepick/Rangepicker";
|
|
26
|
-
export type { default as InputEamilInstance } from "./input/Email";
|
|
1
|
+
export { default as Button } from "./button";
|
|
2
|
+
export { default as Cascader } from "./cascader";
|
|
3
|
+
export { default as Checkbox } from "./checkbox";
|
|
4
|
+
export { default as BodyRow } from "./common/BodyRow";
|
|
5
|
+
export { default as Icon } from "./common/Icon";
|
|
6
|
+
export { default as TreePanel } from "./common/TreePanel";
|
|
7
|
+
export { default as DatePicker } from "./datepick";
|
|
8
|
+
export { default as Form } from "./form";
|
|
9
|
+
export { default as Input } from "./input";
|
|
10
|
+
export { default as Menu } from "./menu";
|
|
11
|
+
export { default as Radio } from "./radio";
|
|
12
|
+
export { default as Select } from "./select";
|
|
13
|
+
export { default as Table } from "./table";
|
|
14
|
+
export { DndContextType, IBodyRowProps, INSCTableProps } from "./table";
|
|
15
|
+
export { default as Tabs } from "./tabs";
|
|
16
|
+
export { default as Tree } from "./tree";
|
|
17
|
+
export { NscTreeProps, Store, StoreConfigType } from "./tree";
|
|
18
|
+
export { default as getDefaultConfig, setConfig } from "./config";
|
|
19
|
+
export { default as TagSelect } from "./tagSelect";
|
|
20
|
+
export { default as NoData } from "./common/NoData";
|
|
21
|
+
export { default as NoMessage } from "./common/NoMessage";
|
|
22
|
+
export { default as NoNetWork } from "./common/NoNetWork";
|
|
23
|
+
export { default as Page404 } from "./common/Page404";
|
|
24
|
+
export { default as NoAuthority } from "./common/NoAuthority";
|
|
25
|
+
export { default as RangePicker } from "./datepick/Rangepicker";
|
|
26
|
+
export type { default as InputEamilInstance } from "./input/Email";
|
package/lib/input/Email.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { PureComponent } from "react";
|
|
2
|
-
import { AutoCompleteProps } from "antd";
|
|
3
|
-
export interface IEmail extends AutoCompleteProps {
|
|
4
|
-
emails?: Array<string>;
|
|
5
|
-
[propName: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export default class InputEmail extends PureComponent<IEmail> {
|
|
8
|
-
state: {
|
|
9
|
-
result: any[];
|
|
10
|
-
value: string;
|
|
11
|
-
};
|
|
12
|
-
constructor(props: any);
|
|
13
|
-
onChange(value: any, options: any): void;
|
|
14
|
-
handleSearch: (value: string) => void;
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
|
1
|
+
import { PureComponent } from "react";
|
|
2
|
+
import { AutoCompleteProps } from "antd";
|
|
3
|
+
export interface IEmail extends AutoCompleteProps {
|
|
4
|
+
emails?: Array<string>;
|
|
5
|
+
[propName: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export default class InputEmail extends PureComponent<IEmail> {
|
|
8
|
+
state: {
|
|
9
|
+
result: any[];
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
constructor(props: any);
|
|
13
|
+
onChange(value: any, options: any): void;
|
|
14
|
+
handleSearch: (value: string) => void;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
package/lib/input/Number.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { PureComponent } from "react";
|
|
2
|
-
import { InputNumberProps } from "antd";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
interface IInputNumberProps extends InputNumberProps {
|
|
5
|
-
}
|
|
6
|
-
export default class NSCInputNumber extends PureComponent<IInputNumberProps> {
|
|
7
|
-
ref: React.RefObject<any>;
|
|
8
|
-
constructor(props: any);
|
|
9
|
-
focus(): void;
|
|
10
|
-
blur(): void;
|
|
11
|
-
render(): JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { InputNumberProps } from "antd";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
interface IInputNumberProps extends InputNumberProps {
|
|
5
|
+
}
|
|
6
|
+
export default class NSCInputNumber extends PureComponent<IInputNumberProps> {
|
|
7
|
+
ref: React.RefObject<any>;
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
focus(): void;
|
|
10
|
+
blur(): void;
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/lib/input/Password.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React, { PureComponent } from "react";
|
|
2
|
-
import { encrypt } from "../Interface";
|
|
3
|
-
interface IInputProps {
|
|
4
|
-
encrypt?: encrypt | boolean;
|
|
5
|
-
decrypt?: encrypt | boolean;
|
|
6
|
-
[propName: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export default class NSCInputPassword extends PureComponent<IInputProps> {
|
|
9
|
-
constructor(props: any);
|
|
10
|
-
ref: React.RefObject<any>;
|
|
11
|
-
onChange(e: any): void;
|
|
12
|
-
focus(): void;
|
|
13
|
-
blur(): void;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { encrypt } from "../Interface";
|
|
3
|
+
interface IInputProps {
|
|
4
|
+
encrypt?: encrypt | boolean;
|
|
5
|
+
decrypt?: encrypt | boolean;
|
|
6
|
+
[propName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export default class NSCInputPassword extends PureComponent<IInputProps> {
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
ref: React.RefObject<any>;
|
|
11
|
+
onChange(e: any): void;
|
|
12
|
+
focus(): void;
|
|
13
|
+
blur(): void;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|