WordPress database error Table '3jwr3d329i222.wp_wb_bsl_stats' doesn't exist for query SELECT id FROM wp_wb_bsl_stats WHERE ymd='2023-06-10' AND `type`=1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rk-blogger/single.php'), get_header, locate_template, load_template, require_once('/themes/rk-blogger/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, WB_BSL_Site::wp_head, WB_BSL_Utils::add_push_log, do_action('wb_bsl_add_push_log'), WP_Hook->do_action, WP_Hook->apply_filters, WB_BSL_Stats::action_add_push_log, WB_BSL_Stats::inc_num WordPress database error Table '3jwr3d329i222.wp_wb_bsl_stats' doesn't exist for query SHOW FULL COLUMNS FROM `wp_wb_bsl_stats` made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/rk-blogger/single.php'), get_header, locate_template, load_template, require_once('/themes/rk-blogger/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, WB_BSL_Site::wp_head, WB_BSL_Utils::add_push_log, do_action('wb_bsl_add_push_log'), WP_Hook->do_action, WP_Hook->apply_filters, WB_BSL_Stats::action_add_push_log, WB_BSL_Stats::inc_num

vue-seamless-scroll无缝滚动组件使用方法详解

本文实例为大家分享了vue无缝滚动组件vue-seamless-scroll的具体实现代码,供大家参考,具体内容如下

vue-seamless-scroll无缝滚动组件使用方法详解插图

下载

 	cnpm i -S vue-seamless-scroll

main.js中引入:

 	import VueSeamlessScroll from 'vue-seamless-scroll'
 	Vue.use(VueSeamlessScroll)

使用:

 	<template>
 	     <div>
 	     <vue-seamless-scroll
 	     :data="listData"
 	     :class-option="seamlessScrollOption"
 	     style="
 	         border: 1px solid white;
 	         height: 200px;
 	         overflow: hidden;
 	         width: 200px;
 	         color: white;
 	         font-size: 18px;
 	         text-align: center;
 	     "
 	     >
 	     <ul>
 	         <li
 	         v-for="(item, index) in listData"
 	         :key="index"
 	         style="padding: 10px; margin: 5px"
 	         >
 	         <span class="title">{{ item.title }}:</span
 	         ><span class="date">{{ item.time }}</span>
 	         </li>
 	     </ul>
 	     </vue-seamless-scroll>
 	     </div>
 	</template>
 	 
 	<script>
 	 
 	export default {
 	     props: {},
 	     data() {
 	     return {
 	     listData: [
 	     {
 	         title: "张三",
 	         time: "2021-08-09",
 	     },
 	     {
 	         title: "李四",
 	         time: "2021-08-09",
 	     },
 	     {
 	         title: "王五",
 	         time: "2021-08-09",
 	     },
 	     {
 	         title: "赵六",
 	         time: "2021-08-09",
 	     },
 	     {
 	         title: "前七",
 	         time: "2021-08-09",
 	     },
 	     {
 	         title: "孙八",
 	         time: "2021-08-09",
 	     },
 	     ],
 	     };
 	     },
 	     computed: {
 	     seamlessScrollOption() {
 	     return {
 	     step: 0.2, // 数值越大速度滚动越快
 	     limitMoveNum: 2, // 开始无缝滚动的数据量 this.dataList.length
 	     hoverStop: true, // 是否开启鼠标悬停stop
 	     direction: 1, // 0向下 1向上 2向左 3向右
 	     openWatch: true, // 开启数据实时监控刷新dom
 	     singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
 	     singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
 	     waitTime: 1000, // 单步运动停止的时间(默认值1000ms)
 	     };
 	     },
 	     },
 	};
 	</script>

效果图2:

vue-seamless-scroll无缝滚动组件使用方法详解插图1

 	computed: {
 	     seamlessScrollOption() {
 	     return {
 	     step: 0.5, // 数值越大速度滚动越快
 	     hoverStop: true, // 是否开启鼠标悬停stop
 	     direction: 0, // 0向下 1向上 2向左 3向右
 	     openWatch: true, // 开启数据实时监控刷新dom
 	     singleHeight: 40, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
 	     singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
 	     waitTime: 2000, // 单步运动停止的时间(默认值1000ms)
 	     };
 	     },
 	     },

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持我们。

标签

发表评论