template div div v-for=i index in items key=index marquee v-if=currentIndex === index ref=marquee style= display flex align-items stylealignitems
The code is a Vue component that creates a scrolling marquee. It fetches data from an API endpoint using the GetByMarqueeId function, and displays the fetched data in a marquee element. The marquee element scrolls horizontally with the specified scroll behavior and attributes such as scroll delay, scroll amount, font style, and text decoration. The marquee content is updated periodically based on the duration specified. The component also includes methods to start and stop the scrolling timer.
原文地址: https://www.cveoy.top/t/topic/isAO 著作权归作者所有。请勿转载和采集!