gaosp
2024-01-20 5dbf626a48e7b4a3c1c70042035831879aac4860
update
已修改1个文件
7 ■■■■ 文件已修改
src/container/mapPreview/Map.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/mapPreview/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 23:47:53
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-20 20:58:01
 * @LastEditTime: 2024-01-20 21:04:26
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/Map.vue
-->
<template>
@@ -89,16 +89,19 @@
        },
        id: {
            handler () {
                if (this.move) {
                    this.marginLeft = 0
                    this.$nextTick(() => {
                        let {width} = document.querySelector('.table div').getBoundingClientRect()
                        let {width: tableW} = document.querySelector('.table').getBoundingClientRect()
                        clearTimeout(timer)
                        if (width > tableW) {
                            this.leftMax = width - tableW
                            clearTimeout(timer)
                            this.moveFn()
                        } else {
                            this.leftMax = 0
                            this.marginLeft = 0
                        }
                    })
                }