UNPKG

@linkdesign/screen

Version:

屏组件库,但使用场景又不局限于屏。主要用于BI、大盘和屏

26 lines (25 loc) 783 B
import React, { Component } from 'react'; import { ITitle } from '../title'; interface IItemProps extends ITitle { dataKey?: string | number; children: React.ReactNode; } export interface ISingleSelect extends ITitle { activeKey?: string | number; defaultActiveKey?: string | number; onChange?: (key: string | number) => void; } interface IState { activeKey: string | number; } declare class Item extends Component<IItemProps, IState> { constructor(props: IItemProps); render(): JSX.Element; } declare class SingleSelect extends Component<ISingleSelect, IState> { static Item: typeof Item; constructor(props: ISingleSelect); componentDidUpdate(prevProps: ISingleSelect): void; render(): React.ReactNode; } export default SingleSelect;