fix(图表): 多选复制忽略 null 值

This commit is contained in:
wisonic 2024-11-04 16:29:01 +08:00
parent af3c22280b
commit d298b6ec28

View File

@ -1035,7 +1035,7 @@ export function copyContent(s2Instance: SpreadSheet, event, fieldMeta) {
if (metaObj) {
fieldVal = metaObj.formatter(value)
}
if (fieldVal === undefined) {
if (fieldVal === undefined || fieldVal === null) {
fieldVal = ''
}
if (index !== arr.length - 1) {