dumi icon indicating copy to clipboard operation
dumi copied to clipboard

bug: 收集组件 Props 的时候同名文件会被覆盖

Open onlyling opened this issue 2 years ago • 3 comments

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?

不同文件夹下的同名文件被覆盖可。

onlyling avatar Mar 09 '22 01:03 onlyling

mark

eileenchen710 avatar Mar 14 '22 11:03 eileenchen710

mark

klxin avatar Jul 05 '22 10:07 klxin

使用API export的时候,导出的同名会被覆盖

zhaozilong123 avatar Aug 08 '22 11:08 zhaozilong123