message.js 487 B

1234567891011121314151617181920212223242526272829
  1. export default {
  2. created() {
  3. if (this.type === 'message') {
  4. // 获取自组件对象
  5. this.maskShow = false
  6. this.children = null
  7. }
  8. },
  9. created() {
  10. if (this.type === 'message') {
  11. // 不显示遮罩
  12. this.maskShow = false
  13. // 获取子组件对象
  14. this.childrenMsg = null
  15. }
  16. },
  17. methods: {
  18. customOpen() {
  19. if (this.childrenMsg) {
  20. this.childrenMsg.open()
  21. }
  22. },
  23. customClose() {
  24. if (this.childrenMsg) {
  25. this.childrenMsg.close()
  26. }
  27. }
  28. }
  29. }