How to adapt the cell width when js exports excel

when exporting a table using the js-xlsx and file-saver plug-ins, the cell width will not be adaptive when the cell content is too long.

:

Apr.19,2021

I use this , can you see if it can solve


Hello, can you ask how to export the form? I use saver to export the table, the blob data is table.innerHTML and then the type of excel is exported. When the file is opened, the file name is incorrect or the file type does not match.


Brother, have you solved it? I have this problem, too!


has it been solved now?


it is recommended that you do not export Excel, data directly from the front-end js. If you go to the backend, you can export as much data as you want. The frontend should not bother with this requirement. Of course, it is purely personal advice.


vue export table column width adaptation

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a5fb-2c1ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a5fb-2c1ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?