antd messageプロンプトjsx

2612 ワード

1111
   
      this.$message.open({
        key: 'noticeInfo',
        content: h => (
          this.gotoReportPage}>
               
            
             
          
        )
      })



   beforeDestroy() {
    this.$message.destroy()
  },
  deactivated() {
    console.log('beforeRouteLeave  resultPage..')
    this.$message.close('exportNotice')
    // this.$notification.destroy()
  },


  this.$notification.open({
        key: 'exportNotice',
        class: 'myExportNotice',
        // duration: 9999,
        message: h => (
          alert
            class="my-alert"
            type="success"
            message={
              this.gotoReportPage}>
                  {' '}
                   {' '}
                {' '}
                 
              
            }
          >
        ),
        onClick: () => {
          console.log('Notification Clicked!')
        }
      })

 
2222