Skip to content

升级diff2html到最新版本,增加参数值 #25

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

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

MangoTsing
Copy link

showFile 参数升级为 drawFileList

增加 drawFileList 可传递参数
增加 renderNothingWhenEmpty 可传递参数
增加 diffStyle 可传递参数

———————— 以上为 diff2html 原生参数

增加 fileName 可传递参数
—— 用于展示文件对比列表时的文件名显示

增加 isShowNoChange 可传递参数
—— 当noDiff时,通过一个讨巧的方式将两个文件对比出来,展示源代码

如果有更好的实现方式可以给我建议,我认为 fileName 和 isShowNoChange 还是十分有必要的!

@ddchef ddchef merged commit 608bab6 into ddchef:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants