UNPKG

amis

Version:

一种MIS页面生成工具

36 lines (35 loc) 974 B
/// <reference types="react" /> import { RendererProps } from '../../factory'; import Tabs, { TabSchema, TabsSchema } from '../Tabs'; import { FormBaseControl, FormControlSchema } from './Item'; export declare type TabControlSchema = TabSchema & { /** * 表单项集合 */ controls?: Array<FormControlSchema>; /** * @deprecated 请用类型 tabs */ tabs?: any; /** * @deprecated 请用类型 fieldSet */ fieldSet?: any; }; /** * Tabs * 文档:https://baidu.gitee.io/amis/docs/components/form/tabs */ export interface TabsControlSchema extends FormBaseControl, Omit<TabsSchema, 'tabs'> { type: 'tabs'; tabs: Array<TabControlSchema>; } export interface TabsProps extends RendererProps { } export declare class TabsRenderer extends Tabs { static defaultProps: { mountOnEnter: boolean; }; static propsList: Array<string>; renderTab: (tab: any, props: any, key: number) => JSX.Element; }