Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ComponentBrowsePublic ¶
type ComponentBrowsePublic struct { Version string `json:"version,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Props Props `json:"props,omitempty"` State State `json:"state,omitempty"` Operations map[string]interface{} `json:"operations,omitempty"` // contains filtered or unexported fields }
func (*ComponentBrowsePublic) GenComponentState ¶
func (i *ComponentBrowsePublic) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentBrowsePublic) Render ¶
func (i *ComponentBrowsePublic) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
type Props ¶
type Props struct { Visible bool `json:"visible"` RenderType string `json:"renderType"` StyleConfig StyleConfig `json:"styleConfig"` Value map[string]interface{} `json:"value"` }
type StyleConfig ¶
Click to show internal directories.
Click to hide internal directories.