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