import React from 'react'; import './index.less'; export interface SearchSectionProps { isShowSearchCamera?: boolean; searchIcon?: string; placeholder?: string; isShowSearchButton?: boolean; /** 最近一次搜索来源:扫码来源展示「取消」按钮替代输入框清除叉号 */ searchSource?: 'keyboard' | 'scan'; loading?: boolean; /** 是否禁用输入框 */ disabled?: boolean; /** 输入框尺寸(透传 antd Input size) */ size?: 'large' | 'middle' | 'small'; defaultValue?: string; value?: string; onChange?: (value: string) => void; onSearch?: (value: string) => void | Promise; /** 点击清除按钮回调 */ onClear?: () => void; /** 摄像头扫码结果回调 */ onScan?: (value: string) => void; /** 输入框聚焦回调 */ onFocus?: () => void; /** 输入框失焦回调 */ onBlur?: () => void; style?: React.CSSProperties; className?: string; searchButtonProps?: { placement?: 'inside' | 'outside'; style?: React.CSSProperties; }; cameraButtonProps?: { icon?: string[]; }; } declare const SearchSection: React.FC; export default SearchSection;