padding表示组件的配置项类型为边距套件,支持定义上下左右四个边的内边距数值。

配置项说明

字段含义数据类型默认值备注
min最小值number0无。
max最大值numberInfinity无。

值说明

条件数据类型示例默认值
object
{
  "top": 5,
  "bottom": 10,
  "left": 10,
  "right": 5
}
{
  "top": 5,
  "bottom": 10,
  "left": 10,
  "right": 5
}

配置示例

内边距
{
  "padding": {
    "type": "padding",
    "name": "内边距",
    "default": {
      "top": 5,
      "bottom": 10,
      "left": 10,
      "right": 5
    },
    "min": 0,
    "max": 1000
  }
}