1.cmd输入
npm install vue3-seamless-scroll --save
yarn add vue3-seamless-scroll
2.main.ts文件加入
import vue3SeamlessScroll from "vue3-seamless-scroll";
app.use(vue3SeamlessScroll);
3.代码示例
<vue3-seamless-scroll
hover-stop="true"
:list="dataList"
hover="true"
step="0.5"
class="scroll"
>
<ul>
<li
v-for="(item, index) in dataList"
:key="index"
>
<span class="optionsId">{{ item.wzId }}</span>
<span class="optionsName">{{ item.websiteName }}</span>
<span class="optionsValue">{{ item.dataNum }}</span>
</li>
</ul>
</vue3-seamless-scroll>
const dataList: any = ref([])
表格滚动:
表格暂无数据不显示
:deep(.el-table__empty-block){
display: none !important;
}