pkg

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorTextMain = "text-main"
	ColorTextDesc = "text-desc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Props

type Props struct {
	RenderType string     `json:"renderType"`
	Value      PropsValue `json:"value"`
}

type PropsValue

type PropsValue struct {
	Direction string         `json:"direction"`
	Text      PropsValueText `json:"text"`
}

type PropsValueText

type PropsValueText []PropsValueTextItem

type PropsValueTextItem

type PropsValueTextItem struct {
	StyleConfig PropsValueTextStyleConfig `json:"styleConfig"`
	Text        string                    `json:"text"`
}

type PropsValueTextStyleConfig

type PropsValueTextStyleConfig struct {
	Bold       bool   `json:"bold,omitempty"`
	Color      string `json:"color"`
	FontSize   uint64 `json:"fontSize,omitempty"`
	LineHeight uint64 `json:"lineHeight,omitempty"`
}

type TextValue

type TextValue struct {
	Value      string
	Kind       string
	ValueColor string
}

func (*TextValue) ConvertToProps

func (tv *TextValue) ConvertToProps() Props

Jump to

Keyboard shortcuts

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