@itera-web/react-ui-baselist 2.4.4 → 2.8.0

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/es/BaseList.d.ts CHANGED
@@ -1,41 +1,41 @@
1
- import React from 'react';
2
- export interface IBaseListProps {
3
- isEditTable?: boolean;
4
- handleSaveCallBack?: (a: any) => void;
5
- serviceFunc: (a: any, b: any) => void;
6
- functionControlTableTitle?: string;
7
- columns?: any[];
8
- otherParams?: any;
9
- optionButtonGroup?: any[];
10
- searchParamList?: any[];
11
- openRowSelection?: boolean;
12
- rowSelectionType?: 'checkbox' | 'radio';
13
- scrollX?: string | number;
14
- scrollY?: string | number;
15
- functionControlHide?: boolean;
16
- topPagination?: boolean;
17
- bottomPagination?: boolean;
18
- isShowRowTitleName?: string;
19
- noSearch?: boolean;
20
- className?: any;
21
- locales?: string;
22
- onRowChangeCallback?: (a: any, b: any) => void;
23
- border?: boolean;
24
- drag?: boolean;
25
- listClassName?: string;
26
- }
27
- export interface IStateProps {
28
- isHideFormItem?: boolean;
29
- tableDensity?: 'compact' | 'normal' | 'loose';
30
- loading?: boolean;
31
- dataSource?: object[];
32
- isShowRowTitleName?: string;
33
- selectedRows?: any[];
34
- selectedRowKeys?: any[];
35
- Condition?: {};
36
- openRowSelection?: boolean;
37
- current?: number;
38
- pageSize?: number;
39
- total?: number;
40
- }
41
- export declare const BaseList: React.MemoExoticComponent<React.ForwardRefExoticComponent<IBaseListProps & React.RefAttributes<unknown>>>;
1
+ import React from 'react';
2
+ export interface IBaseListProps {
3
+ isEditTable?: boolean;
4
+ handleSaveCallBack?: (a: any) => void;
5
+ serviceFunc: (a: any, b: any) => void;
6
+ functionControlTableTitle?: string;
7
+ columns?: any[];
8
+ otherParams?: any;
9
+ optionButtonGroup?: any[];
10
+ searchParamList?: any[];
11
+ openRowSelection?: boolean;
12
+ rowSelectionType?: 'checkbox' | 'radio';
13
+ scrollX?: string | number;
14
+ scrollY?: string | number;
15
+ functionControlHide?: boolean;
16
+ topPagination?: boolean;
17
+ bottomPagination?: boolean;
18
+ isShowRowTitleName?: string;
19
+ noSearch?: boolean;
20
+ className?: any;
21
+ locales?: string;
22
+ onRowChangeCallback?: (a: any, b: any) => void;
23
+ border?: boolean;
24
+ drag?: boolean;
25
+ listClassName?: string;
26
+ }
27
+ export interface IStateProps {
28
+ isHideFormItem?: boolean;
29
+ tableDensity?: 'compact' | 'normal' | 'loose';
30
+ loading?: boolean;
31
+ dataSource?: object[];
32
+ isShowRowTitleName?: string;
33
+ selectedRows?: any[];
34
+ selectedRowKeys?: any[];
35
+ Condition?: {};
36
+ openRowSelection?: boolean;
37
+ current?: number;
38
+ pageSize?: number;
39
+ total?: number;
40
+ }
41
+ export declare const BaseList: React.MemoExoticComponent<React.ForwardRefExoticComponent<IBaseListProps & React.RefAttributes<unknown>>>;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- export type IconProps = {
3
- className?: string;
4
- };
5
- export declare const Close: React.FC<IconProps>;
1
+ import * as React from 'react';
2
+ export type IconProps = {
3
+ className?: string;
4
+ };
5
+ export declare const Close: React.FC<IconProps>;
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const ResizableTitle: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLTableCellElement>>>;
1
+ import React from 'react';
2
+ export declare const ResizableTitle: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLTableCellElement>>>;
@@ -1,6 +1,6 @@
1
- interface TableWrapperProps {
2
- borderColor?: string;
3
- rowHoverBg?: string;
4
- }
5
- export declare const TableWrapper: import("react").MemoExoticComponent<import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TableWrapperProps>> & string>;
6
- export {};
1
+ interface TableWrapperProps {
2
+ borderColor?: string;
3
+ rowHoverBg?: string;
4
+ }
5
+ export declare const TableWrapper: import("react").MemoExoticComponent<import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TableWrapperProps>> & string>;
6
+ export {};
@@ -1,31 +1,31 @@
1
- import React from 'react';
2
- export type AlignType = 'left' | 'center' | 'right';
3
- export interface RcColumn<T> {
4
- key: string;
5
- title: React.ReactNode;
6
- customTh: React.ReactNode;
7
- dataIndex?: keyof T;
8
- width?: number;
9
- align?: AlignType;
10
- fixed?: 'left' | 'right';
11
- wrap?: boolean;
12
- render?: (value: any, record: T, index: number) => React.ReactNode;
13
- children?: RcColumn<T>[];
14
- }
15
- export interface DataTableProps<T> {
16
- columns: RcColumn<T>[];
17
- data: T[];
18
- openRowSelection?: boolean;
19
- selectedRowKeys?: string[];
20
- onRowChange?: (keys: string[], rows: T[]) => void;
21
- rowSelectionType?: 'checkbox' | 'radio';
22
- density?: 'compact' | 'normal' | 'loose';
23
- border?: boolean;
24
- drag?: boolean;
25
- scrollX?: string | number;
26
- scrollY?: string | number;
27
- className?: string;
28
- }
29
- export declare const ListBody: React.MemoExoticComponent<React.ForwardRefExoticComponent<DataTableProps<{
30
- id?: string;
31
- }> & React.RefAttributes<any>>>;
1
+ import React from 'react';
2
+ export type AlignType = 'left' | 'center' | 'right';
3
+ export interface RcColumn<T> {
4
+ key: string;
5
+ title: React.ReactNode;
6
+ customTh: React.ReactNode;
7
+ dataIndex?: keyof T;
8
+ width?: number;
9
+ align?: AlignType;
10
+ fixed?: 'left' | 'right';
11
+ wrap?: boolean;
12
+ render?: (value: any, record: T, index: number) => React.ReactNode;
13
+ children?: RcColumn<T>[];
14
+ }
15
+ export interface DataTableProps<T> {
16
+ columns: RcColumn<T>[];
17
+ data: T[];
18
+ openRowSelection?: boolean;
19
+ selectedRowKeys?: string[];
20
+ onRowChange?: (keys: string[], rows: T[]) => void;
21
+ rowSelectionType?: 'checkbox' | 'radio';
22
+ density?: 'compact' | 'normal' | 'loose';
23
+ border?: boolean;
24
+ drag?: boolean;
25
+ scrollX?: string | number;
26
+ scrollY?: string | number;
27
+ className?: string;
28
+ }
29
+ export declare const ListBody: React.MemoExoticComponent<React.ForwardRefExoticComponent<DataTableProps<{
30
+ id?: string;
31
+ }> & React.RefAttributes<any>>>;
package/es/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { BaseList, type IBaseListProps } from './BaseList';
2
- export { ListBody, type AlignType } from './Components/ListBody';
1
+ export { BaseList, type IBaseListProps } from './BaseList';
2
+ export { ListBody, type AlignType } from './Components/ListBody';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@itera-web/react-ui-baselist",
3
3
  "description": "查询表格",
