mt_block_detail_item

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorTextMain   = "text-main"
	ColorTextDesc   = "text-desc"
	ColorTextRed    = "red"
	ColorTextGreen  = "green"
	ColorTextOrange = "orange"
	ColorTextGrey   = "grey"
)

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 Text

type Text struct {
	base.DefaultProvider
}

func (*Text) Render

type TextValue

type TextValue struct {
	Value      string // 88%       / 100
	Kind       string // pass rate / done num
	ValueColor string
}

Jump to

Keyboard shortcuts

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