Skip to content

Conversation

@RylanBot
Copy link
Collaborator

@RylanBot RylanBot commented Dec 22, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

测试代码存档
import React, { useState } from 'react';
import { Button, Dialog } from 'tdesign-react';

const NestedDialogExample: React.FC = () => {
  const [outerVisible, setOuterVisible] = useState(false);
  const [innerVisible, setInnerVisible] = useState(false);

  return (
    <div style={{ padding: 20 }}>
      <Button onClick={() => setOuterVisible(true)}>打开外层 Dialog</Button>

      {/* 外层 Dialog */}
      <Dialog
        visible={outerVisible}
        header="外层 Dialog"
        onClose={() => {
          setOuterVisible(false);
        }}
      >
        <p>这是外层 Dialog 内容</p>
        <Button onClick={() => setInnerVisible(true)}>打开内层 Dialog</Button>

        {/* 内层 Dialog */}
        <Dialog visible={innerVisible} header="内层 Dialog" onClose={() => setInnerVisible(false)} closeBtn>
          <p>这是内层 Dialog 内容</p>
        </Dialog>
      </Dialog>
    </div>
  );
};

export default NestedDialogExample;

📝 更新日志

tdesign-react

  • fix(Dialog): 修复 1.16.0 的优化导致无法使用 esc 键关闭嵌套对话框的问题

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 22, 2025

  • tdesign-react-demo

    npm i https://pkg.pr.new/Tencent/tdesign-react@4030
    
    npm i https://pkg.pr.new/Tencent/tdesign-react/@tdesign-react/chat@4030
    

commit: 3fdb0f7

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

TDesign Component Site Preview Open

Component Preview
tdesign-react 完成
@tdesign-react/chat 完成

@uyarn uyarn self-requested a review January 4, 2026 08:09
@uyarn uyarn merged commit c6f2258 into develop Jan 4, 2026
1 check passed
@uyarn uyarn deleted the rylan/fix/dialog/esc branch January 4, 2026 08:15
@tdesign-bot tdesign-bot mentioned this pull request Jan 4, 2026
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants