index.js 536 B

123456789101112131415161718192021222324252627282930313233
  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. }
  29. }
  30. })