cnyballk

Results 34 comments of cnyballk

https://g2.antv.vision/zh/docs/api/general/legend

react-docgen-typescript-dumi-tmp 是 fork 后修改的吗 @PeachScript 我觉得可以为它添加一个 maxPropDepth 的配置,修改 Parser ,新增 children 来放置子类型 示例: ![image](https://user-images.githubusercontent.com/25214319/137735316-472359cb-fe1a-4111-a3ab-da4f34be2cc8.png) ![image](https://user-images.githubusercontent.com/25214319/137735199-3e02c2cb-4e35-4292-ba93-cb29811dfa6e.png) 结果: ![image](https://user-images.githubusercontent.com/25214319/137735140-4b083ad3-34ed-4ba9-a46e-d90d28f65310.png)

> 感觉上给一个 filter 更实用?有些类型即便层级很浅我们也不希望解析的,比如 HTMLElement 我修改的时候有添加了一个数组过滤不再深入查询,不过当前只校验了js的数据类型,得再看看如何方便检查其他基础类型,展示上或许可以参考[https://ant.design/components/form-cn/#Interface]( https://ant.design/components/form-cn/#Interface)?

我有空先试试做个demo,看看效果

最近忙着团队绩效😵‍💫估计1月份才是个头

应该不需要深度,直接加个typeFilter的数组的props就行了,需要检测的加上就行,确实是展示才是问题 增加customTypeFilter ![image](https://user-images.githubusercontent.com/25214319/150689277-46458d6c-8bb0-453b-afff-b836a493f57a.png) 代码: ![image](https://user-images.githubusercontent.com/25214319/150689356-0c5f5d12-5da3-4d2e-956c-8a0e844115fe.png) 展示: ![image](https://user-images.githubusercontent.com/25214319/150689402-546a58d6-bbc5-46d9-8992-0faf6dad3ac8.png)

> 目前我自己改源码别的深度都能解析出来,但是Interface[]这种就定位不到这个Interface的声明,蹲一个解决方法 Interface[] 是啥

> > > 目前我自己改源码别的深度都能解析出来,但是Interface[]这种就定位不到这个Interface的声明,蹲一个解决方法 > > > > > > Interface[] 是啥 > > 就像下面这样: > > ```ts > interface InfoProps { > size: string | number; > } >...

目测是因为文件夹的名称与 locales 的匹配引起的问题