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.
- package/components/Icon/AddIcon/index.d.ts +6 -0
- package/components/Icon/AddIcon/index.js +9 -0
- package/components/Icon/DeleteIcon/index.d.ts +6 -0
- package/components/Icon/DeleteIcon/index.js +9 -0
- package/components/Icon/EditIcon/index.d.ts +6 -0
- package/components/Icon/EditIcon/index.js +9 -0
- package/components/Icon/ExportIcon/index.d.ts +6 -0
- package/components/Icon/ExportIcon/index.js +9 -0
- package/components/Icon/ImportIcon/index.d.ts +6 -0
- package/components/Icon/ImportIcon/index.js +9 -0
- package/components/Icon/ResetIcon/index.d.ts +6 -0
- package/components/Icon/ResetIcon/index.js +9 -0
- package/components/Icon/SearchIcon/index.d.ts +6 -0
- package/components/Icon/SearchIcon/index.js +9 -0
- package/components/Icon/ViewIcon/index.d.ts +6 -0
- package/components/Icon/ViewIcon/index.js +9 -0
- package/components/Search/index.js +5 -3
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { DownOutlined,
|
|
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={<
|
|
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={<
|
|
99
|
+
<Button style={{ marginLeft: 8 }} icon={<ResetIcon />} onClick={handleReset}>
|
|
98
100
|
{resetText}
|
|
99
101
|
</Button>
|
|
100
102
|
)}
|