UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

17 lines (16 loc) 728 B
import type { Option } from 'jamis-core'; import { BaseSelection } from '../../components'; import type { ChainedSelectionProps } from '../types'; interface ChainedSelectionState { selected: Array<string>; } export declare class ChainedSelection extends BaseSelection<ChainedSelectionProps, ChainedSelectionState> { valueArray: Array<Option>; state: ChainedSelectionState; componentDidMount(): void; selectOption(option: Option, depth: number, id: string): void; renderItem(option: Option, index: number, depth: number, id: string): JSX.Element; renderOption(option: Option, index: number, depth: number, id: string): JSX.Element | null; render(): JSX.Element; } export default ChainedSelection;