import { Component, RuntimeScene, VirtualChildComponent } from '@easytwin/runtime'; import { UISchema, UISchemaFunc } from '../../../type'; import * as React from 'react'; interface TabsProps { comp: Component | VirtualChildComponent | RuntimeScene; allowEmpty?: boolean; disableFold?: boolean; title: string; name: string; value: T[]; childSchema: UISchema | UISchemaFunc; /** 是否显示连接线 */ showConnectionLine?: boolean; /** 添加按钮触发后新增的数据 */ onAddItem: () => T; onChange?: (name: string, value: T[]) => void; onConfirm: (name: string, value: T[]) => void; /** 是否显示按钮 */ showActions?: boolean; /** 是否使用value的name作为tab名称 */ useValueName?: boolean; /** 切换tab时触发 */ onTabChange?: (index: number | undefined, id: string | undefined) => void; /** 覆写内部的添加逻辑(需要自行处理数据的保存和同步, item为onAddItem的返回值 */ onItemAdd?: (item: T) => void; /** 覆写内部的添加逻辑(需要自行处理数据的保存和同步)*/ onItemRemove?: (item: T) => void; selectKey?: string; setSelectKey?: (key: string | undefined) => void; } export declare function Tabs(props: TabsProps): React.JSX.Element; export {};