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

这是不是个bug,vxe-table的columns更新,表格数值匹配错乱。 #419

Closed
hasbug opened this issue Oct 12, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@hasbug
Copy link

hasbug commented Oct 12, 2019

(必填)请填写问题描述 Describe the bug

我先描述下我的场景:我使用vxe-table,然后里面自己配置columns,进而使用v-for来循环vxe-table-column。

然后就是我的columns增加的时候,通过数组的splice进行添加数据 或者push增加动态列数据。

这时候发现,在表格中,td的数值都是乱了,出现重复和不对应的问题。如截图,数据全乱了。

(必填)请填写能重现问题的链接,例如(jsfiddlecodesandboxjsrun) Reproduction link

?

填写报错信息或截图 Error message or screenshots

问题图片

(必填)请填写期望的结果 Expected behavior

能够正确显示对应的数据

(必填)请填写版本号 Version

  • os: window
  • browser: chrome
  • vue: 2.6X
  • vxe-table: 2.5.2
@hasbug hasbug added the bug Something isn't working label Oct 12, 2019
@xlz26296
Copy link
Contributor

xlz26296 commented Oct 12, 2019

#218
这个组件的设计之初就已经划分为:vxe-table 静态表格 vxe-grid 动态表格,你要用静态表格来实现动态表格的功能那么你就只能自行处理好相关的视图更新逻辑了 哈

@hasbug
Copy link
Author

hasbug commented Oct 12, 2019

@xlz26296 这样啊。 主要我是用来区分各种element-ui编辑form控件,vxe-grid 我一时搞不定。
感觉需要熟悉jsx才能够按条件插入各种form控件,是吧?

@xuliangzhan
Copy link
Collaborator

xuliangzhan commented Oct 12, 2019

https://xuliangzhan_admin.gitee.io/vxe-table/#/table/advanced/dynamic

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

No branches or pull requests

3 participants