2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
/* empty css */import{_ as u,d as I,o as n,c as r,e as g,k as o,w as c,l as d}from"./index.57224d07.js";const p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHKSURBVFiFxZdBloMgDIZ/uJev9B7jzntU79GdvYfp82DMApCAqMTamWx8ppb/I4EQFATWzaMB1IO5jH+Se9g3AHo2LdWOqQSimdgiCEDdMiAAdng2bf8RQDe/plTYDkez6+bRi4ZI7YMUAdJZ182kDKJuR2OsALz45N7sXZLPHZDHFoTKPg7i9Gx+7p8I10LojGcCgCvF3XhtD9gBUI+4RjKA+IO9VDyFAHkIswJgIaJvADiIENlYSzQQZ39mtcvNDgBMiIKORHaQDNPNY9/NL8tzWvLlFifpoqDZxyQRz0py0bdji9ayBmpznwq5bVXy7Y8S06B9tfpD8dQ0XKl8/4d4AKi0ktA5cZZuIwAIaVqO3i2fyLQb5HgAX0QIgPHHdNFXY6wSkiQCl0IE034BmqMPL4Yw7n8t+RQkYRFChDK+9m1brLzar0gSVDEGYQewGlLy5VaEYzXcSCDOWNAK7xpIz+pvi+cHH9sFS33uvyRu/ASJF63sMCq3TdeYi27e7iV1IGubLoHo5tHE+8W63du6F/R7rbRE/KjF37wZfXLSZdc52us1a+6GCYh3JxfQuH2XXXQoXA3ABEzlNq0SFgFsA3HR+raO2y8Bc1incOapjAAAAABJRU5ErkJggg==",h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHnSURBVFiFtVdBtoMgDBx4vVaf9B7tznuI9+jO3kP6PBh/kWiAqoD6s7FSZCYJGYJChbXTYADVBUOGn44e/gvAve8vV7qmqgBNwBZAAKpJCAHw/fv+sqcItNNnjIF9n/OunQYGnSO1T2SVQOx1mSfrRFSTW+OHAIOP9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PpjMvVSuSO8Vm8W+CvAG4J3T7w+0TEI8Abnw+3OM4awyTmegjCqlW+k4B+6zuWtw9+IxdkOXnqCNxpgbIzWPfOYyKy6Z2TEbXLfesPOCUTa1AhMmU6ftFvtwruxdEVaV0E3FfiV96M9IQQFMQ5zrHq2rNOndDC0Q1WxdQvX2zXeQVrg1gCLCa27SWcCOAciBT9G9l3S+mhgMax9LypgAAAABJRU5ErkJggg==",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAHLSURBVFiFtVfLscMgDFzoyxPSx8vNfcTuIzenj5BxYbwDwnyMEcR4L54owK4kEEKgAeO6KEA8A5Oir7Yf8wWgX8ND164pGkgTso0QgLglggCY+TU8plMCxvX9iYnNzHk3rguRukiVhWQFxF7XeZIXIm7cGjsBRP6xv8y9JZ8FIc8jESIZ7Mj1a/i7nyGuFSETPR8A6Elu13tMgJkB8fR7JBHg/zBdyWMR0CRC7QQEIdJXCLAiXGR9LZGA9/6X3d4OMwNQLgrSKzJzadq4vg3VhaKNg3fSRkEGm0IzczUAlRDmbDXYuLY9wOWe8hcR5mx18GmQVK2K5NeIsJCwpfJbO6G3CMkP4US4E7S3Hc/f0q1+EkAEirPVQMJWpxs3MCaKr9qcjVnDCdVNEehBnkLSBlTcwM7kCrB7gVIQheUAOaJfPfeVV9KO1EmzmYGZqUGZyrYysidkXJfJ1nUuCufhuNxvCcR39dXk6cUXnIKtPk8XkStyUIcpSy6jfNvUBza6absX1YGkbeoiYlwX5d8X+3bv6F0wlVrpFnKuxT98GZ2pcMlzTpd6zZq3YSSEzNED1B/f7RSxxNUCAgJVeUyriJsEHAsKSfm2Lod/3iVap2cQ4fQAAAAASUVORK5CYII=",B={props:["dataSource","theme","allCount"],data(){return{value2:100,marks:{},step:10,times:null,min:0,max:100,currentPage:this.allCount}},watch:{value2:function(l,t){const i=this.dataSource.find(s=>s.name===this.marks[l].label);this.$emit("dataHandle",i)},dataSource:function(l,t){this.dataHandleInit()}},mounted(){this.dataHandleInit()},methods:{dataHandleInit(){const l=this.dataSource.map(e=>e.name);this.max=(l.length-1)*10;const t=10;let i=0,s={};this.dataSource.sort((e,A)=>Number(e.name)-Number(A.name)).forEach((e,A)=>{this.dataSource.length<10?s[i]={label:e.name}:s[i]={label:e.name,style:{top:A%2===1?"-40px":"0px"}},i+=t}),this.marks=s,this.value2=this.max},leftHandle(){this.currentPage==1?this.currentPage=this.allCount:this.currentPage--,this.$emit("getcurrentPage",this.currentPage)},nextPage(){this.currentPage==this.allCount?this.currentPage=1:this.currentPage++,this.$emit("getcurrentPage",this.currentPage)},rightHandle(){this.value2===this.max?this.value2=0:this.value2+=this.step},autoPlay(){this.times=setInterval(()=>{this.rightHandle()},1e3*2)},pausePlay(){clearInterval(this.times),this.times=null}}},k={class:"timeline"},S={class:"optionWrapper"};function R(l,t,i,s,e,A){const C=I("el-slider"),m=I("el-tooltip");return n(),r("div",k,[g(C,{modelValue:e.value2,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value2=a),step:e.step,marks:e.marks,"show-stops":"","show-tooltip":!1,min:e.min,max:e.max},null,8,["modelValue","step","marks","min","max"]),o("div",S,[g(m,{class:"box-item",effect:"dark",content:"\u4E0A\u4E00\u9875",placement:"top-start"},{default:c(()=>[o("img",{onClick:t[1]||(t[1]=(...a)=>A.leftHandle&&A.leftHandle(...a)),style:{width:"30px",height:"30px","margin-right":"3px"},src:p,alt:"\u300A"})]),_:1}),e.times?d("",!0):(n(),r("img",{key:0,onClick:t[2]||(t[2]=(...a)=>A.autoPlay&&A.autoPlay(...a)),style:{width:"30px",height:"30px","margin-right":"3px"},src:h,alt:"||"})),e.times?(n(),r("img",{key:1,onClick:t[3]||(t[3]=(...a)=>A.pausePlay&&A.pausePlay(...a)),style:{width:"30px",height:"30px","margin-right":"3px"},src:f,alt:"||"})):d("",!0),g(m,{class:"box-item",effect:"dark",content:"\u4E0B\u4E00\u9875",placement:"top"},{default:c(()=>[o("img",{onClick:t[4]||(t[4]=(...a)=>A.nextPage&&A.nextPage(...a)),style:{width:"30px",height:"30px"},src:x,alt:"\u300B"})]),_:1})])])}const V=u(B,[["render",R],["__scopeId","data-v-f94519fa"]]);export{V as T};
|