mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
Automatically convert comma as point for numeric cells
This commit is contained in:
parent
dbcc862a98
commit
c71975025f
@ -143,6 +143,10 @@ export function setCellValue(
|
||||
|
||||
let vupdate;
|
||||
|
||||
if (!_.isNil(v.v) && _.includes(v.ct?.fa, "0.0")) {
|
||||
v.v = _.replace(v.v.toString(), ",", ".");
|
||||
}
|
||||
|
||||
if (_.isPlainObject(v)) {
|
||||
if (_.isNil(cell)) {
|
||||
cell = v;
|
||||
@ -153,10 +157,6 @@ export function setCellValue(
|
||||
delete cell.f;
|
||||
}
|
||||
|
||||
// if (!_.isNil(v.spl)) {
|
||||
// cell.spl = v.spl;
|
||||
// }
|
||||
|
||||
if (!_.isNil(v.ct)) {
|
||||
cell.ct = v.ct;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user