footer.js 319 B

12345678910111213141516171819202122
  1. Component({
  2. options: {
  3. addGlobalClass: true
  4. },
  5. properties: {
  6. disabled: {
  7. type: Boolean,
  8. value: false
  9. },
  10. onClick: {
  11. type: Function
  12. }
  13. },
  14. data: {
  15. badge: 0
  16. },
  17. methods: {
  18. clickBut(e) {
  19. this.triggerEvent("onClick", e.currentTarget.dataset.event)
  20. },
  21. }
  22. })