antd message 提示 jsx


 

   
      this.$message.open({
        key: 'noticeInfo',
        content: h => (
          <span>
            下载任务已提交,请前往
            <span style="color:#1890ff;cursor:pointer;" onClick={this.gotoReportPage}>
              报表中心
            </span>
            查看进度
          </span>
        )
      })



   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 => (
          <a-alert
            class="my-alert"
            type="success"
            message={
              <span>
                下载任务已提交,请前往
                <span style="color:#1890ff;cursor:pointer;" onClick={this.gotoReportPage}>
                  {' '}
                  报表中心{' '}
                </span>{' '}
                查看进度
              </span>
            }
          ></a-alert>
        ),
        onClick: () => {
          console.log('Notification Clicked!')
        }
      })

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM