nutui-react icon indicating copy to clipboard operation
nutui-react copied to clipboard

fix(Dialog): 修复小程序中content内容无法滚动的问题

Open boiboif opened this issue 1 year ago • 2 comments

🤔 这个变动的性质是?

  • [ ] 新特性提交
  • [x] 日常 bug 修复
  • [ ] 站点、文档改进
  • [ ] 演示代码改进
  • [ ] 组件样式/交互改进
  • [ ] TypeScript 定义更新
  • [ ] 包体积优化
  • [ ] 性能优化
  • [ ] 功能增强
  • [ ] 国际化改进
  • [ ] 重构
  • [ ] 代码风格优化
  • [ ] 测试用例
  • [ ] 分支合并
  • [ ] 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

由于最外层View设置了catchMove并且默认为true,Dialog组件中content内容溢出后无法滚动。

<Dialog title="自定义内容区域">
     <div>
         {'文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容'.repeat(100)}
      </div>
</Dialog>

before: before after: after

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

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

  • [x] 文档已补充或无须补充
  • [ ] 代码演示已提供或无须提供
  • [ ] TypeScript 定义已补充或无须补充
  • [ ] fork仓库代码是否为最新避免文件冲突
  • [ ] Files changed 没有 package.json lock 等无关文件

boiboif avatar May 09 '24 03:05 boiboif

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (next@54186a7). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2232   +/-   ##
=======================================
  Coverage        ?   85.85%           
=======================================
  Files           ?      217           
  Lines           ?    22841           
  Branches        ?     2479           
=======================================
  Hits            ?    19610           
  Misses          ?     3226           
  Partials        ?        5           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 09 '24 03:05 codecov[bot]

在业务实现中自己写个 scrollview 吧

oasis-cloud avatar May 10 '24 01:05 oasis-cloud