Vue about setting scrollLeft value

clipboard.png

The

requirement is to select the sub-component date in the first-level page and automatically put the selected date to the leftmost end in the second-level page, the same sub-component used in both pages.
in the click event, you can scroll to the corresponding position by directly modifying the scrollLeft value by clicking the trigger. Now you need to set the value of scrollLeft to make it in the correct position when the page is loaded
this.$refs.dateScroll.scrollLeft = this.time*100;

Aug.19,2021

guess

this.time = ...
this.$nextTick(()=>{
   this.$refs.dateScroll.scrollLeft = this.time*100 + 'px' 
})

the first floor is good,
should use this.$nextTick (() = > {


Native js can solve

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e588a1-4d857.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e588a1-4d857.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?