title

package
v1.0.0-RC Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.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 Props

type Props struct {
	Visible bool   `json:"visible"`
	Title   string `json:"title"`
	Level   int    `json:"level"`
	//TitleStyles TitleStyles `json:"titleStyles"`
	Subtitle       string `json:"subtitle"`
	NoMarginBottom bool   `json:"noMarginBottom"`
	Size           string `json:"size"`
}

type State

type State struct {
	ProsNum int `json:"prosNum"`
}

type Title

type Title struct {
	Type  string `json:"type"`
	Props Props  `json:"props"`
	State State  `json:"state"`
	// contains filtered or unexported fields
}

func (*Title) GenComponentState

func (this *Title) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*Title) SetCtxBundle

func (this *Title) SetCtxBundle(ctx context.Context) error

type TitleStyles

type TitleStyles struct {
	FontSize string `json:"fontSize"`
}

Jump to

Keyboard shortcuts

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