| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- ({
- type: 'recycle-list',
- attr: {
- append: 'tree',
- listData: [
- { type: 'A' },
- { type: 'A' }
- ],
- switch: 'type',
- alias: 'item'
- },
- children: [{
- type: 'cell-slot',
- attr: { append: 'tree', case: 'A' },
- children: [{
- type: 'div',
- attr: {
- '[[repeat]]': {
- '@expression': 'item.list',
- '@index': 'index',
- '@alias': 'object'
- }
- },
- children: [{
- type: 'text',
- attr: {
- value: {
- '@binding': 'object.name'
- }
- }
- }, {
- type: 'text',
- attr: {
- '[[repeat]]': {
- '@expression': 'object',
- '@alias': 'v',
- '@key': 'k',
- '@index': 'i'
- },
- value: {
- '@binding': 'v'
- }
- }
- }]
- }]
- }]
- })
|