调整 schemas

This commit is contained in:
2betop 2020-10-13 13:25:30 +08:00
parent 79efa1c4b2
commit 7374e26f1f

View File

@ -4,6 +4,23 @@ import {Schema} from '../../types';
import Tabs, {TabSchema, TabsSchema} from '../Tabs';
import {FormBaseControl, FormControlSchema} from './Item';
export type TabControlSchema = TabSchema & {
/**
*
*/
controls?: Array<FormControlSchema>;
/**
* @deprecated tabs
*/
tabs?: any;
/**
* @deprecated fieldSet
*/
fieldSet?: any;
};
/**
* Tabs
* https://baidu.gitee.io/amis/docs/components/form/tabs
@ -13,24 +30,7 @@ export interface TabsControlSchema
Omit<TabsSchema, 'tabs'> {
type: 'tabs';
tabs: Array<
TabSchema & {
/**
*
*/
controls?: Array<FormControlSchema>;
/**
* @deprecated tabs
*/
tabs?: any;
/**
* @deprecated fieldSet
*/
fieldSet?: any;
}
>;
tabs: Array<TabControlSchema>;
}
export interface TabsProps extends RendererProps {}