gx
queenwuli
2021-01-11 1d1e327a1cbf8bd822078a9f71894f25ddcee437
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()
         }
      }
   }
}