amis icon indicating copy to clipboard operation
amis copied to clipboard

each组件 与 service 配合,如何配置?

Open icodingx opened this issue 6 years ago • 1 comments

{
    "type": "service",
    "api": {
        "url": "/xxxec/7/6?category=${category}",
        "sendOn": "category"
    },
    "body": {
        "type": "each",
        "items": {
            "tpl": "<span class='label label-default'>${data.ProdName}</span> ",
            "type": "tpl"
        },
        "value": "${data.rows}"
    }
}

取不到值

icodingx avatar Jan 12 '20 06:01 icodingx

语法不对,没有 data.

{
        "type": "each",
        "name": "rows",
        "items": {
            "tpl": "<span class='label label-default'>${ProdName}</span> ",
            "type": "tpl"
        }
    }

2betop avatar Jan 13 '20 01:01 2betop