4
- "version": "2.4.4",
4
+ "version": "2.8.0",
5
5
  "main": "es/index.js",
6
6
  "types": "es/index.d.ts",
7
7
  "publishConfig": {
@@ -13,17 +13,17 @@
13
13
  "up": "npm publish"
14
14
  },
15
15
  "dependencies": {
16
- "@itera-web/hooks-setstate": "^1.25.0",
17
- "@itera-web/react-ui-checkbox": "^1.24.0",
18
- "@itera-web/react-ui-conditionalrender": "^1.23.0",
19
- "@itera-web/react-ui-empty": "^1.21.0",
20
- "@itera-web/react-ui-functioncontrol": "^1.27.1",
21
- "@itera-web/react-ui-pagination-push": "^1.27.1",
22
- "@itera-web/react-ui-radio": "^1.22.0",
23
- "@itera-web/react-ui-searchform": "^1.28.8",
24
- "@itera-web/react-ui-spin": "^1.21.0",
25
- "@itera-web/utils-cn": "^1.22.0",
26
- "@itera-web/utils-locale-toggle": "^1.22.0",
16
+ "@itera-web/hooks-setstate": "^1.29.0",
17
+ "@itera-web/react-ui-checkbox": "^1.28.0",
18
+ "@itera-web/react-ui-conditionalrender": "^1.27.0",
19
+ "@itera-web/react-ui-empty": "^1.25.0",
20
+ "@itera-web/react-ui-functioncontrol": "^1.31.0",
21
+ "@itera-web/react-ui-pagination-push": "^1.31.0",
22
+ "@itera-web/react-ui-radio": "^1.26.0",
23
+ "@itera-web/react-ui-searchform": "^1.32.0",
24
+ "@itera-web/react-ui-spin": "^1.25.0",
25
+ "@itera-web/utils-cn": "^1.26.0",
26
+ "@itera-web/utils-locale-toggle": "^1.26.0",
27
27
  "lodash": "^4.17.21",
28
28
  "rc-table": "^7.55.1",
29
29
  "react-resizable": "^3.1.3",
@@ -35,7 +35,7 @@
35
35
  "react-dom": ">=17.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@itera-web/cli": "^1.1.54"
38
+ "@itera-web/cli": "^1.1.70"
39
39
  },
40
- "gitHead": "0373a803aee382b4efcc94a0c644d864a23feea8"
40
+ "gitHead": "ed385657bd5f002b9339de322c08659ae5ce6fc1"
41
41
  }