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