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.
Files changed (61) hide show
  1. package/lib/Interface.d.ts +4 -4
  2. package/lib/button/index.d.ts +27 -27
  3. package/lib/cascader/index.d.ts +27 -27
  4. package/lib/checkbox/CheckboxGroup.d.ts +22 -22
  5. package/lib/checkbox/index.d.ts +8 -8
  6. package/lib/common/BodyRow/index.d.ts +26 -26
  7. package/lib/common/Icon.d.ts +14 -14
  8. package/lib/common/IconFont.d.ts +4 -4
  9. package/lib/common/NoAuthority.d.ts +4 -4
  10. package/lib/common/NoData.d.ts +4 -4
  11. package/lib/common/NoMessage.d.ts +4 -4
  12. package/lib/common/NoNetWork.d.ts +4 -4
  13. package/lib/common/Page404.d.ts +4 -4
  14. package/lib/common/PageRequest.d.ts +45 -45
  15. package/lib/common/TreePanel.d.ts +74 -74
  16. package/lib/common/withZhLocale.d.ts +3 -3
  17. package/lib/config.d.ts +20 -20
  18. package/lib/datepick/Rangepicker.d.ts +4 -4
  19. package/lib/datepick/index.d.ts +3 -3
  20. package/lib/form/Form.d.ts +47 -47
  21. package/lib/form/filed/Cascader.d.ts +6 -6
  22. package/lib/form/filed/Checkbox.d.ts +6 -6
  23. package/lib/form/filed/DatePicker.d.ts +6 -6
  24. package/lib/form/filed/FormItem.d.ts +11 -11
  25. package/lib/form/filed/Input.d.ts +6 -6
  26. package/lib/form/filed/InputEamil.d.ts +6 -6
  27. package/lib/form/filed/InputNumber.d.ts +6 -6
  28. package/lib/form/filed/InputPassword.d.ts +6 -6
  29. package/lib/form/filed/Item.d.ts +21 -21
  30. package/lib/form/filed/Radio.d.ts +6 -6
  31. package/lib/form/filed/RangerPicker.d.ts +6 -6
  32. package/lib/form/filed/Rate.d.ts +6 -6
  33. package/lib/form/filed/Select.d.ts +6 -6
  34. package/lib/form/filed/Slider.d.ts +6 -6
  35. package/lib/form/filed/Switch.d.ts +6 -6
  36. package/lib/form/filed/TagSelect.d.ts +6 -6
  37. package/lib/form/filed/TextArea.d.ts +6 -6
  38. package/lib/form/filed/Upload.d.ts +6 -6
  39. package/lib/form/index.d.ts +41 -41
  40. package/lib/index.d.ts +26 -26
  41. package/lib/input/Email.d.ts +16 -16
  42. package/lib/input/Number.d.ts +13 -13
  43. package/lib/input/Password.d.ts +16 -16
  44. package/lib/input/Search.d.ts +16 -16
  45. package/lib/input/TextArea.d.ts +16 -16
  46. package/lib/input/index.d.ts +33 -33
  47. package/lib/menu/index.d.ts +28 -28
  48. package/lib/radio/RadioGroup.d.ts +25 -25
  49. package/lib/radio/index.d.ts +11 -11
  50. package/lib/select/index.d.ts +29 -29
  51. package/lib/table/index.d.ts +87 -87
  52. package/lib/tabs/Tabpane.d.ts +13 -13
  53. package/lib/tabs/index.d.ts +18 -18
  54. package/lib/tagSelect/TagSelect.d.ts +51 -51
  55. package/lib/tagSelect/index.d.ts +23 -23
  56. package/lib/tree/TreeSearch.d.ts +42 -42
  57. package/lib/tree/index.d.ts +62 -62
  58. package/lib/treeUtils.d.ts +70 -70
  59. package/lib/utils.d.ts +12 -12
  60. package/package.json +1 -1
  61. package/.vscode/launch.json +0 -15
