UNPKG

jamis

Version:

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

28 lines (27 loc) 1.01 kB
import React from 'react'; import type { ActionObject } from 'jamis-core'; import type { ChainedSelectProps, Option } from '../types'; interface ChainedSelectState { stack: Array<{ options: Array<Option>; parentId: any; loading: boolean; visible?: boolean; }>; } export default class ChainedSelectControl extends React.Component<ChainedSelectProps, ChainedSelectState> { static defaultProps: Partial<ChainedSelectProps>; state: ChainedSelectState; constructor(props: ChainedSelectProps); componentDidMount(): void; componentDidUpdate(prevProps: ChainedSelectProps): void; doAction(action: ActionObject, data: object, throwErrors: boolean): void; array2value(arr: Array<any>, isExtracted?: boolean): string | any[]; loadMore(): void; handleChange(index: number, currentValue: any): Promise<void>; reload(): void; render(): JSX.Element; } export declare class ChainedSelectControlRenderer extends ChainedSelectControl { } export {};