跳到主要内容

title-text

<data-view.title-text>

构件 title-text

Examples

Basic

Playground

Stroke

Playground

Gradient

Playground

Properties

NameDescriptionTypeDefaultRequired
type

文本样式,normal 纯白, stroke 渐变加描边, gradient 渐变

TitleType "normal"
text

标题文本

string -
fontSize

字体大小

CSSProperties["fontSize"] 42px
fontWeight

字体粗细

CSSProperties["fontWeight"] 500
letterSpacing

字体间距

CSSProperties["letterSpacing"] 17px

Type references

TitleType

"normal" | "stroke" | "gradient"