UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

21 lines (20 loc) 682 B
/// <reference types="react" /> import React from 'react'; import SegmentedControlProps from './PropsType'; export default class SegmentedControl extends React.Component<SegmentedControlProps, any> { static defaultProps: { prefixCls: string; selectedIndex: number; disabled: boolean; values: never[]; onChange(): void; onValueChange(): void; style: {}; tintColor: string; }; constructor(props: any); componentWillReceiveProps(nextProps: any): void; onClick(e: any, index: any, value: any): void; renderSegmentItem(idx: any, value: any, selected: any): JSX.Element; render(): JSX.Element; }