index.js 622 B

1234567891011121314151617181920212223242526272829303132333435
  1. Component({
  2. behaviors: [require('../common/share-behavior').default],
  3. properties: {
  4. capacity: {
  5. type: Number,
  6. value: 20
  7. },
  8. emitRate: {
  9. type: Number,
  10. value: 5
  11. },
  12. lifeTime:{
  13. type: Number,
  14. value: 3
  15. }
  16. },
  17. data: {
  18. loaded: false
  19. },
  20. lifetimes: {},
  21. methods: {
  22. handleReady({detail}) {
  23. },
  24. handleAssetsProgress: function({detail}) {
  25. console.log('assets progress', detail.value);
  26. },
  27. handleAssetsLoaded: function({detail}) {
  28. console.log('assets loaded', detail.value);
  29. this.setData({loaded: true});
  30. }
  31. }
  32. })