File tree Expand file tree Collapse file tree 7 files changed +1887
-2710
lines changed
Expand file tree Collapse file tree 7 files changed +1887
-2710
lines changed Original file line number Diff line number Diff line change 2626 install : false
2727 component : true
2828 browser : firefox
29- - name : Cypress Webkit
30- uses : cypress-io/github-action@v5
31- with :
32- install : false
33- component : true
34- browser : webkit
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ export default defineConfig({
44 component : {
55 video : false ,
66 viewportWidth : 1366 ,
7- experimentalWebKitSupport : true ,
87 viewportHeight : 768 ,
98 devServer : {
109 framework : 'vue' ,
Original file line number Diff line number Diff line change 2626<template >
2727 <div class =" Controls" >
2828 <fieldset >
29- <legend >Click </legend >
29+ <legend >Scroll </legend >
3030 <div >
3131 <label for =" Native" >
3232 <input
@@ -46,13 +46,13 @@ watch(
4646 value =" custom"
4747 v-model =" clickType"
4848 />
49- Custom JS Scroll
49+ Custom JS
5050 </label >
5151 </div >
5252 </fieldset >
5353
5454 <fieldset :disabled =" clickType === 'custom'" >
55- <legend >CSS scroll-behavior</legend >
55+ <legend >scroll-behavior</legend >
5656 <div >
5757 <label for =" Auto" >
5858 <input
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ const onClick = computed(() => (clickType.value === 'native' ? setActive : custo
7373 position : absolute ;
7474 left : -10px ;
7575 right : 10px ;
76- top : calc (var (--ActiveItemHeight ) * var (--ActiveIndex ));
76+ transform : translateY ( calc (var (--ActiveItemHeight ) * var (--ActiveIndex ) ));
7777 background-color : #00adb538 ;
78- transition : top 100ms ;
78+ transition : transform 100ms ;
7979 border-left : 4px solid #00adb5 ;
8080 border-radius : 0px 5px 5px 0px ;
8181}
Original file line number Diff line number Diff line change 11import { watch , computed , reactive } from 'vue'
22
33export function useFakeData ( length = 10 ) {
4- const parsedStart = parseInt ( sessionStorage . getItem ( 'firstNumber' ) || '0' )
5- const parsedEnd = parseInt ( sessionStorage . getItem ( 'lastNumber' ) || '0' )
6- const parsedLength = parsedEnd - parsedStart + 1
4+ const start = parseInt ( sessionStorage . getItem ( 'firstNumber' ) || '0' )
5+ const end = parseInt ( sessionStorage . getItem ( 'lastNumber' ) || '0' )
6+ const parsedLength = end - start + 1
77
88 const isMobile = window . matchMedia ( '(max-width: 610px)' ) . matches
99
@@ -12,8 +12,8 @@ export function useFakeData(length = 10) {
1212
1313 const sections = reactive (
1414 Array . from ( { length : parsedLength <= 1 ? length : parsedLength } , ( _ , index ) => ( {
15- id : `title_${ parsedStart + index } ` ,
16- title : `${ parsedStart + index } ` . repeat ( 6 ) . toUpperCase ( ) ,
15+ id : `title_${ start + index } ` ,
16+ title : `${ start + index } ` . repeat ( 6 ) . toUpperCase ( ) ,
1717 text : 'Text ' . repeat ( getInt ( minText , maxText ) ) ,
1818 } ) )
1919 )
Original file line number Diff line number Diff line change 5151 },
5252 "devDependencies" : {
5353 "@rollup/plugin-terser" : " ^0.4.3" ,
54- "@types/node" : " ^20.6.0 " ,
54+ "@types/node" : " ^20.6.2 " ,
5555 "@vitejs/plugin-vue" : " ^4.3.4" ,
5656 "animated-scroll-to" : " ^2.3.0" ,
5757 "cypress" : " ^13.2.0" ,
5858 "husky" : " ^8.0.3" ,
59- "playwright-webkit" : " ^1.38.0" ,
6059 "prettier" : " ^3.0.3" ,
6160 "typescript" : " ^5.2.2" ,
6261 "vite" : " 4.4.9" ,
You can’t perform that action at this time.
0 commit comments