소스 검색

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}`);


불러오는 중...
취소
저장