mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
feat(types): add IPublicTypeInstanceOf to prop-types
This commit is contained in:
parent
50aa15cd85
commit
2788b02ab4
@ -3,7 +3,7 @@ import { IPublicTypePropConfig } from './';
|
|||||||
|
|
||||||
export type IPublicTypePropType = IPublicTypeBasicType | IPublicTypeRequiredType | IPublicTypeComplexType;
|
export type IPublicTypePropType = IPublicTypeBasicType | IPublicTypeRequiredType | IPublicTypeComplexType;
|
||||||
export type IPublicTypeBasicType = 'array' | 'bool' | 'func' | 'number' | 'object' | 'string' | 'node' | 'element' | 'any';
|
export type IPublicTypeBasicType = 'array' | 'bool' | 'func' | 'number' | 'object' | 'string' | 'node' | 'element' | 'any';
|
||||||
export type IPublicTypeComplexType = IPublicTypeOneOf | IPublicTypeOneOfType | IPublicTypeArrayOf | IPublicTypeObjectOf | IPublicTypeShape | IPublicTypeExact;
|
export type IPublicTypeComplexType = IPublicTypeOneOf | IPublicTypeOneOfType | IPublicTypeArrayOf | IPublicTypeObjectOf | IPublicTypeShape | IPublicTypeExact | IPublicTypeInstanceOf;
|
||||||
|
|
||||||
export interface IPublicTypeRequiredType {
|
export interface IPublicTypeRequiredType {
|
||||||
type: IPublicTypeBasicType;
|
type: IPublicTypeBasicType;
|
||||||
@ -40,3 +40,9 @@ export interface IPublicTypeExact {
|
|||||||
value: IPublicTypePropConfig[];
|
value: IPublicTypePropConfig[];
|
||||||
isRequired?: boolean;
|
isRequired?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IPublicTypeInstanceOf {
|
||||||
|
type: 'instanceOf';
|
||||||
|
value: IPublicTypePropConfig;
|
||||||
|
isRequired?: boolean;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user