import React from 'react'; import XBaseLayout, { XBaseLayoutProps } from "../base/XBaseLayout"; import { TabBarProps } from './tab/TabBar'; import TabBarItem from "./tab/TabBarItem"; export interface XTabBarProps extends XBaseLayoutProps, TabBarProps { /** * 激活key */ activeKey?: string; } /** * 类似Tab页的导航栏,一般在手机页面的最下面 * @name 页签栏 * @groupName 折叠显示 */ export default class XTabBar extends XBaseLayout { static ComponentName: string; static Item: typeof TabBarItem; static defaultProps: { lazyChildren: boolean; styleType: string; hasBox: boolean; showBorder: any; overflow: string; boxStyle: {}; width: string; height: string; visible: boolean; grid: number[]; gridSpan: number[]; parent: string; pureRender: boolean; dataSourceUrl: string; filterData: {}; mustHasFilter: boolean; }; constructor(props: XTabBarProps); /** * 获取激活key */ GetActiveKey(): any; /** * 设置激活key * @param key */ SetActiveKey(key: any): void; render(): React.JSX.Element; }