liuxiaolong
2019-05-06 3e0536f508aad49f743e7bfabca34e3980a1b6e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
<div>
  <a>测试</a>
  <button @click="clickFunc()">按钮</button>
</div>
</template>
<script>
import 'vue-tlpick/src/lib/createjs'
import 'vue-tlpick/src/lib/TweenMax'
import 'vue-tlpick/src/components/tlpick.css'
import tlpick from 'vue-tlpick/src/components/tlpick.vue'
import Vue from 'Vue'
Vue.use(tlpick)
export default {
  components: {
    tlpick
  },
  props: {
 
  },
  data() {
    return {
      width: 500,
      height: 110,
      optins: {
        threshold: new Date(),
        number: 97,
        spanMinNumber: 10,
        isFixedDrag: true,
        spanIndex: {start: 90, end: 97},
        type: 'quarter',
        dateFormat: 'yyyy-MM-dd'
      }
    }
  },
  methods: {
    changeAction(e) {
      this.startTime = e.startTime
      this.endTime = e.endTime
    },
    clickFunc() {
      console.log('aaa')
    }
  },
  mounted() {
 
  }
}
</script>
<style>
</style>