imetting/frontend/src/components/ExpandSearchBox.jsx

18 lines
400 B
React
Raw Normal View History

2026-03-26 06:55:12 +00:00
import React, { useState } from 'react';
import { Input } from 'antd';
2026-03-26 06:55:12 +00:00
import { SearchOutlined } from '@ant-design/icons';
2026-03-26 06:55:12 +00:00
const ExpandSearchBox = ({ onSearch, placeholder = "搜索会议..." }) => {
return (
2026-03-26 06:55:12 +00:00
<Input.Search
placeholder={placeholder}
onSearch={onSearch}
style={{ width: 300 }}
allowClear
enterButton
/>
);
};
export default ExpandSearchBox;