瀏覽代碼

upload

ctt_ywq
HolyKnightIX 2 年之前
父節點
當前提交
fdb95c7041
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      src/components/views/turing.vue

+ 6
- 4
src/components/views/turing.vue 查看文件

@@ -284,11 +284,13 @@ export default {
},
goView(id) {
document.querySelector("#" + id).scrollIntoView({
behavior: "smooth", //定义动画过渡效果"auto"或 "smooth" 之一。默认为 "auto"。
block: "start", //定义垂直方向的对齐, "start", "center", "end", 或 "nearest"之一。默认为 "start"。
inline: "nearest", //"start", "center", "end", 或 "nearest"之一。默认为 "nearest"。
//定义动画过渡效果"auto"或 "smooth" 之一。默认为 "auto"。
block: "start",
//定义垂直方向的对齐, "start", "center", "end", 或 "nearest"之一。默认为 "start"。
inline: "nearest",
//"start", "center", "end", 或 "nearest"之一。默认为 "nearest"。
behavior: "smooth",
});
// console.log(document.querySelector(id),);
},
goPages(path) {
this.$router.push(`/${path}`);


Loading…
取消
儲存