// component/loadingstatus/loadingstatus.js /** * 加载状态组件 * 配合 bLoadingStatus 使用 * @see '/base/behaviors/bLoadingStatus.js' */ Component({ options: { addGlobalClass: true }, /** * 组件的属性列表 */ properties: { scrollable: { type: Boolean, value: true }, loading: { type: Boolean, value: false }, needLoadMore: { type: Boolean, value: false }, nodata: { type: Boolean, value: false }, }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { gotoMore() { this.triggerEvent('gotoMore') } } })