mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
Merge remote-tracking branch 'baidu/master'
Change-Id: Ib2d85c49b0ad03ed71b1acebe9426a6d3e67c5e2
This commit is contained in:
commit
db25ccbba5
@ -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> "
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user