-
Notifications
You must be signed in to change notification settings - Fork 9
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
导出的数字列不能自动求和 #19
Comments
这是因为数据默认是string类型的,你可以通过在column里设置valueType为number,这样就能自动求和了 |
如果我把 c && "number" == typeof l || "number" === e.valueType ? "n" : "s" 改成 "number" == typeof l || "number" === e.valueType ? "n" : "s" ,
把 c && 去掉,让代码根据值的类型判断是字符串还是数字 , 可不可以呢 ?
赵岩
***@***.***
---- 回复的原邮件 ----
***@***.***>发送日期2024年3月15日 ***@***.***>***@***.***>,
***@***.***>主题Re: [PengChen96/table-xlsx] 导出的数字列不能自动求和 (Issue #19)
这是因为数据默认是string类型的,你可以通过在column里设置valueType为number,这样就能自动求和了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
让代码根据值的类型判断,你可以不设置valueType,然后在exportFile({raw:true})里设置这个raw为true |
非常感谢。
赵岩
***@***.***
---- 回复的原邮件 ----
***@***.***>发送日期2024年3月15日 ***@***.***>***@***.***>,
***@***.***>主题Re: [PengChen96/table-xlsx] 导出的数字列不能自动求和 (Issue #19)
让代码根据值的类型判断,你可以不设置valueType,然后在exportFile({raw:true})里设置这个raw为true
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
在请问下 ,负号显示不正常,该如何解决啊?
赵岩
***@***.***
---- 回复的原邮件 ----
***@***.***>发送日期2024年3月15日 ***@***.***>***@***.***>,
***@***.***>主题Re: [PengChen96/table-xlsx] 导出的数字列不能自动求和 (Issue #19)
让代码根据值的类型判断,你可以不设置valueType,然后在exportFile({raw:true})里设置这个raw为true
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
这个问题非常奇怪,用Excel 打开负号在后面,用WPS就显示正常。 |
导出的文件用WPS打开负号在前面,但是用EXCEL打开负号就跑到后面了。
赵岩
***@***.***
---- 回复的原邮件 ----
***@***.***>发送日期2024年3月15日 ***@***.***>***@***.***>,
***@***.***>主题Re: [PengChen96/table-xlsx] 导出的数字列不能自动求和 (Issue #19)
让代码根据值的类型判断,你可以不设置valueType,然后在exportFile({raw:true})里设置这个raw为true
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
应该不是Office EXCEL设置的问题,我打开其他来源的表格文件,显示的没问题。 |
找到问题了,导出的文件默认在对齐格式哪里没有默认从左到右读,这个框架能设置文字方向吗? |
仔细阅读了你的框架代码,终于找到是哪个属性了,还是得感谢你提供的这个框架。 |
嗯,刚在忙没时间回复,可以通过alignmentReadingOrder设置阅读顺序 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如金额字段 , 不能自动求和
The text was updated successfully, but these errors were encountered: