// components/table/table.js Component({ /** * 组件的属性列表 */ properties: { title: { type: String, value: "" }, list: { type: Array, value: [] }, listAll:{ type: Array, value:[] }, noHead:{ type: Boolean, value: false } }, // 初始化组件 attached: function () { this.setData({ 'scrollHeight': wx.getSystemInfoSync().screenHeight - 63 }) }, /** * 组件的初始数据 */ data: { scrollHeight: 0, }, /** * 组件的方法列表 */ methods: { toChannl: function () { }, } })