31 lines
991 B
TypeScript
31 lines
991 B
TypeScript
import type { SelectProps } from 'antd';
|
|
import React from 'react';
|
|
import type { ProFieldLightProps } from '../../../index';
|
|
export type LightSelectProps = {
|
|
label?: string;
|
|
placeholder?: any;
|
|
valueMaxLength?: number;
|
|
/** 刷新数据 */
|
|
fetchData: (keyWord?: string) => void;
|
|
/**
|
|
* 当搜索关键词发生变化时是否请求远程数据
|
|
*
|
|
* @default true
|
|
*/
|
|
fetchDataOnSearch?: boolean;
|
|
} & ProFieldLightProps;
|
|
declare const _default: React.ForwardRefExoticComponent<SelectProps<any, import("antd/es/select").DefaultOptionType> & {
|
|
label?: string | undefined;
|
|
placeholder?: any;
|
|
valueMaxLength?: number | undefined;
|
|
/** 刷新数据 */
|
|
fetchData: (keyWord?: string | undefined) => void;
|
|
/**
|
|
* 当搜索关键词发生变化时是否请求远程数据
|
|
*
|
|
* @default true
|
|
*/
|
|
fetchDataOnSearch?: boolean | undefined;
|
|
} & ProFieldLightProps & React.RefAttributes<any>>;
|
|
export default _default;
|