margin表示组件的配置项类型为外边框。

配置项说明

字段名 含义 类型 是否必选 备注
name 显示名 string
type 类型 string
default 默认值 object 不填时默认为空
min 最小值 number
max 最大值 number
components 模块 array 默认值为[“top”, “right”, “bottom”, “left”]

值说明

条件 数据类型 示例 默认值
object {
“top”: 20,
“right”: 30,
“bottom”: 20,
“left”: 30
}
{
“top”: 0,
“right”: 0,
“bottom”: 0,
“left”: 0
}

配置示例

image.png

  1. "margin": {
  2. "name": "外边距",
  3. "type": "margin",
  4. "default": {
  5. "top": 0,
  6. "left": 0,
  7. "bottom": 0,
  8. "right": 0
  9. }
  10. }