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

希望Code组件可以自定义起始行号 #5816

Open
3 tasks done
Croyyin opened this issue Mar 25, 2024 · 0 comments · May be fixed by #5818
Open
3 tasks done

希望Code组件可以自定义起始行号 #5816

Croyyin opened this issue Mar 25, 2024 · 0 comments · May be fixed by #5818
Labels
feature request New feature or request

Comments

@Croyyin
Copy link

Croyyin commented Mar 25, 2024

问题的清晰而简明的描述

您好,我最近在使用 Naive UI 中的 Code 组件来解释一整个文件中每个部分的作用时,我首先给出了一个完整文件内容(用Code组件展示),当我希望在下文引用该文件中某个代码块时(用Code组件展示),我希望这个代码块的起始行号从它在完整文件中的行号开始,而不是从1开始。

建议的解决方案

希望在Code组件中提供一个设置自定义起始行号的参数

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@Croyyin Croyyin added the feature request New feature or request label Mar 25, 2024
@jahnli jahnli linked a pull request Mar 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant