nsc-react-component 1.2.4 → 1.2.5

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,7 @@ import { TableProps } from "antd";
3
3
  import { TablePaginationConfig } from "antd/lib/table";
4
4
  import * as React from "react";
5
5
  import { DndContextType, IBodyRowProps } from "../common/BodyRow";
6
+ import "./resize.less";
6
7
  interface IDragParams {
7
8
  id: string | number;
8
9
  ids: Array<string | number>;
@@ -40,8 +41,58 @@ declare class NSCTable extends React.Component<INSCTableProps> {
40
41
  autoPagination: boolean;
41
42
  autoSort: boolean;
42
43
  autoOnChange: boolean;
44
+ resizeColumn: boolean;
43
45
  };
46
+ store: any;
47
+ thIconRef: React.RefObject<HTMLDivElement>;
48
+ state: {
49
+ dataSource: any[];
50
+ columns: any[];
51
+ loading: boolean;
52
+ pagination: {};
53
+ activeIndex: number;
54
+ searchText: any;
55
+ fieldOption: any;
56
+ searchColor: any;
57
+ cols: any[];
58
+ };
59
+ listeners: {
60
+ onBeforeLoad: any;
61
+ load: any;
62
+ };
63
+ components: {
64
+ header: {
65
+ cell: (props: any) => JSX.Element;
66
+ };
67
+ };
68
+ constructor(props: any);
69
+ handleResize: (index: any) => (e: any, { size }: any) => void;
70
+ componentDidMount(): void;
71
+ componentDidUpdate(prevProps: any, preState: any): void;
72
+ resetColumn(): void;
73
+ /**
74
+ * 清除选中颜色
75
+ */
76
+ clearSelectColor(): this;
77
+ getPaginationByStore(): any;
78
+ onChange(pagination: any, filters: any, sorter: any, extra: any): void;
79
+ getStore(): any;
80
+ /**
81
+ * 获取数据模型对象
82
+ */
83
+ getModel(): any;
84
+ /**
85
+ * 菜单搜索过滤显示
86
+ * @param {String} val
87
+ */
88
+ handleSearch(val: any, fieldOption: any, searchColor: any): void;
89
+ /**
90
+ * 模块列表移动排序
91
+ */
92
+ moveRow: (dragIndex: any, hoverIndex: any, drag: any, target: any) => void;
93
+ filterColumn(checkedValue: any): void;
94
+ getColumns(): any[];
44
95
  render(): JSX.Element;
45
96
  }
46
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<INSCTableProps>>;
97
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
47
98
  export default _default;