SegmentFault (www.sf.gg)开发者社区,是中国年轻开发者喜爱的极客社区,我们为开发者提供最纯粹的技术交流和分享平台。 |
|
程序员的那些事 · GPU:DeepSeek ... · 昨天 |
|
OSC开源社区 · RAG市场的2024:随需而变,从狂热到理性 · 2 天前 |
|
程序员的那些事 · 印度把 DeepSeek ... · 4 天前 |
|
OSC开源社区 · 宇树王兴兴早年创业分享引围观 · 5 天前 |
|
程序猿 · 惊世骇俗!梁文锋硕士学位论文赏析:让人拍案叫绝! · 5 天前 |
vue用了有一段时间了,开发的后台管理系统也趋于完善,现在时间比较算是有点空闲吧!这个空闲时间我在研究vue的另外的一些玩法,比如组件,插件等。今天,我就分享一个组件的练手项目--焦点图切换组件。这个项目是我用于vue组件练习的一个项目,当然了,代码也会提交到github(ec-slider),有空也会维护。我也想我开发的东西好用一点!现在,就是建议有需要的伙伴,可以来玩下这个项目,当练习的作用!另外,如果大家有什么建议,欢迎指点!
建议 1.下面的步骤,最好在自己本地上跑起来,根据文章的步骤,逐步完成,如果只看代码,很容易懵逼的。 2.如果不清楚哪个代码有什么作用,可能自己调试下,把代码去掉后,看下有什么影响,就很容易想出代码有什么作用了!
很普通,很好理解的一个目录,但还是简单的解释一下吧
node_modules
:文件依赖模块(自动生成)
dist
:打包文件产出目录(自动生成)
src
:开发文件目录
src/components
:组件文件目录
.babelrc
:babel编译es6的配置文件
.gitnore
:不提交到git的文件(目录)的配置文件
fontSize
:设置rem算法的文件(现在没用到,忽略)
index.html
:模板文件
index.js
:入口文件
package.json
:配置文件
README.md
:说明文档
webpack.config.babel.js
:webpack配置文件
这是项目的第一步(项目搭建这个,我不多说,之前的文章已经说了几次了!),现在
src/components/ec-slider.vue
这里输出一个‘守候’
1.首先,在
src/components/ec-slider.vue
里面输出‘守候’,代码如下
守候
return {
}
},
computed: {
},
mounted(){
},
props: [],
methods: {
}
}
2.然后,在
src/components/index.js
里面设置注册组件(要带一个install方法),代码如下
import SlideImg from './ec-slider.vue'
const ecslide={
install:function (Vue) {
Vue.component('ec-slide',SlideImg)
}
}
export default ecslide;
3.在入口文件,index.js里面引入并且使用组件
require("./index.html");
require("./src/sass/index.scss");
import Vue from 'vue'
//引入并且使用组件
import ecslide from './src/js/components/index';
Vue.use(ecslide);
let app6 = new Vue({
el: "#app6",
data: {
},
mounted(){
}
});
4.在index.html(模板文件),输出组件
lang="en">
charset="UTF-8">
name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Title</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">id</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"app6"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><ec-slide/></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span></code></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">5.命令行输入 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">$ npm run dev</span></code>跑起来,结果完美!这几步的原理貌似没什么可多说的,都是固定式的步骤。</p><p><img data-s="300,640" data-type="png" referrerpolicy="no-referrer" data- referrerpolicy="no-referrer" src="http://mmbiz.qpic.cn/mmbiz_png/aVp1YC8UV0dpdaa17IMFPiaNRojHSo2jarEFQEOO4YRxicf1xC962XdZIMLJo1tnicPE5BfviaJVx3MRsODTPwJIxg/0?wx_fmt=png" style="" class="" data-ratio="0.4075" data-w="800"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><br/></p><h3 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 20px;white-space: normal;"><span style="font-size: 16px;">3-2开发准备</span></h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">经过上一步之后,基础就已经打好了,那么接下来就是一个开发的过程,大部分都是修改 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">src/components/ec-slider.vue</span></code>这个文件。 开发之前,大家不要急着写代码,先分析下当中的运行流程! 首先,一个焦点图切换,需要什么参数?根据下面的一个淘宝栗子,我简单分析下,就是下面这几个!</p><p><img data-s="300,640" data-type="png" referrerpolicy="no-referrer" data- referrerpolicy="no-referrer" src="http://mmbiz.qpic.cn/mmbiz_png/aVp1YC8UV0dpdaa17IMFPiaNRojHSo2jauerHkwuHAI5ia5oBwbgJRKKwDoYIR0A8tcSRAFoWeB7y95dMZEUTICA/0?wx_fmt=png" style="" class="" data-ratio="0.5756385068762279" data-w="509"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">list</span></code>-图片列表[{src:'url',href:'https://www.baidu.com'},{src:'url',href:'http://www.163.com'}](src:图片的src,href:跳转连接,点击图片的时候) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">autoplay</span></code>-是否自动播放 布尔 (默认false) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">type</span></code>-轮播方式‘transparent’(透明度切换), 'slide'(滑动切换) (默认slide) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">option</span></code>-对应切换 (默认false,不显示) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">time</span></code>-轮播间隔时间,毫秒 (默认4000) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">sildetype</span></code>-过渡效果 (默认'ease'慢速开始,然后变快,然后慢速结束的过渡效果,参考:transition-timing-function) </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">arrowurl</span></code>-箭头图片链接 </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">arrowsize</span></code>-箭头尺寸‘width,height’ </p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">direction</span></code>-切换方向'left'(左右) 'top'(上下) (默认:左右)</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">分析完了之后,就知道暂时需要这么多参数,那么接下来就是在 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">ec-slider.vue</span></code>里面,接收这些参数。父子组件传参方式,我想大家知道-- <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">props</span></code>。代码如下</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><template/></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> 守候</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><script><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">type</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"text/javascript"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">export</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> data () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> computed: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> mounted(){</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> props: [</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'list'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'autoplay'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'type'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'time'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'sildetype'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowurl'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowsize'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'option'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'direction'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> methods: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"></script></span></code></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">有地方接收参数,肯定要有地方传参数,就是 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">index.html</span></code>模板文件里面传</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"slider-left"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><ec-slide><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">list</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'list'</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">autoplay</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"true"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">type</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"'slide'"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">option</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"true"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">time</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"4000"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">sildetype</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"'ease'"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">arrowurl</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"'http://i1.buimg.com/1949/4d860a3067fab23b.jpg'"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">arrowsize</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"'20,40'"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">direction</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"'left'"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></ec-slide></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span></code></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;"><span style="color: rgb(21, 153, 87);">3-3样式布局</span><br/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">既然知道了,会接收什么参数,那下面先把样式布局,给弄好先,这个不多说,代码如下!(有些解释我也是直接打到代码上)</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><template/></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"switch-img-box"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">id</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"ec-slide-box"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"switch-img-type switch-img-left"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><ul><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:ulWidth,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'transition-timing-function'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:slideChange}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></ul></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><li><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-for</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"(li,index) in list"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:listWidth+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'%'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></li></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><a><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">href</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"li.href?li.href:'javascript:;'"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></a></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><img/><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">src</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"li.src"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"slider-img"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/></span></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><!--如果需要显示对应的点--></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"switch-option"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-if</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"option"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-for</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"(li,index) in list"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></span></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><!--如果需要显示箭头--></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"switch-arrow"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-if</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"arrowurl&&arrowsize"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"{'arrow-left':direction==='left','arrow-top':direction==='top'}"</span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:arrowWidth+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'px'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'height'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:arrowHeight+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'px'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'background'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'url('</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">+arrowurl+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">') no-repeat'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'background-size'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'100%'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"{'arrow-right':direction==='left','arrow-bottom':direction==='top'}"</span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:arrowWidth+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'px'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'height'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:arrowHeight+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'px'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'background'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'url('</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">+arrowurl+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">') no-repeat'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'background-size'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'100%'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><script><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">type</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"text/javascript"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">export</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> data () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> slideChange: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> arrowWidth: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> arrowHeight: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> computed: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//ul宽度</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> ulWidth: </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length) + </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"00%"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//li宽度</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> listWidth: </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">100</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> / (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length)</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> mounted(){</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//设置各个数据初始值</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.slideChange = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.sildetype || </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'ease'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize && </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowurl) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowWidth = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize.split(</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">','</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)[</span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowHeight = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize.split(</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">','</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)[</span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> props: [</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'list'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'autoplay'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'type'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'time'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'sildetype'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowurl'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowsize'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'option'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'direction'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> methods: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"></script></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><br/></span></code></span></p></li></ol></pre><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"/></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">运行结果,就是下面这样</p><p><img data-s="300,640" data-type="png" referrerpolicy="no-referrer" data- referrerpolicy="no-referrer" src="http://mmbiz.qpic.cn/mmbiz_png/aVp1YC8UV0dpdaa17IMFPiaNRojHSo2jagST9vpo4QqsIP73dGsiaKQHcZxsNt4U8EBzGkgMwJI7ElXoPJBicy5nA/0?wx_fmt=png" style="" class="" data-ratio="0.5024509803921569" data-w="408"/></p><h3 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;color: rgb(21, 153, 87);line-height: 1.35;font-size: 20px;white-space: normal;"><span style="font-size: 16px;">3-4执行动画</span></h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">布局搞定了,下面就可以写动画,让轮播动起来!这里也需要增加几个变量,一个是nowIndex,记录当前索引。一个是timer定时器! 首先,我用 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">transform:translate3d()</span></code>这个方式控制 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">ul</span></code>的滑动。</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><ul><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:ulWidth,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'transform'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'translate3d(-'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">+(listWidth*(nowIndex))+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'%,0,0)'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'transition-timing-function'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:slideChange,</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'transition'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'all .4s'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></ul></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><li><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-for</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"(li,index) in list"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">style</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'width'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:listWidth+</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'%'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></li></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><a><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">href</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"li.href?li.href:'javascript:;'"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></a></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><img/><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">src</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"li.src"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"slider-img"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">/></span></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">然后,根据nowIndex,设置对应点的class。</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"switch-option"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-if</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"option"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><div><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><!--如果当前索引index等于nowIndex。则添加active这个class,点就会变成蓝色--></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">v-for</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"(li,index) in list"</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> :</span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">class</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"{'active':index===nowIndex}"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></span></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"/></code></span></p></li></div></span></code></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 30px;color: rgb(74, 74, 74);font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;">js代码如下</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 8px 0px 6px;background-color: rgb(47, 54, 64);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);font-size: 10px;line-height: 12px;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"><script><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="atn" style="box-sizing: border-box;color: rgb(160, 212, 104);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">type</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="atv" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"text/javascript"</span><span class="tag" style="box-sizing: border-box;color: rgb(237, 85, 101);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">></span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">export</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> data () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> nowIndex: </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> timer: </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">null</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> slideChange: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> arrowWidth: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> arrowHeight: </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">''</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> computed: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//ul宽度</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> ulWidth: </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length) + </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">"00%"</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//li宽度</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> listWidth: </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">function</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> () {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">100</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> / (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length)</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> mounted(){</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//是否自动播放</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.autoplay) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.autoSwitch();</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//设置初始值</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.slideChange = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.sildetype || </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'ease'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize && </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowurl) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowWidth = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize.split(</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">','</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)[</span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowHeight = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.arrowsize.split(</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">','</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)[</span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> },</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> props: [</span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'list'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'autoplay'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'type'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'time'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'sildetype'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowurl'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'arrowsize'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'option'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">, </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'direction'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">],</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> methods: {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//滑动操作</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> switchDo(reduce){</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> clearInterval(</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.timer);</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//根据reduce判断this.nowIndex的增加或者减少!</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//如果是减少模式reduce=‘reduce’</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (reduce === </span><span class="str" style="box-sizing: border-box;color: rgb(255, 206, 84);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">'reduce'</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//如果nowIndex等于0,已经是第一个了,就回到最后一个</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex === </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex = </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length - </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">else</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex--;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//如果是增加模式reduce=undefined</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">else</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//如果nowIndex等于this.list.length-1,已经是最后一个了,就回到第一个</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex === </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.list.length-</span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">) {</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex = </span><span class="lit" style="box-sizing: border-box;color: rgb(172, 146, 236);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">else</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this</span><span class="pun" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.nowIndex++;</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> }</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="com" style="box-sizing: border-box;color: rgb(101, 109, 120);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">//如果需要自动播放</span></code></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;line-height: 22px;font-size: 14px !important;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;word-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;color: rgb(230, 233, 237);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> (</span><span class="kwd" style="box-sizing: border-box;color: rgb(79, 193, 233);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">this
|
程序员的那些事 · GPU:DeepSeek 你慢点开源,我都要被你榨干了… 昨天 |
|
OSC开源社区 · RAG市场的2024:随需而变,从狂热到理性 2 天前 |
|
程序员的那些事 · 印度把 DeepSeek 告上法庭!三哥的“既要又要”病又犯了? 4 天前 |
|
OSC开源社区 · 宇树王兴兴早年创业分享引围观 5 天前 |
|
程序猿 · 惊世骇俗!梁文锋硕士学位论文赏析:让人拍案叫绝! 5 天前 |
|
V保险 · 开门红!要学会这样卖保险... 8 年前 |
|
历史震惊你 · ♬《红楼梦》最动人30句话,总有一句戳中你心! 8 年前 |
|
上海贝尔 · 【新闻】诺基亚Nuage Networks与沃达丰达成SDN合作 7 年前 |
|
家教智慧 · 【万妈妈微课】孩子做事总是半途而废?爸妈要以身作则,做到这点! 7 年前 |
|
MEMS · 抛弃锗硅工艺,单芯片毫米波传感器步入CMOS时代 7 年前 |