AllenFang / AllenFang/react-bootstrap-table
ExportCSV function cannot export correct data (number with more than 15 digits) in CSV
- Linguagem predominante
- JavaScript
- Estrelas
- 2.2k
- Forks
- 761
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi Guys, I need a favor on the exportCSV function, as i noticed there is a bug:
In details:
In table column with type = number, if the value has more than 15 digits, the data after export in CSV will always convert to "0".
E.g:
Number as below 16 digits show in react-bootstrap-table is:
252083158926928**6**
However, in CSV file after export, it will show 252083158926928**0**
Same goes to any other value that have more that 15 digits, in table show as (25208315892692863435), however in CSV file after export the value showed as 25208315892692800000.
[sample code](https://gist.github.com/paradise5455/dcec8d2c34d02742bbe487d43a7935cd)
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.