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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsc-react-component",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,87 +0,0 @@
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;