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
| <template>
| <div>456</div>
| </template>
|
| <script>
| import { mapGetters } from 'vuex'
|
| export default {
| data () {
| return { DC: null }
| },
| computed: {
| ...mapGetters(['viewer'])
| },
| created () {
| var that = this
| that.DC = global.DC
| that.viewer.tooltip.enable = true
| that.viewer.on(that.DC.MouseEventType.MOUSE_MOVE, (e) => {
| that.viewer.tooltip.showAt(e.windowPosition, '我是鼠标提示')
| })
| },
| methods: {},
| destroyed () { }
| }
| </script>
|
| <style>
| </style>
|
|