zy-react-library 1.0.31 → 1.0.32
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,4 +1,4 @@
|
|
|
1
|
-
import { DownOutlined, UpOutlined } from "@ant-design/icons";
|
|
1
|
+
import { DownOutlined, SearchOutlined, UndoOutlined, 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";
|
|
@@ -87,14 +87,14 @@ const Search = (props) => {
|
|
|
87
87
|
initialValues={values}
|
|
88
88
|
/>
|
|
89
89
|
<Col span={showCollapseButton ? (collapse ? 6 : span) : span}>
|
|
90
|
-
<Form.Item label=" " colon={false} style={{ textAlign: "right" }}>
|
|
90
|
+
<Form.Item label=" " labelCol={{ span: 2 }} colon={false} style={{ textAlign: "right" }}>
|
|
91
91
|
{showSearchButton && (
|
|
92
|
-
<Button type="primary" onClick={handleSubmit}>
|
|
92
|
+
<Button type="primary" icon={<SearchOutlined />} onClick={handleSubmit}>
|
|
93
93
|
{searchText}
|
|
94
94
|
</Button>
|
|
95
95
|
)}
|
|
96
96
|
{showResetButton && (
|
|
97
|
-
<Button style={{ marginLeft: 8 }} onClick={handleReset}>
|
|
97
|
+
<Button style={{ marginLeft: 8 }} icon={<UndoOutlined />} onClick={handleReset}>
|
|
98
98
|
{resetText}
|
|
99
99
|
</Button>
|
|
100
100
|
)}
|