Paragraph

@SerialName(value = "paragraph")
data class Paragraph(val cols: Int, val fields: List<CardElement.Text> = emptyList()) : CardElement(source)

结构体区域文本

作用说明: 支持分栏结构,将模块分为左右两栏,根据顺序自动排列,支持更自由的文字排版模式,提高可维护性

e.g.

{
"type": "paragraph",
"cols": 3, //移动端忽略该参数
"fields" : [
],
}

规则:

Constructors

Link copied to clipboard
constructor(cols: Int, fields: List<CardElement.Text> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cols: Int
Link copied to clipboard