Agriculture-front-end/dist/assets/TimeLine.c55795b7.js
2023-07-09 20:38:38 +08:00

2 lines
7.2 KiB
JavaScript

import{_ as d,d as c,o as m,c as i,e as p,l as A,g as o}from"./index.955aa49e.js";import"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";const z="/assets/upper.914f2483.png",V="/assets/start.c8bc72a8.png",v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA76SURBVFiFnZlNbF3Xccf/M3POue+DIiVSIUU1dWVAdh2WttWobZwWAVgULRQD2TXLVmnQNihaFFm1u0ZGEATdpZsGRZoiXndVxDBsIEHZTWCkIPwhmhUiJVGQIJRk05REPr537zkz08W9j6ZkyR85wAUfwXcPf3fufPxnDuGjLHcCAAfwHEAAsALQ1vo6YW0NALC8sUFHb9k+f96xvo6VtTXfam/FV7qfh18k8g+LQB/8lfeCrgC0BdAyQJvXrvFjAN4JgWZDoLs3bxJOnwZ++UsAwOzSkt8txXdK8YWm8eXx2Lf39hxrazaF/yjg7w/8ANDdjQ3e7vcJgwGjqhi7u4yUGPv7XIkQ5uZQ7+8TAFQzM16b+XwpNlZ1rmuT+XkLk4lVZ8/a9vr6e8E/APrhwO50v0V3rl2TR3s91hi52tuTUUoSJxOpY5TcNIK65sBM6PcBANHds5mTqqWUNOesTa+n/brW8eysoq5t+cwZnYJ/GGs/GPgILNbXeXltjbavX5dhvy86GgVrmuBVFYJqtFICzEIREVEVBkiJCADU3cnMJAQlkUI5l4lIQV2XiihzSmW8v687c3O6cPasrgC+BfilzscfBP1e4PtgsbjIGI9Df2ZGxqox9vvRzVJyT+6e6qZJUSS4WTBmgRnzdF8Rg7sRc0EpxYgyETUENEzUqEhu9vfzcHk5j8ZjXd7Z0RPnz9v7QdNDYQHeuXZNFoZD6Y3H0cxSc3BQCXMlzBUBlRJVTFQR8AV3Jzf7bWJ+arqdlbLJIgqi1xx41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wA6Xf8PsTR0WjHuYxMAAAAASUVORK5CYII=",P="/assets/below.447b8937.png",f={props:["dataSource","theme"],data(){return{value2:0,marks:{},step:10,times:null,min:0,max:100}},watch:{value2:function(a,t){const n=this.dataSource.find(r=>r.name===this.marks[a].label);this.$emit("dataHandle",n)},dataSource:function(a,t){console.log(a),this.dataHandleInit()}},mounted(){this.dataHandleInit(),console.log(this.dataSource)},methods:{dataHandleInit(){const a=this.dataSource.map(e=>e.name);this.max=(a.length-1)*10;const t=10;let n=0,r={};this.dataSource.sort((e,s)=>Number(e.name)-Number(s.name)).forEach((e,s)=>{this.dataSource.length<10?r[n]={label:e.name}:r[n]={label:e.name,style:{top:s%2===1?"-40px":"0px"}},n+=t}),this.marks=r},leftHandle(){this.value2===0?this.value2=this.max:this.value2-=this.step},rightHandle(){this.value2===this.max?this.value2=0:(this.value2+=this.step,console.log(this.value2))},autoPlay(){this.times=setInterval(()=>{this.rightHandle()},1e3*2)},pausePlay(){clearInterval(this.times),this.times=null}}},I={class:"timeline"},w={class:"optionWrapper"};function C(a,t,n,r,e,s){const u=c("el-slider");return m(),i("div",I,[p(u,{modelValue:e.value2,"onUpdate:modelValue":t[0]||(t[0]=l=>e.value2=l),step:e.step,marks:e.marks,"show-stops":"","show-tooltip":!1,min:e.min,max:e.max},null,8,["modelValue","step","marks","min","max"]),A("div",w,[A("img",{onClick:t[1]||(t[1]=(...l)=>s.leftHandle&&s.leftHandle(...l)),src:z,alt:"\u300A"}),e.times?o("v-if",!0):(m(),i("img",{key:0,onClick:t[2]||(t[2]=(...l)=>s.autoPlay&&s.autoPlay(...l)),src:V,alt:"||"})),e.times?(m(),i("img",{key:1,onClick:t[3]||(t[3]=(...l)=>s.pausePlay&&s.pausePlay(...l)),src:v,alt:"||"})):o("v-if",!0),A("img",{onClick:t[4]||(t[4]=(...l)=>s.rightHandle&&s.rightHandle(...l)),src:P,alt:"\u300B"})])])}const R=d(f,[["render",C],["__scopeId","data-v-26e8a223"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/components/TimeLine/TimeLine.vue"]]);export{R as T};