jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
17 lines (16 loc) • 672 B
TypeScript
import type { Option, ThemeProps } from 'jamis-core';
import type { ItemRenderStates, TabsMode, VariableItem } from '../../types';
export interface VariableListProps extends ThemeProps {
className?: string;
itemClassName?: string;
value?: any;
data: Array<VariableItem>;
selectMode?: 'list' | 'tree' | 'tabs';
tabsMode?: TabsMode;
classPrefix?: string;
itemRender?: (option: Option, states: ItemRenderStates) => JSX.Element;
placeholderRender?: (props: any) => JSX.Element | null;
onSelect?: (item: VariableItem) => void;
selfVariableName?: string;
}
export default function VariableList(props: VariableListProps): JSX.Element;