@@ -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 NSCInputSearch 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 NSCInputSearch 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,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 {};
@@ -1,33 +1,33 @@
1
- import React, { PureComponent } from "react";
2
- import InputEmail from "./Email";
3
- import Password from "./Password";
4
- import TextArea from "./TextArea";
5
- import Search from "./Search";
6
- import InputNumber from "./Number";
7
- interface IInputProps {
8
- type?: "number" | "email" | "password" | "textarea" | "text";
9
- onChange?: (value: any, target?: any) => void;
10
- defaultStyle?: boolean;
11
- allowChars?: boolean;
12
- maxLength?: number | boolean;
13
- [proName: string]: any;
14
- }
15
- export default class NscInput extends PureComponent<IInputProps, any> {
16
- static Number: typeof InputNumber;
17
- static Email: typeof InputEmail;
18
- static Password: typeof Password;
19
- static TextArea: typeof TextArea;
20
- static Group: React.FC<import("antd/lib/input").GroupProps>;
21
- static Search: typeof Search;
22
- ref: React.RefObject<any>;
23
- constructor(props: any);
24
- state: {
25
- value: string;
26
- };
27
- onChange(e: any): void;
28
- focus(): void;
29
- blur(): void;
30
- returnChildren(): JSX.Element;
31
- render(): JSX.Element;
32
- }
33
- export {};
1
+ import React, { PureComponent } from "react";
2
+ import InputEmail from "./Email";
3
+ import Password from "./Password";
4
+ import TextArea from "./TextArea";
5
+ import Search from "./Search";
6
+ import InputNumber from "./Number";
7
+ interface IInputProps {
8
+ type?: "number" | "email" | "password" | "textarea" | "text";
9
+ onChange?: (value: any, target?: any) => void;
10
+ defaultStyle?: boolean;
11
+ allowChars?: boolean;
12
+ maxLength?: number | boolean;
13
+ [proName: string]: any;
14
+ }
15
+ export default class NscInput extends PureComponent<IInputProps, any> {
16
+ static Number: typeof InputNumber;
17
+ static Email: typeof InputEmail;
18
+ static Password: typeof Password;
19
+ static TextArea: typeof TextArea;
20
+ static Group: React.FC<import("antd/lib/input").GroupProps>;
21
+ static Search: typeof Search;
22
+ ref: React.RefObject<any>;
23
+ constructor(props: any);
24
+ state: {
25
+ value: string;
26
+ };
27
+ onChange(e: any): void;
28
+ focus(): void;
29
+ blur(): void;
30
+ returnChildren(): JSX.Element;
31
+ render(): JSX.Element;
32
+ }
33
+ export {};
@@ -1,28 +1,28 @@
1
- import { PureComponent } from "react";
2
- import { MenuProps } from "antd";
3
- import { StoreProps } from "@bj-nsc/msn";
4
- interface IMenuProps extends MenuProps {
5
- data?: Array<object>;
6
- titleField?: string;
7
- keyField?: string;
8
- store?: StoreProps;
9
- showIcon?: boolean;
10
- }
11
- export default class NSCMenu extends PureComponent<IMenuProps> {
12
- static SubMenu: typeof import("antd/lib/menu/SubMenu").default;
13
- static Item: typeof import("antd/lib/menu/MenuItem").default;
14
- static ItemGroup: typeof import("rc-menu").MenuItemGroup;
15
- state: {
16
- dataSource: any[];
17
- };
18
- store: any;
19
- static getDerivedStateFromProps(nextProps: any, prevState: any): {
20
- dataSource: any;
21
- };
22
- constructor(props: any);
23
- componentDidMount(): void;
24
- renderMenuItem: (menusData: any) => JSX.Element[];
25
- renderChildren: () => JSX.Element | JSX.Element[];
26
- render(): JSX.Element;
27
- }
28
- export {};
1
+ import { PureComponent } from "react";
2
+ import { MenuProps } from "antd";
3
+ import { StoreProps } from "@bj-nsc/msn";
4
+ interface IMenuProps extends MenuProps {
5
+ data?: Array<object>;
6
+ titleField?: string;
7
+ keyField?: string;
8
+ store?: StoreProps;
9
+ showIcon?: boolean;
10
+ }
11
+ export default class NSCMenu extends PureComponent<IMenuProps> {
12
+ static SubMenu: typeof import("antd/lib/menu/SubMenu").default;
13
+ static Item: typeof import("antd/lib/menu/MenuItem").default;
14
+ static ItemGroup: typeof import("rc-menu").MenuItemGroup;
15
+ state: {
16
+ dataSource: any[];
17
+ };
18
+ store: any;
19
+ static getDerivedStateFromProps(nextProps: any, prevState: any): {
20
+ dataSource: any;
21
+ };
22
+ constructor(props: any);
23
+ componentDidMount(): void;
24
+ renderMenuItem: (menusData: any) => JSX.Element[];
25
+ renderChildren: () => JSX.Element | JSX.Element[];
26
+ render(): JSX.Element;
27
+ }
28
+ export {};
@@ -1,25 +1,25 @@
1
- import { Component } from "react";
2
- import { RadioGroupProps } from "antd";
3
- import { StoreProps } from "@bj-nsc/msn";
4
- interface IRadioGroupProps extends RadioGroupProps {
5
- customize?: boolean;
6
- store?: StoreProps;
7
- data?: Array<string | Object>;
8
- labelField?: string;
9
- valueField?: string;
10
- onChange?: (value: any, e?: any) => void;
11
- }
12
- export default class RadioGroup extends Component<IRadioGroupProps> {
13
- state: {
14
- dataSource: any[];
15
- dataStore: any[];
16
- };
17
- store: any;
18
- constructor(props: any);
19
- handleActiveChange(e: any): void;
20
- convertData(data: any): any[];
21
- componentDidMount(): void;
22
- componentDidUpdate(): void;
23
- render(): any;
24
- }
25
- export {};
1
+ import { Component } from "react";
2
+ import { RadioGroupProps } from "antd";
3
+ import { StoreProps } from "@bj-nsc/msn";
4
+ interface IRadioGroupProps extends RadioGroupProps {
5
+ customize?: boolean;
6
+ store?: StoreProps;
7
+ data?: Array<string | Object>;
8
+ labelField?: string;
9
+ valueField?: string;
10
+ onChange?: (value: any, e?: any) => void;
11
+ }
12
+ export default class RadioGroup extends Component<IRadioGroupProps> {
13
+ state: {
14
+ dataSource: any[];
15
+ dataStore: any[];
16
+ };
17
+ store: any;
18
+ constructor(props: any);
19
+ handleActiveChange(e: any): void;
20
+ convertData(data: any): any[];
21
+ componentDidMount(): void;
22
+ componentDidUpdate(): void;
23
+ render(): any;
24
+ }
25
+ export {};
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { RadioProps } from "antd";
3
- import RadioGroup from "./RadioGroup";
4
- interface IRadioProps extends RadioProps {
5
- }
6
- export default class NscRadio extends React.PureComponent<IRadioProps> {
7
- static Group: typeof RadioGroup;
8
- static Button: React.ForwardRefExoticComponent<import("antd/lib/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
9
- render(): JSX.Element;
10
- }
11
- export {};
1
+ import * as React from "react";
2
+ import { RadioProps } from "antd";
3
+ import RadioGroup from "./RadioGroup";
4
+ interface IRadioProps extends RadioProps {
5
+ }
6
+ export default class NscRadio extends React.PureComponent<IRadioProps> {
7
+ static Group: typeof RadioGroup;
8
+ static Button: React.ForwardRefExoticComponent<import("antd/lib/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
9
+ render(): JSX.Element;
10
+ }
11
+ export {};
@@ -1,29 +1,29 @@
1
- import { PureComponent } from "react";
2
- import { SelectProps } from "antd";
3
- import { StoreProps } from "@bj-nsc/msn";
4
- interface ISelectProps extends SelectProps<any> {
5
- store?: StoreProps;
6
- data?: Array<Object>;
7
- labelField?: string;
8
- valueField?: string;
9
- defaultStyle?: boolean;
10
- }
11
- export default class NSCSelect extends PureComponent<ISelectProps> {
12
- static Option: import("rc-select/lib/Option").OptionFC;
13
- static OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
14
- state: {
15
- dataSource: any[];
16
- };
17
- store: any;
18
- static getDerivedStateFromProps(nextProps: any, prevState: any): {
19
- dataSource: any;
20
- };
21
- constructor(props: any);
22
- getData(): any[];
23
- componentDidMount(): void;
24
- renderOption(optionData: any): any;
25
- renderChildren(): JSX.Element;
26
- onChange(value: any, options: any): void;
27
- render(): JSX.Element;
28
- }
29
- export {};
1
+ import { PureComponent } from "react";
2
+ import { SelectProps } from "antd";
3
+ import { StoreProps } from "@bj-nsc/msn";
4
+ interface ISelectProps extends SelectProps<any> {
5
+ store?: StoreProps;
6
+ data?: Array<Object>;
7
+ labelField?: string;
8
+ valueField?: string;
9
+ defaultStyle?: boolean;
10
+ }
11
+ export default class NSCSelect extends PureComponent<ISelectProps> {
12
+ static Option: import("rc-select/lib/Option").OptionFC;
13
+ static OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
14
+ state: {
15
+ dataSource: any[];
16
+ };
17
+ store: any;
18
+ static getDerivedStateFromProps(nextProps: any, prevState: any): {
19
+ dataSource: any;
20
+ };
21
+ constructor(props: any);
22
+ getData(): any[];
23
+ componentDidMount(): void;
24
+ renderOption(optionData: any): any;
25
+ renderChildren(): JSX.Element;
26
+ onChange(value: any, options: any): void;
27
+ render(): JSX.Element;
28
+ }
29
+ export {};
@@ -1,87 +1,87 @@
1
- import { StoreProps } from "@bj-nsc/msn";
2
- import { TableProps } from "antd";
3
- import { TablePaginationConfig } from "antd/lib/table";
4
- import * as React from "react";
5
- import { DndContextType, IBodyRowProps } from "../common/BodyRow";
6
- interface IDragParams {
7
- id: string | number;
8
- ids: Array<string | number>;
9
- parentId: string | number;
10
- }
11
- export declare type StoreType = "PageStore" | "TreeStore" | "BaseStore";
12
- interface NSCTablePagination extends TablePaginationConfig {
13
- totalKey?: string;
14
- pageSizeKey?: string;
15
- currentKey?: string;
16
- }
17
- interface NSCTableProps extends TableProps<any> {
18
- store?: StoreProps;
19
- showTotal?: boolean;
20
- disableColumns?: string[];
21
- dragable?: boolean;
22
- filterColumn?: boolean;
23
- moveRow?: (params: IDragParams) => void;
24
- dragUrl?: string;
25
- pagination?: false | NSCTablePagination;
26
- autoPagination?: boolean;
27
- autoSort?: boolean;
28
- autoOnChange?: boolean;
29
- }
30
- export declare type INSCTableProps = typeof NSCTable.defaultProps & NSCTableProps;
31
- export { DndContextType, IBodyRowProps };
32
- declare class NSCTable extends React.Component<INSCTableProps> {
33
- static defaultProps: {
34
- disableColumns: any[];
35
- dragable: boolean;
36
- showTotal: boolean;
37
- filterColumn: boolean;
38
- dragUrl: string;
39
- autoPagination: boolean;
40
- autoSort: boolean;
41
- autoOnChange: boolean;
42
- };
43
- store: any;
44
- thIconRef: React.RefObject<HTMLDivElement>;
45
- state: {
46
- dataSource: any[];
47
- columns: any[];
48
- loading: boolean;
49
- pagination: {};
50
- activeIndex: number;
51
- searchText: any;
52
- fieldOption: any;
53
- searchColor: any;
54
- };
55
- listeners: {
56
- onBeforeLoad: any;
57
- load: any;
58
- };
59
- constructor(props: any);
60
- componentDidMount(): void;
61
- componentDidUpdate(prevProps: any): void;
62
- /**
63
- * 清除选中颜色
64
- */
65
- clearSelectColor(): this;
66
- getPaginationByStore(): any;
67
- onChange(pagination: any, filters: any, sorter: any, extra: any): void;
68
- getStore(): any;
69
- /**
70
- * 获取数据模型对象
71
- */
72
- getModel(): any;
73
- /**
74
- * 菜单搜索过滤显示
75
- * @param {String} val
76
- */
77
- handleSearch(val: any, fieldOption: any, searchColor: any): void;
78
- /**
79
- * 模块列表移动排序
80
- */
81
- moveRow: (dragIndex: any, hoverIndex: any, drag: any, target: any) => void;
82
- filterColumn(checkedValue: any): void;
83
- getColumns(): any[];
84
- render(): JSX.Element;
85
- }
86
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
87
- export default _default;
1
+ import { StoreProps } from "@bj-nsc/msn";
2
+ import { TableProps } from "antd";
3
+ import { TablePaginationConfig } from "antd/lib/table";
4
+ import * as React from "react";
5
+ import { DndContextType, IBodyRowProps } from "../common/BodyRow";
6
+ interface IDragParams {
7
+ id: string | number;
8
+ ids: Array<string | number>;
9
+ parentId: string | number;
10
+ }
11
+ export declare type StoreType = "PageStore" | "TreeStore" | "BaseStore";
12
+ interface NSCTablePagination extends TablePaginationConfig {
13
+ totalKey?: string;
14
+ pageSizeKey?: string;
15
+ currentKey?: string;
16
+ }
17
+ interface NSCTableProps extends TableProps<any> {
18
+ store?: StoreProps;
19
+ showTotal?: boolean;
20
+ disableColumns?: string[];
21
+ dragable?: boolean;
22
+ filterColumn?: boolean;
23
+ moveRow?: (params: IDragParams) => void;
24
+ dragUrl?: string;
25
+ pagination?: false | NSCTablePagination;
26
+ autoPagination?: boolean;
27
+ autoSort?: boolean;
28
+ autoOnChange?: boolean;
29
+ }
30
+ export declare type INSCTableProps = typeof NSCTable.defaultProps & NSCTableProps;
31
+ export { DndContextType, IBodyRowProps };
32
+ declare class NSCTable extends React.Component<INSCTableProps> {
33
+ static defaultProps: {
34
+ disableColumns: any[];
35
+ dragable: boolean;
36
+ showTotal: boolean;
37
+ filterColumn: boolean;
38
+ dragUrl: string;
39
+ autoPagination: boolean;
40
+ autoSort: boolean;
41
+ autoOnChange: boolean;
42
+ };
43
+ store: any;
44
+ thIconRef: React.RefObject<HTMLDivElement>;
45
+ state: {
46
+ dataSource: any[];
47
+ columns: any[];
48
+ loading: boolean;
49
+ pagination: {};
50
+ activeIndex: number;
51
+ searchText: any;
52
+ fieldOption: any;
53
+ searchColor: any;
54
+ };
55
+ listeners: {
56
+ onBeforeLoad: any;
57
+ load: any;
58
+ };
59
+ constructor(props: any);
60
+ componentDidMount(): void;
61
+ componentDidUpdate(prevProps: any): void;
62
+ /**
63
+ * 清除选中颜色
64
+ */
65
+ clearSelectColor(): this;
66
+ getPaginationByStore(): any;
67
+ onChange(pagination: any, filters: any, sorter: any, extra: any): void;
68
+ getStore(): any;
69
+ /**
70
+ * 获取数据模型对象
71
+ */
72
+ getModel(): any;
73
+ /**
74
+ * 菜单搜索过滤显示
75
+ * @param {String} val
76
+ */
77
+ handleSearch(val: any, fieldOption: any, searchColor: any): void;
78
+ /**
79
+ * 模块列表移动排序
80
+ */
81
+ moveRow: (dragIndex: any, hoverIndex: any, drag: any, target: any) => void;
82
+ filterColumn(checkedValue: any): void;
83
+ getColumns(): any[];
84
+ render(): JSX.Element;
85
+ }
86
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
87
+ export default _default;
@@ -1,13 +1,13 @@
1
- import * as React from "react";
2
- import { TabPaneProps } from "antd";
3
- /**
4
- * @param {*} value 原TabPane key 属性, 封装后key无法接收,改为value传递
5
- * @param {boolean} showMenu 是否显示右键点击菜单 默认ture
6
- */
7
- interface ITabPaneProps extends TabPaneProps {
8
- showMenu?: boolean;
9
- }
10
- export default class NscTabPane extends React.PureComponent<ITabPaneProps> {
11
- render(): JSX.Element;
12
- }
13
- export {};
1
+ import * as React from "react";
2
+ import { TabPaneProps } from "antd";
3
+ /**
4
+ * @param {*} value 原TabPane key 属性, 封装后key无法接收,改为value传递
5
+ * @param {boolean} showMenu 是否显示右键点击菜单 默认ture
6
+ */
7
+ interface ITabPaneProps extends TabPaneProps {
8
+ showMenu?: boolean;
9
+ }
10
+ export default class NscTabPane extends React.PureComponent<ITabPaneProps> {
11
+ render(): JSX.Element;
12
+ }
13
+ export {};
@@ -1,18 +1,18 @@
1
- import * as React from "react";
2
- import TabPane from "./Tabpane";
3
- interface ITabsProps {
4
- OncontextMenu?: boolean;
5
- contextMenu?: Array<{
6
- text?: string;
7
- key?: string;
8
- onClick?: void;
9
- }>;
10
- [propName: string]: any;
11
- }
12
- export default class NscTabs extends React.PureComponent<ITabsProps> {
13
- static TabPane: typeof TabPane;
14
- constructor(props: any);
15
- menuOnClick(item: any, pane: any, paneIndex: any): void;
16
- render(): JSX.Element;
17
- }
18
- export {};
1
+ import * as React from "react";
2
+ import TabPane from "./Tabpane";
3
+ interface ITabsProps {
4
+ OncontextMenu?: boolean;
5
+ contextMenu?: Array<{
6
+ text?: string;
7
+ key?: string;
8
+ onClick?: void;
9
+ }>;
10
+ [propName: string]: any;
11
+ }
12
+ export default class NscTabs extends React.PureComponent<ITabsProps> {
13
+ static TabPane: typeof TabPane;
14
+ constructor(props: any);
15
+ menuOnClick(item: any, pane: any, paneIndex: any): void;
16
+ render(): JSX.Element;
17
+ }
18
+ export {};
@@ -1,51 +1,51 @@
1
- import { PureComponent } from "react";
2
- interface IOptionProps {
3
- value?: string | number;
4
- checked?: boolean;
5
- onChange?: any;
6
- title?: string | number;
7
- }
8
- declare class TagSelectOption extends PureComponent<IOptionProps> {
9
- static isTagSelectOption: boolean;
10
- render(): JSX.Element;
11
- }
12
- export interface ITagProps {
13
- expandable?: boolean;
14
- hideCheckAll?: boolean;
15
- className?: any;
16
- actionsText?: {
17
- expandText?: string;
18
- collapseText?: string;
19
- selectAllText?: string;
20
- };
21
- style?: any;
22
- [propName: string]: any;
23
- }
24
- declare class TagSelect extends PureComponent<ITagProps> {
25
- state: {
26
- value: string;
27
- expand: boolean;
28
- };
29
- static defaultProps: {
30
- hideCheckAll: boolean;
31
- actionsText: {
32
- expandText: string;
33
- collapseText: string;
34
- selectAllText: string;
35
- };
36
- };
37
- static Option: typeof TagSelectOption;
38
- static getDerivedStateFromProps(nextProps: any): {
39
- value: any;
40
- };
41
- constructor(props: any);
42
- onChange: (value: any) => void;
43
- onSelectAll: (checked: any) => void;
44
- getAllTags(): any[];
45
- handleTagChange: (value: any, checked: any) => void;
46
- handleExpand: () => void;
47
- isTagSelectOption: (node: any) => any;
48
- renderChild(): any;
49
- render(): JSX.Element;
50
- }
51
- export default TagSelect;
1
+ import { PureComponent } from "react";
2
+ interface IOptionProps {
3
+ value?: string | number;
4
+ checked?: boolean;
5
+ onChange?: any;
6
+ title?: string | number;
7
+ }
8
+ declare class TagSelectOption extends PureComponent<IOptionProps> {
9
+ static isTagSelectOption: boolean;
10
+ render(): JSX.Element;
11
+ }
12
+ export interface ITagProps {
13
+ expandable?: boolean;
14
+ hideCheckAll?: boolean;
15
+ className?: any;
16
+ actionsText?: {
17
+ expandText?: string;
18
+ collapseText?: string;
19
+ selectAllText?: string;
20
+ };
21
+ style?: any;
22
+ [propName: string]: any;
23
+ }
24
+ declare class TagSelect extends PureComponent<ITagProps> {
25
+ state: {
26
+ value: string;
27
+ expand: boolean;
28
+ };
29
+ static defaultProps: {
30
+ hideCheckAll: boolean;
31
+ actionsText: {
32
+ expandText: string;
33
+ collapseText: string;
34
+ selectAllText: string;
35
+ };
36
+ };
37
+ static Option: typeof TagSelectOption;
38
+ static getDerivedStateFromProps(nextProps: any): {
39
+ value: any;
40
+ };
41
+ constructor(props: any);
42
+ onChange: (value: any) => void;
43
+ onSelectAll: (checked: any) => void;
44
+ getAllTags(): any[];
45
+ handleTagChange: (value: any, checked: any) => void;
46
+ handleExpand: () => void;
47
+ isTagSelectOption: (node: any) => any;
48
+ renderChild(): any;
49
+ render(): JSX.Element;
50
+ }
51
+ export default TagSelect;