umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

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

Open binyellow opened 4 months ago

binyellow commented 4 months ago

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

🔗 相关 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问题
vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2024 3:06pm
binyellow commented 1 month ago

@PeachScript 老哥cc

PeachScript commented 1 month ago

@PeachScript 老哥cc

抱歉忘回了,我想下有没有正则以外的方案, @Jinbao1001 也看看这个 PR