Prop
@types IPublicModelProp
> @since v1.0.0
Overview
Property model
Properties
id
id
@type {string}
key
Key value
@type {string | number | undefined}
path
Returns the path of the current prop
@type {string[]}
node
Returns the owning node instance
@type {IPublicModelNode | null}
Related types: IPublicModelNode
slotNode
When this prop represents a Slot, returns the corresponding slotNode
@type {IPublicModelNode | undefined | null}
Related types: IPublicModelNode
Methods
setValue
Set value
/**
* Set value
* set value for this prop
* @param val
*/
setValue(val: IPublicTypeCompositeValue): void;
Related types: IPublicTypeCompositeValue
getValue
Get value
/**
* Get value
* get value of this prop
*/
getValue(): any;
remove
Remove value
/**
* Remove value
* remove value of this prop
* @since v1.0.16
*/
remove(): void;
@since v1.0.16
exportSchema
Export value
/**
* Export value
* export schema
* @param stage
*/
exportSchema(stage: IPublicEnumTransformStage): IPublicTypeCompositeValue;
Related types: