table.js 638 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // components/table/table.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. title: {
  8. type: String,
  9. value: ""
  10. },
  11. list: {
  12. type: Array,
  13. value: []
  14. },
  15. listAll:{
  16. type: Array,
  17. value:[]
  18. },
  19. noHead:{
  20. type: Boolean,
  21. value: false
  22. }
  23. },
  24. // 初始化组件
  25. attached: function () {
  26. this.setData({
  27. 'scrollHeight': wx.getSystemInfoSync().screenHeight - 63
  28. })
  29. },
  30. /**
  31. * 组件的初始数据
  32. */
  33. data: {
  34. scrollHeight: 0,
  35. },
  36. /**
  37. * 组件的方法列表
  38. */
  39. methods: {
  40. toChannl: function () {
  41. },
  42. }
  43. })