imageSelect表示组件的配置项类型为图片选择器

配置项说明

字段名 含义 类型 是否必选 备注
name 显示名 string
type 类型 string
default 默认值 string
options 配置项 array name:显示名称
value:值
src:显示的图片
optionsHandler 动态选项 string 此处填写方法名称,方法返回值必须符合options类型

值说明

条件 数据类型 示例 默认值
string “thingjs” “”

配置示例

image.png

  1. "total": {
  2. "name": "图片",
  3. "type": "imageSelect",
  4. "options": [
  5. {
  6. "name": "thingjs1",
  7. "value": "thingjs1",
  8. "src": "https://www.thingjs.com/guide/image/new/logo-w.png"
  9. },
  10. {
  11. "name": "thingjs2",
  12. "value": "thingjs2",
  13. "src": "https://www.thingjs.com/guide/image/new/logo-w.png"
  14. },
  15. {
  16. "name": "thingjs3",
  17. "value": "thingjs3",
  18. "src": "https://www.thingjs.com/guide/image/new/logo-w.png"
  19. },
  20. {
  21. "name": "thingjs4",
  22. "value": "thingjs4",
  23. "src": "https://www.thingjs.com/guide/image/new/logo-w.png"
  24. }
  25. ],
  26. "default": "thingjs1"
  27. }