Commit 3c1be135 by liyijie

fix: 修复formats的逻辑

parent 979d6fb5
......@@ -89,7 +89,7 @@ module TalltyImportExport
row << nil
end
formats.push(
header_obj.flatten_value[col_index].format&.to_sym || row.last.is_a?(String) ? :string : nil
header_obj.flatten_value[col_index].format&.to_sym || (row.last.is_a?(String) ? :string : nil)
)
end
sheet.add_row(row, style: title3, height: @row_height, types: formats)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment