src/pcviews/tool/sign.vue
@@ -1,15 +1,29 @@ <template> <div> 456 </div> <div>456</div> </template> <script> export default { 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>