Documentation
¶
Index ¶
- func RenderCreator() protocol.CompRender
- type CommonOutPutForm
- type ComponentOutPutForm
- func (i *ComponentOutPutForm) GenComponentState(c *apistructs.Component) error
- func (i *ComponentOutPutForm) GetInParams() error
- func (i *ComponentOutPutForm) Render(ctx context.Context, c *apistructs.Component, ...) (err error)
- func (i *ComponentOutPutForm) RenderListOutPutForm() error
- func (i *ComponentOutPutForm) RenderOnChange() ([]PropChangeOption, error)
- func (i *ComponentOutPutForm) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
- func (i *ComponentOutPutForm) RenderUpdateOutPutForm() error
- func (i *ComponentOutPutForm) SetCtxBundle(b protocol.ContextBundle) error
- func (i *ComponentOutPutForm) SetProps() error
- type Data
- type DeleteOperation
- type InParams
- type OnChangeOperation
- type OpMetaInfo
- type OperationBaseInfo
- type OperationInfo
- type ParamData
- type PropChangeOption
- type PropColumn
- type PropRender
- type PropRenderProp
- type PropRenderRule
- type PropsKey
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type CommonOutPutForm ¶
type CommonOutPutForm struct {
Version string `json:"version,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Props map[string]interface{} `json:"props,omitempty"`
State State `json:"state,omitempty"`
Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"`
Data Data `json:"data"`
InParams InParams `json:"inParams,omitempty"`
}
type ComponentOutPutForm ¶
type ComponentOutPutForm struct {
CommonOutPutForm
// contains filtered or unexported fields
}
func (*ComponentOutPutForm) GenComponentState ¶
func (i *ComponentOutPutForm) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*ComponentOutPutForm) GetInParams ¶
func (i *ComponentOutPutForm) GetInParams() error
func (*ComponentOutPutForm) Render ¶
func (i *ComponentOutPutForm) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*ComponentOutPutForm) RenderListOutPutForm ¶
func (i *ComponentOutPutForm) RenderListOutPutForm() error
func (*ComponentOutPutForm) RenderOnChange ¶
func (i *ComponentOutPutForm) RenderOnChange() ([]PropChangeOption, error)
可编辑器的初始值
func (*ComponentOutPutForm) RenderProtocol ¶
func (i *ComponentOutPutForm) RenderProtocol(c *apistructs.Component, g *apistructs.GlobalStateData)
func (*ComponentOutPutForm) RenderUpdateOutPutForm ¶
func (i *ComponentOutPutForm) RenderUpdateOutPutForm() error
func (*ComponentOutPutForm) SetCtxBundle ¶
func (i *ComponentOutPutForm) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
func (*ComponentOutPutForm) SetProps ¶
func (i *ComponentOutPutForm) SetProps() error
type DeleteOperation ¶
type DeleteOperation OperationInfo
type OnChangeOperation ¶
type OnChangeOperation OperationInfo
type OpMetaInfo ¶
type OpMetaInfo struct {
apistructs.AutotestSceneRequest
SelectOption []PropChangeOption `json:"selectOption,omitempty"`
}
func GetOpsInfo ¶
func GetOpsInfo(opsData interface{}) (*OpMetaInfo, error)
type OperationBaseInfo ¶
type OperationBaseInfo struct {
Key string `json:"key"`
// 操作展示名称
Text string `json:"text,omitempty"`
// 确认提示
Confirm string `json:"confirm,omitempty"`
// 前端操作是否需要触发后端
Reload bool `json:"reload"`
Disabled bool `json:"disabled"`
DisabledTip string `json:"disabledTip"`
FillMeta string `json:"fillMeta"`
}
type OperationInfo ¶
type OperationInfo struct {
OperationBaseInfo
Meta OpMetaInfo `json:"meta"`
}
type PropChangeOption ¶
type PropColumn ¶
type PropColumn struct {
Title string `json:"title"`
Key PropsKey `json:"key"`
Width int64 `json:"width"`
Flex int64 `json:"flex"`
Render PropRender `json:"render"`
}
type PropRender ¶
type PropRender struct {
Type string `json:"type,omitempty"`
ValueConvertType string `json:"valueConvertType,omitempty"`
Options []PropChangeOption `json:"options,omitempty"`
Required bool `json:"required,omitempty"`
UniqueValue bool `json:"uniqueValue,omitempty"`
Operations map[string]interface{} `json:"operations,omitempty"`
Rules []PropRenderRule `json:"rules,omitempty"`
Props PropRenderProp `json:"props,omitempty"`
}
type PropRenderProp ¶
type PropRenderProp struct {
MaxLength int64 `json:"maxLength,omitempty"`
Options []PropChangeOption `json:"options,omitempty"`
}
type PropRenderRule ¶
type State ¶
type State struct {
AutotestSceneRequest apistructs.AutotestSceneRequest `json:"autotestSceneRequest"`
List []apistructs.AutoTestSceneOutput `json:"list"`
SceneId uint64 `json:"sceneId"`
}
Click to show internal directories.
Click to hide internal directories.