| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- ({
- type: 'recycle-list',
- attr: {
- append: 'tree',
- listData: [
- { type: 'A' },
- { type: 'B', poster: 'yy', title: 'y' },
- { type: 'A' }
- ],
- switch: 'type',
- alias: 'item'
- },
- children: [{
- type: 'cell-slot',
- attr: { append: 'tree', case: 'A' },
- children: [{
- type: 'div',
- attr: {
- '@isComponentRoot': true,
- '@componentProps': {}
- },
- classList: ['banner'],
- children: [{
- type: 'text',
- classList: ['title'],
- attr: { value: 'BANNER' }
- }]
- }, {
- type: 'text',
- attr: { value: '----' }
- }, {
- type: 'div',
- attr: {
- '@isComponentRoot': true,
- '@componentProps': {}
- },
- classList: ['footer'],
- children: [{
- type: 'text',
- classList: ['copyright'],
- attr: { value: 'All rights reserved.' }
- }]
- }]
- }, {
- type: 'cell-slot',
- attr: { append: 'tree', case: 'B' },
- children: [{
- type: 'div',
- attr: {
- '@isComponentRoot': true,
- '@componentProps': {}
- },
- classList: ['banner'],
- children: [{
- type: 'text',
- classList: ['title'],
- attr: { value: 'BANNER' }
- }]
- }, {
- type: 'div',
- attr: {
- '@isComponentRoot': true,
- '@componentProps': {
- imageUrl: { '@binding': 'item.poster' },
- title: { '@binding': 'item.title' }
- }
- },
- children: [{
- type: 'image',
- classList: ['image'],
- attr: {
- src: { '@binding': 'imageUrl' }
- }
- }, {
- type: 'text',
- classList: ['title'],
- attr: {
- value: { '@binding': 'title' }
- }
- }]
- }]
- }]
- })
|