render

package
v1.0.73 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkTarget

type LinkTarget string

LinkTarget 链接打开目标类型

const (
	LinkTargetSelf   LinkTarget = "_self"
	LinkTargetBlank  LinkTarget = "_blank"
	LinkTargetParent LinkTarget = "_parent"
	LinkTargetTop    LinkTarget = "_top"
)

链接打开目标

type TextLine

type TextLine []TextSnippet

TextLine 文本行

type TextSnippet

type TextSnippet struct {
	Type   TextSnippetType  `json:"type"`             // 类型(默认text)
	Text   string           `json:"text,omitempty"`   // 文本
	Icon   string           `json:"icon,omitempty"`   // 图标
	Link   string           `json:"link,omitempty"`   // 链接
	Style  TextSnippetStyle `json:"style,omitempty"`  // 样式
	Target LinkTarget       `json:"target,omitempty"` // 目标
}

TextSnippet 文本片段

type TextSnippetStyle

type TextSnippetStyle string

TextSnippetStyle 文本片段样式

const (
	TextSnippetStyleSecondary TextSnippetStyle = "secondary"
	TextSnippetStyleSuccess   TextSnippetStyle = "success"
	TextSnippetStyleWarning   TextSnippetStyle = "warning"
	TextSnippetStyleDanger    TextSnippetStyle = "danger"
)

文本样式

type TextSnippetType

type TextSnippetType string

TextSnippetType 文本片段类型

const (
	TextSnippetTypeText TextSnippetType = "text" // 文本
	TextSnippetTypeIcon TextSnippetType = "icon" // 图标
)

文本类型

Jump to

Keyboard shortcuts

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