amis icon indicating copy to clipboard operation
amis copied to clipboard

combo组件能否下选项的值映射到tabsLabelTpl中去?

Open xiahao90 opened this issue 5 months ago • 0 comments

实现场景:

如下图,我选择b的时候,希望tabsLabelTpl中显示b image

存在的问题:

请简单描述你现在遇到的不符合预期的问题...

当前方案:

请粘贴你当前方案的完整 amis schema 代码...

{
  "type": "page",
  "body": {
    "title": "",
    "type": "form",
    "mode": "horizontal",
    "autoFocus": false,
    "body": [
      {
        "type": "combo",
        "name": "combo101",
        "label": "组合多条多行",
        "multiple": true,
        "multiLine": true,
        "tabsLabelTpl": "类型:${index|plus}${value}",
        "value": [
          {}
        ],
        "tabsMode": true,
        "tabsStyle": "card",
        "maxLength": 3,
        "items": [
          {
            "name": "a",
            "label": "文本",
            "type": "input-text",
            "placeholder": "文本",
            "value": "",
            "size": "full"
          },
          {
            "name": "b",
            "label": "选项",
            "type": "select",
            "options": [
              "a",
              "b",
              "c"
            ],
            "size": "full"
          }
        ]
      }
    ],
    "submitText": null,
    "actions": []
  }
}

xiahao90 avatar Jan 24 '24 10:01 xiahao90