Smooth scroll for /api
This commit is contained in:
parent
79127f3503
commit
e5364bb446
1 changed files with 3 additions and 4 deletions
|
@ -51,7 +51,6 @@
|
||||||
return {
|
return {
|
||||||
content: {},
|
content: {},
|
||||||
htmlContent: "",
|
htmlContent: "",
|
||||||
markdownFile: "",
|
|
||||||
searchIndex: {},
|
searchIndex: {},
|
||||||
searchResults: {},
|
searchResults: {},
|
||||||
toc: {}
|
toc: {}
|
||||||
|
@ -69,10 +68,11 @@
|
||||||
highlightOffset: 60,
|
highlightOffset: 60,
|
||||||
ignoreSelector: ".toc-ignore",
|
ignoreSelector: ".toc-ignore",
|
||||||
scrollHistory: false,
|
scrollHistory: false,
|
||||||
scrollTo: -1,
|
scrollTo: 84,
|
||||||
selectors: "h2",
|
selectors: "h2",
|
||||||
showEffectSpeed: 0,
|
showEffectSpeed: 0,
|
||||||
smoothScroll: false,
|
smoothScroll: true,
|
||||||
|
smoothScrollSpeed: 0,
|
||||||
theme: "none"
|
theme: "none"
|
||||||
}).data("toc-tocify");
|
}).data("toc-tocify");
|
||||||
|
|
||||||
|
@ -156,7 +156,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
created: function () {
|
created: function () {
|
||||||
console.log(this.markdownFile);
|
|
||||||
this.$http.get(this.markdownFile).then(function (response) {
|
this.$http.get(this.markdownFile).then(function (response) {
|
||||||
this.htmlContent = md.render(response.body);
|
this.htmlContent = md.render(response.body);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue