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 Report/Feeback] 表格之类的属性里面的excel编辑,按任意键都会跳到第一个单元格中,导致不能编辑。 #251

Closed
ly525 opened this issue Oct 18, 2020 · 1 comment

Comments

@ly525
Copy link
Owner

ly525 commented Oct 18, 2020

问题描述
表格之类的属性里面的excel编辑,按任意键都会跳到第一个单元格中,导致不能编辑。

@ly525
Copy link
Owner Author

ly525 commented Feb 23, 2021

原因:编辑单元格的时候,emit('change') 或 emit('input'),会改变 props.value,这样 watch.value 会执行,导致重新刷新表格(会导致跳转到第一个单元格)

  watch: {
    value () {
      this.refreshSheet({ rows: this.innerItems })
    }
  },

@ly525 ly525 closed this as completed in c2233d2 Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant