Merge remote-tracking branch 'baidu/master'

Change-Id: Ib2d85c49b0ad03ed71b1acebe9426a6d3e67c5e2
This commit is contained in:
2betop 2020-11-05 18:19:24 +08:00
commit db25ccbba5

View File

@ -10,13 +10,19 @@ order: 45
## 基本用法
```schema:height="160" scope="body"
```schema:height="160" scope="page"
{
"type": "each",
"value": ["A", "B", "C"],
"items": {
"type": "tpl",
"tpl": "<span class='label label-default m-l-sm'><%= this.item %></span> "
"type": "page",
"data": {
"arr": ["A", "B", "C"]
},
"body": {
"type": "each",
"name": "arr",
"items": {
"type": "tpl",
"tpl": "<span class='label label-default m-l-sm'><%= data.item %></span> "
}
}
}
```