Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TypeOperation = map[string][]Option{
"role": {
{
Name: "email",
Value: "email",
},
{
Name: "message",
Value: "mbox",
},
},
"user": {
{
Name: "邮箱",
Value: "email",
},
{
Name: "站内信",
Value: "zhanneixin",
},
},
"dingding": {
{
Name: "DingTalk",
Value: "dingding",
},
},
"webhook": {
{
Name: "webhook",
Value: "webhook",
},
},
"external_user": {
{
Name: "邮箱",
Value: "email",
},
},
}
)
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ComponentModel ¶
type ComponentModel struct { CtxBdl protocol.ContextBundle Type string `json:"type"` Operations ModalOperation `json:"operations"` Props Props `json:"props"` State State `json:"state"` }
func (*ComponentModel) Export ¶
func (m *ComponentModel) Export(c *apistructs.Component) error
func (*ComponentModel) Import ¶
func (m *ComponentModel) Import(c *apistructs.Component) error
func (*ComponentModel) Render ¶
func (m *ComponentModel) Render(ctx context.Context, c *apistructs.Component, scenario apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, _ *apistructs.GlobalStateData) error
type ComponentProps ¶
type Field ¶
type Field struct { Key string `json:"key"` Label string `json:"label"` Component string `json:"component"` Required bool `json:"required"` ComponentProps ComponentProps `json:"componentProps"` RemoveWhen [][]RemoveWhen `json:"removeWhen"` Disabled bool `json:"disabled"` }
type ModalOperation ¶
type ModalOperation struct {
Submit Submit `json:"submit"`
}
type RemoveWhen ¶
type TargetInfo ¶
Click to show internal directories.
Click to hide internal directories.