Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 自动化表格是否可选择那些类型或类型集合不被收集到 #2077

Open
JackFeng7 opened this issue Apr 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@JackFeng7
Copy link

What problem does this feature solve?

比如说,我对antd的Button进行了封装,封装之后又扩展了几个字段,此时我API文档只想展示我新增的,而我继承的antd的Button 的类型我并不想展示出来,或者是分开展示,此时我只想强调我关注的属性,我继承的基础属性我只想挂个链接的方式去提醒我的用户。

Possible Solution (optional)

No response

@JackFeng7 JackFeng7 added the enhancement New feature or request label Apr 18, 2024
@JackFeng7
Copy link
Author

或许可以加一个属性描述配置,让我能主动显示是否要透出到API文档里

@layitf
Copy link

layitf commented May 28, 2024

你可以将你需要展示的属性单独写成一个interface定义,然后定义一个空组件使用这个interface,在文档的API中使用这个 空组件作为id。

缺点是空组件会在打包产物中输出,如果有asstes.json 也会收集这些空组件,

@huangchen1031
Copy link

或许可以加一个属性描述配置,让我能主动显示是否要透出到API文档里

#513

在1.0时代有一个PR解决了这个问题,2.0中没有继承这个变化,又变成了一个老生常谈的问题。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants