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]: Each cell in the csv content exported by the table has more \t tabs. #881

Closed
ShengAndShu opened this issue Nov 20, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ShengAndShu
Copy link

Version

latest

Vue Version

latest

Link to minimal reproduction

https://tinyuidesign.cloudbu.huawei.com/tiny-vue/zh-CN/os-theme/components/grid-import-export

Step to reproduce

  1. 点击'导出数据'按钮;
  2. 打开导出的csv文件;
  3. 查看任意一个有数据的单元格,发现单元格内文本多了\t制表符

What is expected

单元格文本不含\t制表符

What is actually happening

单元格文本含有意料之外的\t制表符

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Each cell in the csv content exported from the table has extra tab characters

@kagol kagol added the bug Something isn't working label Nov 22, 2023
@zzcr
Copy link
Member

zzcr commented Nov 22, 2023

感谢反馈,我们会尽快看下这个问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Thanks for the feedback, we will look into this issue as soon as possible

@zzcr
Copy link
Member

zzcr commented Nov 22, 2023

this.$refs.theGrid.exportCsv({
filename: 'table.csv',
original: true,
isHeader: false,
useTabs:false,
data: this.tableData
})
配置下useTabs为false就可以取消制表符

@zzcr zzcr closed this as completed Nov 23, 2023
@kagol kagol changed the title 🐛 [Bug]: 表格导出的csv内容中每个单元格都多了\t制表符 🐛 [Bug]: Each cell in the csv content exported by the table has more \t tabs. Dec 9, 2023
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

4 participants