- 问问题请带上 DataEase 版本信息、安装部署方式信息、详细错误信息,减少不必要的来回沟通!
- **不要重复发帖!
**win11 桌面版,嵌入的vue2前端项目,页面使用 “vue-seamless-scroll” 插件放了个滚动的列表内容,项目在浏览器运行时正常速度滚动,在dataease顶部的更多-网页嵌入这个前端项目地址,在大屏上滚动很快。
main.js
import scroll from "vue-seamless-scroll";
Vue.use(scroll, { componentName: "scroll-seamless" });
组件代码
<template>
<div class="statistics-container">
<scroll-seamless
:data="stats"
class="statistics"
:class-option="classOption"
>
<ul class="ul-item">
<li class="li-item" v-for="(item, index) in stats" :key="index">
<div class="statistic-value">{{ item.value }}</div>
<div class="statistic-label">{{ item.label }}(家)</div>
</li>
</ul>
</scroll-seamless>
</div>
</template>
<script>
export default {
data() {
return {
stats: [
{ value: 81, label: "企业1" },
{ value: 34, label: "企业2" },
{ value: 15, label: "企业3" },
{ value: 1, label: "企业4" },
{ value: 7, label: "企业5" },
{ value: 18, label: "企业6" },
{ value: 3, label: "企业7" },
],
classOption: {
direction: 2,
limitMoveNum: 1,
// step: 0.1,
},
};
},
};
</script>
版本信息
"vue": "2.6.11",
"vue-seamless-scroll": "^1.1.23",
桌面端怎么调测啊