【问题标题】:is it Possible to Add Button in Antd Modal header?是否可以在 Antd 模态标题中添加按钮?
【发布时间】:2023-03-11 04:03:01
【问题描述】:

antd中创建的Modal现在需要在Modal的header部分添加自定义按钮,尝试了一些方法都没有成功。

【问题讨论】:

  • 请提供您已经尝试过的代码并澄清您的问题,不清楚您真正想要什么
  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: javascript reactjs ecmascript-6 antd


【解决方案1】:
<Modal title={<button>abc</button>} visible={isModalVisible}>
    <p>Some contents...</p>
    <p>Some contents...</p>
    <p>Some contents...</p>
  </Modal>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-16
    • 2013-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-30
    相关资源
    最近更新 更多