pocko-ui
Version:
React components using pure Bootstrap 5+ which does not contain any external style and script libraries.
44 lines (43 loc) • 1.7 kB
TypeScript
import React from "react";
import "./Index.scss";
export interface CleanTriggerConfig {
valid: boolean;
cleanValueLabel?: string;
cleanFunc?: Function;
}
interface Props {
type?: "COMMON" | "MULTI";
label?: string | React.ReactNode;
wrapperClassName?: string;
wrapperContentInputClassName?: string;
popupMenuClassName?: string;
renderOption?: (item: any) => React.ReactNode;
id: string | any;
name: string | any;
kbcode?: string | any;
dropdownRender: any[];
dropdownPosition?: "top" | "bottom" | "auto";
inputId: string | any;
titleId: string | any;
defaultValue?: string | any;
index?: string | number | any;
onChange: Function;
onKeyDown?: Function | any;
onFoused?: Function | any;
onBlured?: Function | any;
size?: string | any;
zIndex?: string | any;
isDisable?: boolean;
isHandleInput?: boolean;
isDisableBodyScroll?: boolean;
cleanTrigger?: CleanTriggerConfig;
dataService?: any;
dataServiceFunction?: string;
dataServiceFunctionParams?: any[];
dataServiceRetrieve?: boolean;
}
export default function SelectInput({ type, label, wrapperClassName, wrapperContentInputClassName, popupMenuClassName, id, name, kbcode, dropdownRender, dropdownPosition, inputId, titleId, defaultValue, index, onChange, onKeyDown, onFoused, onBlured, size, zIndex, isDisable, isHandleInput, isDisableBodyScroll, dataService, dataServiceFunction, // 默认调用 retrieveList 函数
dataServiceFunctionParams, // 调用函数的传参
dataServiceRetrieve, // 默认不是检索类的
renderOption, cleanTrigger, }: Props): JSX.Element;
export {};