From 73c07f794af6833894bd4c537471ba1300aabd33 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Fri, 31 Oct 2025 16:47:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eicon=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Icon/AddIcon/index.d.ts | 6 ++++++ components/Icon/AddIcon/index.js | 9 +++++++++ components/Icon/DeleteIcon/index.d.ts | 6 ++++++ components/Icon/DeleteIcon/index.js | 9 +++++++++ components/Icon/EditIcon/index.d.ts | 6 ++++++ components/Icon/EditIcon/index.js | 9 +++++++++ components/Icon/ExportIcon/index.d.ts | 6 ++++++ components/Icon/ExportIcon/index.js | 9 +++++++++ components/Icon/ImportIcon/index.d.ts | 6 ++++++ components/Icon/ImportIcon/index.js | 9 +++++++++ components/Icon/ResetIcon/index.d.ts | 6 ++++++ components/Icon/ResetIcon/index.js | 9 +++++++++ components/Icon/SearchIcon/index.d.ts | 6 ++++++ components/Icon/SearchIcon/index.js | 9 +++++++++ components/Icon/ViewIcon/index.d.ts | 6 ++++++ components/Icon/ViewIcon/index.js | 9 +++++++++ components/Search/index.js | 8 +++++--- 17 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 components/Icon/AddIcon/index.d.ts create mode 100644 components/Icon/AddIcon/index.js create mode 100644 components/Icon/DeleteIcon/index.d.ts create mode 100644 components/Icon/DeleteIcon/index.js create mode 100644 components/Icon/EditIcon/index.d.ts create mode 100644 components/Icon/EditIcon/index.js create mode 100644 components/Icon/ExportIcon/index.d.ts create mode 100644 components/Icon/ExportIcon/index.js create mode 100644 components/Icon/ImportIcon/index.d.ts create mode 100644 components/Icon/ImportIcon/index.js create mode 100644 components/Icon/ResetIcon/index.d.ts create mode 100644 components/Icon/ResetIcon/index.js create mode 100644 components/Icon/SearchIcon/index.d.ts create mode 100644 components/Icon/SearchIcon/index.js create mode 100644 components/Icon/ViewIcon/index.d.ts create mode 100644 components/Icon/ViewIcon/index.js diff --git a/components/Icon/AddIcon/index.d.ts b/components/Icon/AddIcon/index.d.ts new file mode 100644 index 0000000..1bef968 --- /dev/null +++ b/components/Icon/AddIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const AddIcon: FC; + +export default AddIcon; diff --git a/components/Icon/AddIcon/index.js b/components/Icon/AddIcon/index.js new file mode 100644 index 0000000..4f75db9 --- /dev/null +++ b/components/Icon/AddIcon/index.js @@ -0,0 +1,9 @@ +import { PlusOutlined } from "@ant-design/icons"; + +const AddIcon = props => ( + +); + +AddIcon.displayName = "AddIcon"; + +export default AddIcon; diff --git a/components/Icon/DeleteIcon/index.d.ts b/components/Icon/DeleteIcon/index.d.ts new file mode 100644 index 0000000..6e6068a --- /dev/null +++ b/components/Icon/DeleteIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const DeleteIcon: FC; + +export default DeleteIcon; diff --git a/components/Icon/DeleteIcon/index.js b/components/Icon/DeleteIcon/index.js new file mode 100644 index 0000000..e4c69fd --- /dev/null +++ b/components/Icon/DeleteIcon/index.js @@ -0,0 +1,9 @@ +import { DeleteOutlined } from "@ant-design/icons"; + +const DeleteIcon = props => ( + +); + +DeleteIcon.displayName = "DeleteIcon"; + +export default DeleteIcon; diff --git a/components/Icon/EditIcon/index.d.ts b/components/Icon/EditIcon/index.d.ts new file mode 100644 index 0000000..80d27fb --- /dev/null +++ b/components/Icon/EditIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const EditIcon: FC; + +export default EditIcon; diff --git a/components/Icon/EditIcon/index.js b/components/Icon/EditIcon/index.js new file mode 100644 index 0000000..4a8de3b --- /dev/null +++ b/components/Icon/EditIcon/index.js @@ -0,0 +1,9 @@ +import { EditOutlined } from "@ant-design/icons"; + +const EditIcon = props => ( + +); + +EditIcon.displayName = "EditIcon"; + +export default EditIcon; diff --git a/components/Icon/ExportIcon/index.d.ts b/components/Icon/ExportIcon/index.d.ts new file mode 100644 index 0000000..3d75235 --- /dev/null +++ b/components/Icon/ExportIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const ExportIcon: FC; + +export default ExportIcon; diff --git a/components/Icon/ExportIcon/index.js b/components/Icon/ExportIcon/index.js new file mode 100644 index 0000000..4ab7f6c --- /dev/null +++ b/components/Icon/ExportIcon/index.js @@ -0,0 +1,9 @@ +import { DownloadOutlined } from "@ant-design/icons"; + +const ExportIcon = props => ( + +); + +ExportIcon.displayName = "ExportIcon"; + +export default ExportIcon; diff --git a/components/Icon/ImportIcon/index.d.ts b/components/Icon/ImportIcon/index.d.ts new file mode 100644 index 0000000..1a244f2 --- /dev/null +++ b/components/Icon/ImportIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const ImportIcon: FC; + +export default ImportIcon; diff --git a/components/Icon/ImportIcon/index.js b/components/Icon/ImportIcon/index.js new file mode 100644 index 0000000..965be91 --- /dev/null +++ b/components/Icon/ImportIcon/index.js @@ -0,0 +1,9 @@ +import { UploadOutlined } from "@ant-design/icons"; + +const ImportIcon = props => ( + +); + +ImportIcon.displayName = "ImportIcon"; + +export default ImportIcon; diff --git a/components/Icon/ResetIcon/index.d.ts b/components/Icon/ResetIcon/index.d.ts new file mode 100644 index 0000000..62ecc2c --- /dev/null +++ b/components/Icon/ResetIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const ResetIcon: FC; + +export default ResetIcon; diff --git a/components/Icon/ResetIcon/index.js b/components/Icon/ResetIcon/index.js new file mode 100644 index 0000000..28267cc --- /dev/null +++ b/components/Icon/ResetIcon/index.js @@ -0,0 +1,9 @@ +import { UndoOutlined } from "@ant-design/icons"; + +const ResetIcon = props => ( + +); + +ResetIcon.displayName = "ResetIcon"; + +export default ResetIcon; diff --git a/components/Icon/SearchIcon/index.d.ts b/components/Icon/SearchIcon/index.d.ts new file mode 100644 index 0000000..b0fddb0 --- /dev/null +++ b/components/Icon/SearchIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const SearchIcon: FC; + +export default SearchIcon; diff --git a/components/Icon/SearchIcon/index.js b/components/Icon/SearchIcon/index.js new file mode 100644 index 0000000..5a01162 --- /dev/null +++ b/components/Icon/SearchIcon/index.js @@ -0,0 +1,9 @@ +import { PlusOutlined } from "@ant-design/icons"; + +const SearchIcon = props => ( + +); + +SearchIcon.displayName = "SearchIcon"; + +export default SearchIcon; diff --git a/components/Icon/ViewIcon/index.d.ts b/components/Icon/ViewIcon/index.d.ts new file mode 100644 index 0000000..12dc42d --- /dev/null +++ b/components/Icon/ViewIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const ViewIcon: FC; + +export default ViewIcon; diff --git a/components/Icon/ViewIcon/index.js b/components/Icon/ViewIcon/index.js new file mode 100644 index 0000000..63133f4 --- /dev/null +++ b/components/Icon/ViewIcon/index.js @@ -0,0 +1,9 @@ +import { EyeOutlined } from "@ant-design/icons"; + +const ViewIcon = props => ( + +); + +ViewIcon.displayName = "ViewIcon"; + +export default ViewIcon; diff --git a/components/Search/index.js b/components/Search/index.js index 9ca2dbe..e491abb 100644 --- a/components/Search/index.js +++ b/components/Search/index.js @@ -1,7 +1,9 @@ -import { DownOutlined, SearchOutlined, UndoOutlined, UpOutlined } from "@ant-design/icons"; +import { DownOutlined, UpOutlined } from "@ant-design/icons"; import { Button, Col, Form, Row } from "antd"; import { useEffect, useRef, useState } from "react"; import FormItemsRenderer from "../FormBuilder/FormItemsRenderer"; +import ResetIcon from "../Icon/ResetIcon"; +import SearchIcon from "../Icon/SearchIcon"; /** * 搜索表单组件 @@ -89,12 +91,12 @@ const Search = (props) => { {showSearchButton && ( - )} {showResetButton && ( - )}