zy-react-library 1.0.32 → 1.0.34

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.
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const AddIcon: FC<AntdIconProps>;
5
+
6
+ export default AddIcon;
@@ -0,0 +1,9 @@
1
+ import { PlusOutlined } from "@ant-design/icons";
2
+
3
+ const AddIcon = props => (
4
+ <PlusOutlined {...props} />
5
+ );
6
+
7
+ AddIcon.displayName = "AddIcon";
8
+
9
+ export default AddIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const DeleteIcon: FC<AntdIconProps>;
5
+
6
+ export default DeleteIcon;
@@ -0,0 +1,9 @@
1
+ import { DeleteOutlined } from "@ant-design/icons";
2
+
3
+ const DeleteIcon = props => (
4
+ <DeleteOutlined {...props} />
5
+ );
6
+
7
+ DeleteIcon.displayName = "DeleteIcon";
8
+
9
+ export default DeleteIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const EditIcon: FC<AntdIconProps>;
5
+
6
+ export default EditIcon;
@@ -0,0 +1,9 @@
1
+ import { EditOutlined } from "@ant-design/icons";
2
+
3
+ const EditIcon = props => (
4
+ <EditOutlined {...props} />
5
+ );
6
+
7
+ EditIcon.displayName = "EditIcon";
8
+
9
+ export default EditIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const ExportIcon: FC<AntdIconProps>;
5
+
6
+ export default ExportIcon;
@@ -0,0 +1,9 @@
1
+ import { DownloadOutlined } from "@ant-design/icons";
2
+
3
+ const ExportIcon = props => (
4
+ <DownloadOutlined {...props} />
5
+ );
6
+
7
+ ExportIcon.displayName = "ExportIcon";
8
+
9
+ export default ExportIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const ImportIcon: FC<AntdIconProps>;
5
+
6
+ export default ImportIcon;
@@ -0,0 +1,9 @@
1
+ import { UploadOutlined } from "@ant-design/icons";
2
+
3
+ const ImportIcon = props => (
4
+ <UploadOutlined {...props} />
5
+ );
6
+
7
+ ImportIcon.displayName = "ImportIcon";
8
+
9
+ export default ImportIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const ResetIcon: FC<AntdIconProps>;
5
+
6
+ export default ResetIcon;
@@ -0,0 +1,9 @@
1
+ import { UndoOutlined } from "@ant-design/icons";
2
+
3
+ const ResetIcon = props => (
4
+ <UndoOutlined {...props} />
5
+ );
6
+
7
+ ResetIcon.displayName = "ResetIcon";
8
+
9
+ export default ResetIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const SearchIcon: FC<AntdIconProps>;
5
+
6
+ export default SearchIcon;
@@ -0,0 +1,9 @@
1
+ import { SearchOutlined } from "@ant-design/icons";
2
+
3
+ const SearchIcon = props => (
4
+ <SearchOutlined {...props} />
5
+ );
6
+
7
+ SearchIcon.displayName = "SearchIcon";
8
+
9
+ export default SearchIcon;
@@ -0,0 +1,6 @@
1
+ import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
2
+ import type { FC } from "react";
3
+
4
+ declare const ViewIcon: FC<AntdIconProps>;
5
+
6
+ export default ViewIcon;
@@ -0,0 +1,9 @@
1
+ import { EyeOutlined } from "@ant-design/icons";
2
+
3
+ const ViewIcon = props => (
4
+ <EyeOutlined {...props} />
5
+ );
6
+
7
+ ViewIcon.displayName = "ViewIcon";
8
+
9
+ export default ViewIcon;
@@ -1,7 +1,9 @@
1
- import { DownOutlined, SearchOutlined, UndoOutlined, UpOutlined } from "@ant-design/icons";
1
+ import { DownOutlined, UpOutlined } from "@ant-design/icons";
2
2
  import { Button, Col, Form, Row } from "antd";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import FormItemsRenderer from "../FormBuilder/FormItemsRenderer";
5
+ import ResetIcon from "../Icon/ResetIcon";
6
+ import SearchIcon from "../Icon/SearchIcon";
5
7
 
6
8
  /**
7
9
  * 搜索表单组件
@@ -89,12 +91,12 @@ const Search = (props) => {
89
91
  <Col span={showCollapseButton ? (collapse ? 6 : span) : span}>
90
92
  <Form.Item label=" " labelCol={{ span: 2 }} colon={false} style={{ textAlign: "right" }}>
91
93
  {showSearchButton && (
92
- <Button type="primary" icon={<SearchOutlined />} onClick={handleSubmit}>
94
+ <Button type="primary" icon={<SearchIcon />} onClick={handleSubmit}>
93
95
  {searchText}
94
96
  </Button>
95
97
  )}
96
98
  {showResetButton && (
97
- <Button style={{ marginLeft: 8 }} icon={<UndoOutlined />} onClick={handleReset}>
99
+ <Button style={{ marginLeft: 8 }} icon={<ResetIcon />} onClick={handleReset}>
98
100
  {resetText}
99
101
  </Button>
100
102
  )}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.32",
4
+ "version": "1.0.34",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",