Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启拖拽后,重载数据表格会撑开并闪一下 #2764

Open
2 tasks done
jinmarcus opened this issue Feb 4, 2025 · 1 comment
Open
2 tasks done

开启拖拽后,重载数据表格会撑开并闪一下 #2764

jinmarcus opened this issue Feb 4, 2025 · 1 comment
Labels
bug Something isn't working fix has been fix

Comments

@jinmarcus
Copy link

可复现的链接(必须为公开链接,仅包含能复现问题的示例代码):

https://codesandbox.io/p/devbox/qrtpw9

是否已准备好复现链接与示例代码?

  • 我确定已准备好以上复现链接

问题描述与截图:

2.4.mp4

以下是代码实例

<script setup>
import { ref, reactive } from 'vue'
import { VxeGrid } from 'vxe-table'
import 'vxe-table/lib/style.css'

const tableProps = reactive({
    id: 'id',
    minHeight: 40,
    rowConfig: {
        drag: true,
    },
    columns: [
        { width: 34, dragSort: true },
        { type: 'seq', width: 60, align: 'center' },
        { field: 'title', minWidth: 160, title: '属性值' },
    ],
})

const tableData = ref([
  {id: 1, title: '红色'},
  {id: 2, title: '黄色'},
])

function onLoad() {
  tableData.value = [
    {id: 1, title: '红色' + Date.now()},
    {id: 2, title: '黄色'},
  ]
}
</script>

<template>
  <div class="container">
    <div>
      <button @click="onLoad">点击加载数据</button>
    </div>
    <div class="box">
      <vxe-grid
        v-bind="tableProps"
        :data="tableData"
      />
    </div>
  </div>
</template>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
}
.box {
  margin-top: 20px;
  padding: 20px;
  width: 400px;
  height: 300px;
  background-color: #f3f3f3;
}
</style>

期望的结果:

No response

操作系统:

win10

浏览器版本:

chrome 132.0.6834.160

vue 版本:

3.5.13

vxe-pc-ui 版本:

4.3.78

vxe-table 版本:

4.10.6-beta.31

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题
@jinmarcus jinmarcus added the bug Something isn't working label Feb 4, 2025
@xuliangzhan xuliangzhan added the fix has been fix label Feb 8, 2025
@xuliangzhan
Copy link
Collaborator

fix 4.10.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix has been fix
Projects
None yet
Development

No branches or pull requests

2 participants