jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
27 lines (26 loc) • 1.2 kB
TypeScript
import type { LocaleProps, Option, SchemaClassName, ThemeProps } from 'jamis-core';
import type { InputBoxProps, TooltipObject } from '../types';
export interface ResultBoxProps extends ThemeProps, LocaleProps, Omit<InputBoxProps, 'result' | 'prefix' | 'onChange'> {
result?: Array<any> | any;
/** 是否允许输入 */
allowInput?: boolean;
/**
* 是否出现下拉箭头图标
*/
maxTagCount?: number;
hasDropDownArrow?: boolean;
overflowTagPopover?: TooltipObject;
actions?: JSX.Element | JSX.Element[];
/** 外层的打开状态, 默认为false. 仅用在如treeselect组件等场景下*/
isOutterOpen?: boolean;
inputClassName?: SchemaClassName;
valueWrapClassName?: SchemaClassName;
valueClassName?: SchemaClassName;
containerRef?: React.RefObject<HTMLDivElement>;
setInputRef?: (ref: React.RefObject<HTMLInputElement>) => void;
itemRender: (value: any) => JSX.Element | string;
onChange?: (value: string) => void;
onResultClick?: (e: React.MouseEvent<HTMLElement>) => void;
onResultChange?: (value: Array<any>, changedOption?: Option) => void;
onClear?: (e: React.MouseEvent<HTMLElement>) => void;
}