Ant-design: Alert警告提示框如何给内容添加链接??

Created on 5 Nov 2016  ·  3Comments  ·  Source: ant-design/ant-design

请完善你们的企业信息 >> 我要完善

我需要在警告框提示用户未完善信息,并且给个连接跳转去完善,但我弄了半个小时了都不知道怎么实现,把自己能想到的都想了,只能来这里求助了。

Most helpful comment

看文档,message 就是 React.Node。

 const message =  (
  <div>
    请完善你们的企业信息 >><Link href="/message/baseinfo">我要完善</Link>;
  </div>
 );

<Alert message={message} type="warning" />

All 3 comments

看文档,message 就是 React.Node。

 const message =  (
  <div>
    请完善你们的企业信息 >><Link href="/message/baseinfo">我要完善</Link>;
  </div>
 );

<Alert message={message} type="warning" />

Ant Design team use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions in Stack Overflow or Segment Fault, then apply tag antd and react to your questions.

You should read documentation & FAQ and search issues before ask a question, THX!

It will be better if you read smart questions(提问的智慧).

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericdai picture ericdai  ·  3Comments

Orbyt picture Orbyt  ·  3Comments

PeteAndersen picture PeteAndersen  ·  3Comments

longhuasishen picture longhuasishen  ·  3Comments

plandem picture plandem  ·  3Comments