@ecoding/components.antd 0.3.41 → 0.3.42
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FilterValue, SorterResult, TableCurrentDataSource, TablePaginationConfig } from 'antd/lib/table/interface';
|
|
2
|
+
import type { FilterValue, SorterResult, TableCurrentDataSource, TablePaginationConfig, TableLocale } from 'antd/lib/table/interface';
|
|
3
3
|
import type { ColProps } from 'antd/lib/col';
|
|
4
4
|
interface IProps {
|
|
5
5
|
className?: string;
|
|
@@ -28,6 +28,7 @@ interface IProps {
|
|
|
28
28
|
columnsTitle?: string;
|
|
29
29
|
selectType?: "checkbox" | "radio";
|
|
30
30
|
selectChangeHandler?: any;
|
|
31
|
+
locale?: TableLocale;
|
|
31
32
|
}
|
|
32
33
|
declare const TablePro: React.FC<IProps>;
|
|
33
34
|
export default TablePro;
|
|
@@ -4,7 +4,7 @@ import { FilterOutlined, MenuOutlined } from '@ant-design/icons';
|
|
|
4
4
|
import TableProColumns from "./columns";
|
|
5
5
|
import { getDelateTargetByClassName } from "../../helpers/dom";
|
|
6
6
|
import FilterHorizontal from "./filters.horizontal";
|
|
7
|
-
const TablePro = memo(({ className, header, buttonArea, filterArea, filters, searchInputArea, loading, rowKey, dataSource, pagination, offsetY, columns, operationColumn, bordered, selectChangeHandler, selectType, onChange, expandable, columnsTitle, filterTitle }) => {
|
|
7
|
+
const TablePro = memo(({ className, header, buttonArea, filterArea, filters, searchInputArea, loading, rowKey, dataSource, pagination, offsetY, columns, operationColumn, bordered, selectChangeHandler, selectType, onChange, expandable, columnsTitle, filterTitle, locale }) => {
|
|
8
8
|
const ref = useRef(null);
|
|
9
9
|
const disColumnRef = useRef([]);
|
|
10
10
|
const [y, setY] = useState('100%');
|
|
@@ -88,7 +88,7 @@ const TablePro = memo(({ className, header, buttonArea, filterArea, filters, sea
|
|
|
88
88
|
} },
|
|
89
89
|
React.createElement(Button, { type: "text", icon: React.createElement(MenuOutlined, null) }, columnsTitle))) : null)),
|
|
90
90
|
dataSource ? (React.createElement("div", { style: { height: '100%', overflow: 'hidden' }, ref: ref },
|
|
91
|
-
React.createElement(Table, { rowSelection: selectType ? rowSelection : undefined, onRow: (record, index) => {
|
|
91
|
+
React.createElement(Table, { rowSelection: selectType ? rowSelection : undefined, locale: locale ? locale : undefined, onRow: (record, index) => {
|
|
92
92
|
return {
|
|
93
93
|
onClick: (e) => {
|
|
94
94
|
const parent = getDelateTargetByClassName(e.target, "ant-table-tbody");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.42",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"antd": "^5.8.4",
|
|
44
44
|
"axios": "^1.1.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d801e8c6a4e8bc9af4db49a50b3c9e0b486727c5"
|
|
47
47
|
}
|