Coder Social home page Coder Social logo

导出excel文件时,以0开头的字符串会默认变成数字格式,导致数据丢失 about vxe-table-plugin-export-xlsx HOT 4 CLOSED

x-extends avatar x-extends commented on June 16, 2024
导出excel文件时,以0开头的字符串会默认变成数字格式,导致数据丢失

from vxe-table-plugin-export-xlsx.

Comments (4)

ooolize avatar ooolize commented on June 16, 2024 1

vex-table里 修改单元格值类型 columns.cellType = "string"; 可以解决

from vxe-table-plugin-export-xlsx.

Johnwei386 avatar Johnwei386 commented on June 16, 2024

使用npm安装vxe-table-plugin-export-xlsx插件后,在node_modules的对应插件目录下,找到dist/index.common.js文件,在这个文件中,找到getCellLabel方法,将此方法中switch分支中的default分支修改为
return _xeUtils["default"].toString(cellValue);

from vxe-table-plugin-export-xlsx.

wangye19920128 avatar wangye19920128 commented on June 16, 2024

from vxe-table-plugin-export-xlsx.

wangye19920128 avatar wangye19920128 commented on June 16, 2024

from vxe-table-plugin-export-xlsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.