index.js 408 B

12345678910111213141516171819202122
  1. Component({
  2. properties: {
  3. isGroup: true,
  4. callBack: Function,
  5. openDialog: Function
  6. },
  7. options: {
  8. addGlobalClass: true
  9. },
  10. data: {
  11. show: false,
  12. groupName: ''
  13. },
  14. methods: {
  15. addGroup() {
  16. this.triggerEvent("openDialog")
  17. },
  18. handleCallBack() {
  19. this.triggerEvent('callBack')
  20. }
  21. }
  22. })