微信小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536
  1. Component({
  2. options: {
  3. multipleSlots: true // 在组件定义时的选项中启用多slot支持
  4. },
  5. /**
  6. * 组件的属性列表
  7. */
  8. properties: {
  9. visible: {
  10. type: Boolean,
  11. value: false
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {},
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. popPreventTouchmove() { },
  23. popPreventTouchmove2() { },
  24. popPreventTouchmove3() { },
  25. cityChange() { },
  26. close() {
  27. this.triggerEvent('close')
  28. },
  29. handleClickMask(e) {
  30. // console.log(e)
  31. if (e.target.dataset.type !== 'unclose') this.close()
  32. }
  33. }
  34. })