[AnchorSmooth,GoTop]:添加两个锚点相关的功能,以及中英文版的markdown文档使用说明。 #945
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.AnchorSmooth:实现点击AnchorSmooth滑动到相应的锚点,而不是直接跳转;
2.GoTop:可以定制的回顶部功能按钮,包括按钮的出现时间,回到顶部时执行的回调函数。
*问题:GoTop组件需要的一些样式,直接放在了anchor目录下,没有做成默认样式,供用户选择。为了通过test将GoTop中导入的样式删除,在markdown文件中没有效果。
*说明:看过pr指南,并全部通过,才提交pr的。
Please makes sure these boxes are checked before submitting your PR, thank you!
master
branch.npm test
,npm run lint
andnpm run build
.Changes in this pull request
npm test
,npm run lint
andnpm run build
命令测试。