jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
20 lines (19 loc) • 824 B
TypeScript
import type { Option, PickClassStyleType } from 'jamis-core';
import type { SelectCompProps } from '../types';
export declare const SelectOption: (props: {
index: number;
style?: Record<string, any>;
selection: Option[];
item: Option;
itemDisabled?: boolean;
checked: boolean;
enableVirtualRender: boolean;
inputValue: string | null;
handleChange: (item: Option) => void;
} & Pick<SelectCompProps, "multiple" | "valueField" | "labelField" | "hideSelected" | "optionClassName" | "renderMenu" | "checkAll" | "searchable" | "inputValue" | "removable" | "editable" | "onDelete" | "onChange" | "onEdit"> & {
id: string;
role: string;
onClick?: (e: any) => void;
onMouseDown?: (e: any) => void;
onMouseMove?: (e: any) => void;
} & PickClassStyleType) => JSX.Element | null;