@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
33 lines (32 loc) • 1.02 kB
TypeScript
import TabPane from '../../packages/tabpane/index.taro';
import { BasicComponent } from '../../utils/typings';
import React, { FunctionComponent } from 'react';
export type TabsTitle = {
title: string;
disabled: boolean;
active?: boolean;
value: string | number;
};
export interface TabsProps extends BasicComponent {
tabStyle: React.CSSProperties;
value: string | number;
defaultValue: string | number;
activeColor: string;
name: string;
direction: 'horizontal' | 'vertical';
activeType: 'line' | 'simple' | 'button' | 'divider';
actionButtonProps: {
fill: 'solid' | 'outline';
};
duration: number | string;
align: 'left' | 'right';
title: () => JSX.Element[];
onChange: (index: string | number) => void;
onClick: (index: string | number) => void;
autoHeight: boolean;
children?: React.ReactNode;
contentAnimation?: boolean;
}
export declare const Tabs: FunctionComponent<Partial<TabsProps>> & {
TabPane: typeof TabPane;
};