gx
queenwuli
2020-12-21 1f3406acbac28b5b98c8d9dde2557374b97c0ef9
hive-app/components/uni-popup/message.js
New file
@@ -0,0 +1,22 @@
export default {
   created() {
      if (this.type === 'message') {
         // 不显示遮罩
         this.maskShow = false
         // 获取子组件对象
         this.childrenMsg = null
      }
   },
   methods: {
      customOpen() {
         if (this.childrenMsg) {
            this.childrenMsg.open()
         }
      },
      customClose() {
         if (this.childrenMsg) {
            this.childrenMsg.close()
         }
      }
   }
}