dumi icon indicating copy to clipboard operation
dumi copied to clipboard

fix: 修复非组件属性value被替换为$u问题

Open binyellow opened this issue 7 months ago • 3 comments

🤔 这个变动的性质是?/ What is the nature of this change?

  • [ ] 新特性提交 / New feature
  • [x] bug 修复 / Fix bug
  • [ ] 样式优化 / Style optimization
  • [ ] 代码风格优化 / Code style optimization
  • [ ] 性能优化 / Performance optimization
  • [ ] 构建优化 / Build optimization
  • [ ] 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • [ ] 重构代码或样式 / Refactor code or style
  • [ ] 测试相关 / Test related
  • [ ] 其他 / Other

🔗 相关 Issue / Related Issue

https://github.com/umijs/dumi/issues/2170

💡 需求背景和解决方案 / Background or solution

非组件属性名称,被正则误替换为$u,造成例如Tree组件等content内容显示异常问题,只匹配组件的属性名称,replace属性

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English fixed the issue where non-component attribute value was replaced with $u
🇨🇳 Chinese 修复非组件属性value被替换为$u问题

binyellow avatar Jul 18 '24 15:07 binyellow