stateful-v-model.vdom.js 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ({
  2. type: 'recycle-list',
  3. attr: {
  4. listData: [
  5. { type: 'A' },
  6. { type: 'A' }
  7. ],
  8. templateKey: 'type',
  9. alias: 'item'
  10. },
  11. children: [{
  12. type: 'cell-slot',
  13. attr: { templateType: 'A' },
  14. children: [{
  15. type: 'div',
  16. attr: {
  17. '@isComponentRoot': true,
  18. '@componentProps': {
  19. message: 'No binding'
  20. }
  21. },
  22. children: [{
  23. type: 'text',
  24. style: {
  25. height: '80px',
  26. fontSize: '60px',
  27. color: '#41B883'
  28. },
  29. attr: {
  30. value: { '@binding': 'output' }
  31. }
  32. }, {
  33. type: 'input',
  34. event: ['input'],
  35. style: {
  36. fontSize: '50px',
  37. color: '#666666',
  38. borderWidth: '2px',
  39. borderColor: '#41B883'
  40. },
  41. attr: {
  42. type: 'text',
  43. value: 0
  44. }
  45. }]
  46. }]
  47. }]
  48. })