antd-mobile
Version:
基于 React 的移动设计规范实现
20 lines (19 loc) • 655 B
TypeScript
/// <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: {};
};
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;
}