@ecoding/components.antd 0.2.19 → 0.2.20

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.
@@ -4,6 +4,7 @@ interface IProps {
4
4
  header?: React.ReactNode;
5
5
  buttonArea?: React.ReactNode;
6
6
  filterArea?: React.ReactElement;
7
+ searchInputArea?: React.ReactElement;
7
8
  loading?: boolean;
8
9
  rowKey: string;
9
10
  bordered?: boolean;
@@ -2,7 +2,7 @@ import React, { memo, useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { Popover, Button, Typography, Table } from 'antd';
3
3
  import { FilterOutlined, MenuOutlined } from '@ant-design/icons';
4
4
  import TableProColumns from "./columns";
5
- const TablePro = memo(({ className, header, buttonArea, filterArea, loading, rowKey, dataSource, pagination, offsetY, columns, operationColumn, bordered, columnsTitle, filterTitle }) => {
5
+ const TablePro = memo(({ className, header, buttonArea, filterArea, searchInputArea, loading, rowKey, dataSource, pagination, offsetY, columns, operationColumn, bordered, columnsTitle, filterTitle }) => {
6
6
  const ref = useRef(null);
7
7
  const disColumnRef = useRef([]);
8
8
  const [y, setY] = useState('100%');
@@ -61,6 +61,7 @@ const TablePro = memo(({ className, header, buttonArea, filterArea, loading, row
61
61
  React.createElement("div", { style: operationWrap },
62
62
  buttonArea ? React.createElement("div", null, buttonArea) : null,
63
63
  React.createElement("div", null,
64
+ searchInputArea ? searchInputArea : null,
64
65
  filterArea ? (React.createElement(Popover, { placement: "leftBottom", title: React.createElement(Typography.Title, { level: 5 }, filterTitle), content: React.cloneElement(filterArea, { hide: hideOpenFilter }), trigger: "click", open: openFilter, onOpenChange: (newOpen) => {
65
66
  setOpenFilter(newOpen);
66
67
  } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/components.antd",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "author": "cxc",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -44,5 +44,5 @@
44
44
  "dependencies": {
45
45
  "react-quill": "^2.0.0"
46
46
  },
47
- "gitHead": "645a375c4e920de687d0e6a9909959b2b4cecdab"
47
+ "gitHead": "ce285911816e1eadbb837df75e9c86f76b86d3e1"
48
48
  }