Compare commits
3 Commits
5d4e086c52
...
9256bf4e8f
| Author | SHA1 | Date |
|---|---|---|
|
|
9256bf4e8f | |
|
|
349b844113 | |
|
|
2910073267 |
|
|
@ -1,4 +1,4 @@
|
||||||
import { DownOutlined, UpOutlined } from "@ant-design/icons";
|
import { DownOutlined, SearchOutlined, UndoOutlined, UpOutlined } from "@ant-design/icons";
|
||||||
import { Button, Col, Form, Row } from "antd";
|
import { Button, Col, Form, Row } from "antd";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import FormItemsRenderer from "../FormBuilder/FormItemsRenderer";
|
import FormItemsRenderer from "../FormBuilder/FormItemsRenderer";
|
||||||
|
|
@ -87,14 +87,14 @@ const Search = (props) => {
|
||||||
initialValues={values}
|
initialValues={values}
|
||||||
/>
|
/>
|
||||||
<Col span={showCollapseButton ? (collapse ? 6 : span) : span}>
|
<Col span={showCollapseButton ? (collapse ? 6 : span) : span}>
|
||||||
<Form.Item label=" " colon={false} style={{ textAlign: "right" }}>
|
<Form.Item label=" " labelCol={{ span: 2 }} colon={false} style={{ textAlign: "right" }}>
|
||||||
{showSearchButton && (
|
{showSearchButton && (
|
||||||
<Button type="primary" onClick={handleSubmit}>
|
<Button type="primary" icon={<SearchOutlined />} onClick={handleSubmit}>
|
||||||
{searchText}
|
{searchText}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{showResetButton && (
|
{showResetButton && (
|
||||||
<Button style={{ marginLeft: 8 }} onClick={handleReset}>
|
<Button style={{ marginLeft: 8 }} icon={<UndoOutlined />} onClick={handleReset}>
|
||||||
{resetText}
|
{resetText}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { message, Modal } from "antd";
|
import { message, Modal } from "antd";
|
||||||
import { getFileName, getFileSuffix, getFileUrl } from "../../utils/index.js";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { getFileName, getFileSuffix, getFileUrl } from "../../utils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载文件
|
* 下载文件
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "zy-react-library",
|
"name": "zy-react-library",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.30",
|
"version": "1.0.32",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "LiuJiaNan",
|
"author": "LiuJiaNan",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue