y-taro-ui
Version:
基于taro的表单解决方案 & 基础组件
32 lines (31 loc) • 847 B
TypeScript
import React from 'react';
import './index.less';
export declare type TabCurrent = {
key: string | number;
index: number;
left: number;
};
export interface TabsContext {
current: TabCurrent;
animated: boolean;
}
export interface TabPaneProps {
title: React.ReactNode;
key: string | number;
children: React.ReactNode;
$$key?: string | number;
}
export declare const TabPane: (props: TabPaneProps) => JSX.Element;
export interface TabsProps {
activeKey?: string;
animated?: boolean;
sticky?: boolean;
children: any[];
height?: number;
onChange?: (current: TabCurrent) => void;
right?: React.ReactNode;
}
export declare function Tabs(props: TabsProps): JSX.Element;
export declare namespace Tabs {
var TabPane: (props: TabPaneProps) => JSX.Element;
}