UNPKG

chenw-tool

Version:

React components using pure Bootstrap 5+ which does not contain any external style and script libraries.

48 lines (47 loc) 1.05 kB
import React from "react"; import "./SelectInput.scss"; interface Props { type?: "COMMON" | "MULTI"; label?: string | React.ReactNode; wrapperClassName?: string; id: string | any; name: string | any; kbcode?: string | any; dropdownRender: any[]; inputId: string | any; titleId: string | any; defaultValue?: string | any; index?: string | number | any; onChange: Function; size?: string | any; zIndex?: string | any; isHandleInput?: boolean; isDisableBodyScroll?: boolean; dataService?: any; dataServiceFunction?: string; dataServiceFunctionParams?: any[]; dataServiceRetrieve?: boolean; } export default function SelectInput({ type, label, wrapperClassName, id, name, kbcode, dropdownRender, inputId, titleId, defaultValue, index, onChange, size, zIndex, isHandleInput, isDisableBodyScroll, dataService, dataServiceFunction, // 默认调用 retrieveList 函数 dataServiceFunctionParams, // 调用函数的传参 dataServiceRetrieve, }: Props): React.JSX.Element; export {};