dumi
dumi copied to clipboard
bug: 收集组件 Props 的时候同名文件会被覆盖
Versions
- dumi: 1.1.39
- node: v16.13.0
- npm: yarn 1.22.17
- OS: MacOS 12.2.1 (21D62)
- Browser: 版本 99.0.4844.51(正式版本) (arm64)
Steps to reproduce
文件夹目录
|-- card
|--|-- card.tsx
|--|-- group.tsx
|-- text
|--|-- text.tsx
|--|-- group.tsx
card/index.md
### Card.Group
<API hideTitle src="./group.tsx" />
expt => CardGroup
API.tsx:30 data => {CardGroup: Array(1)}
text/index.md
### Text.Group
<API hideTitle src="./group.tsx" />
expt => TextGroup
API.tsx:30 data => {CardGroup: Array(1)}
What is Expected?
正确区分不同文件夹下同名文件。
What is actually happening?
不同文件夹下的同名文件被覆盖可。
mark
mark
使用API export的时候,导出的同名会被覆盖