Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type AddSceneOperation
- type ComponentFileTree
- func (i *ComponentFileTree) DragScene(from, to int) error
- func (i *ComponentFileTree) DragSceneSet(from, to int, projectId uint64) error
- func (i *ComponentFileTree) DragSceneToSceneSet(from, to int) error
- func (i *ComponentFileTree) GenComponentState(c *apistructs.Component) error
- func (i *ComponentFileTree) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentFileTree) RenderAddScene(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderClickScene(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderClickSceneSet(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderCopyScene(inParams InParams, event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderDeleteScene(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderDeleteSceneSet(event apistructs.ComponentEvent, inParams InParams) error
- func (i *ComponentFileTree) RenderDragHelper(inParams InParams) error
- func (i *ComponentFileTree) RenderExpandSceneSet(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderFileTree(inParams InParams) error
- func (i *ComponentFileTree) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
- func (i *ComponentFileTree) RenderRefSceneSet(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderSceneSets(inParams InParams) error
- func (i *ComponentFileTree) RenderUpdateScene(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) RenderUpdateSceneSet(event apistructs.ComponentEvent) error
- func (i *ComponentFileTree) SetCtxBundle(b protocol.ContextBundle) error
- func (i *ComponentFileTree) SetSceneSetClick(setID int)
- type DeleteOperation
- type DeleteOperationData
- type DragParams
- type InParams
- type Operation
- type OperationBase
- type Scene
- type SceneSet
- type SceneSetOperation
- type SceneSetOperationMeta
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type AddSceneOperation ¶
type AddSceneOperation struct {
OperationBase
}
type ComponentFileTree ¶
type ComponentFileTree struct { CtxBdl protocol.ContextBundle CompName string `json:"name"` Data []SceneSet `json:"data"` Operations map[string]interface{} `json:"operations"` State State `json:"state"` Props map[string]interface{} `json:"props"` }
func (*ComponentFileTree) DragScene ¶
func (i *ComponentFileTree) DragScene(from, to int) error
func (*ComponentFileTree) DragSceneSet ¶
func (i *ComponentFileTree) DragSceneSet(from, to int, projectId uint64) error
func (*ComponentFileTree) DragSceneToSceneSet ¶
func (i *ComponentFileTree) DragSceneToSceneSet(from, to int) error
func (*ComponentFileTree) GenComponentState ¶
func (i *ComponentFileTree) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentFileTree) Render ¶
func (i *ComponentFileTree) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentFileTree) RenderAddScene ¶
func (i *ComponentFileTree) RenderAddScene(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderClickScene ¶
func (i *ComponentFileTree) RenderClickScene(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderClickSceneSet ¶
func (i *ComponentFileTree) RenderClickSceneSet(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderCopyScene ¶
func (i *ComponentFileTree) RenderCopyScene(inParams InParams, event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderDeleteScene ¶
func (i *ComponentFileTree) RenderDeleteScene(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderDeleteSceneSet ¶
func (i *ComponentFileTree) RenderDeleteSceneSet(event apistructs.ComponentEvent, inParams InParams) error
func (*ComponentFileTree) RenderDragHelper ¶
func (i *ComponentFileTree) RenderDragHelper(inParams InParams) error
func (*ComponentFileTree) RenderExpandSceneSet ¶
func (i *ComponentFileTree) RenderExpandSceneSet(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderFileTree ¶
func (i *ComponentFileTree) RenderFileTree(inParams InParams) error
func (*ComponentFileTree) RenderProtocol ¶
func (i *ComponentFileTree) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
func (*ComponentFileTree) RenderRefSceneSet ¶
func (i *ComponentFileTree) RenderRefSceneSet(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderSceneSets ¶
func (i *ComponentFileTree) RenderSceneSets(inParams InParams) error
func (*ComponentFileTree) RenderUpdateScene ¶
func (i *ComponentFileTree) RenderUpdateScene(event apistructs.ComponentEvent) error
func (*ComponentFileTree) RenderUpdateSceneSet ¶
func (i *ComponentFileTree) RenderUpdateSceneSet(event apistructs.ComponentEvent) error
func (*ComponentFileTree) SetCtxBundle ¶
func (i *ComponentFileTree) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
func (*ComponentFileTree) SetSceneSetClick ¶
func (i *ComponentFileTree) SetSceneSetClick(setID int)
type DeleteOperation ¶
type DeleteOperationData ¶
type DeleteOperationData struct {
Key string `json:"key"`
}
type DragParams ¶
type OperationBase ¶
type SceneSet ¶
type SceneSet struct { Key string `json:"key"` Title string `json:"title"` Icon string `json:"icon"` IsColorIcon bool `json:"isColorIcon"` IsLeaf bool `json:"isLeaf"` ClickToExpand bool `json:"clickToExpand"` Selectable bool `json:"selectable"` Operations map[string]interface{} `json:"operations"` Children []Scene `json:"children"` Type string `json:"type"` }
type SceneSetOperation ¶
type SceneSetOperation struct { Key string `json:"key"` Text string `json:"text"` Reload bool `json:"reload"` Show bool `json:"show"` Meta SceneSetOperationMeta `json:"meta"` }
type SceneSetOperationMeta ¶
type State ¶
type State struct { ExpandedKeys []string `json:"expandedKeys"` SelectedKeys []string `json:"selectedKeys"` FormVisible bool `json:"formVisible"` SceneSetKey int `json:"sceneSetKey"` ActionType string `json:"actionType"` SetId__urlQuery string `json:"setId__urlQuery"` SceneId__urlQuery string `json:"sceneId__urlQuery"` SceneId uint64 `json:"sceneId"` DragParams DragParams `json:"dragParams"` PageNo int `json:"pageNo"` IsClickScene bool `json:"isClickScene"` IsClickFolderTable bool `json:"isClickFolderTable"` ClickFolderTableSceneID uint64 `json:"clickFolderTableSceneID"` }
Click to show internal directories.
Click to hide internal directories.