UNPKG

jamis

Version:

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

30 lines (29 loc) 983 B
import React from 'react'; import type { Option } from 'jamis-core'; import type { ButtonLevel, OptionProps } from '../../types'; interface RadioProps extends OptionProps { id?: string; type: string; optionType?: string; value?: string; className?: string; style?: React.CSSProperties; inline?: boolean; level?: ButtonLevel; btnActiveLevel?: ButtonLevel; disabled?: boolean; onChange?: Function; columnsCount: number; itemClassName?: string; labelField: string; labelClassName?: string; } export declare class RadiosComponent extends React.Component<RadioProps, any> { static defaultProps: Partial<RadioProps>; toggleOption(option: Option): void; renderGroup(option: Option, index: number, valueArray: Array<Option>): JSX.Element; renderItem(option: Option, index: number, valueArray: Array<Option>): JSX.Element; render(): JSX.Element; } export declare const Radios: typeof RadiosComponent; export {};