emptyText

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type Command

type Command struct {
	Key     string `json:"key"`
	Target  string `json:"target"`
	JumpOut bool   `json:"jumpOut"`
	Visible bool   `json:"visible"`
}

type CommonText

type CommonText 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"`
}

type ComponentText

type ComponentText struct {
	CommonText
	// contains filtered or unexported fields
}

func (*ComponentText) GenComponentState

func (i *ComponentText) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentText) SetCtxBundle added in v1.2.1

func (i *ComponentText) SetCtxBundle(ctx context.Context) error

type Operation

type Operation struct {
	Key     string  `json:"key"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command"`
	Show    bool    `json:"show"`
}

type Props

type Props struct {
	Visible     bool                   `json:"visible"`
	RenderType  string                 `json:"renderType"`
	StyleConfig StyleConfig            `json:"styleConfig"`
	Value       map[string]interface{} `json:"value"`
}

type State

type State struct {
	IsEmpty bool `json:"isEmpty"`
}

type StyleConfig

type StyleConfig struct {
	FontSize   uint64 `json:"fontSize"`
	LineHeight uint64 `json:"lineHeight"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL