微信小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
656 B

  1. // component/iconLoading/iconLoading.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. innerText: {
  8. type: String,
  9. value: 'default value',
  10. }
  11. },
  12. /**
  13. * 组件的初始数据
  14. */
  15. data: {
  16. isShowLoading: false
  17. },
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. //隐藏弹框
  23. hideLoading() {
  24. this.setData({
  25. isShowLoading: false
  26. })
  27. },
  28. //展示弹框
  29. showLoading() {
  30. this.setData({
  31. isShowLoading: true
  32. })
  33. }
  34. }
  35. })