Commit 979d6fb5 by liyijie

fix: 使用row.last判断数据格式

parent c54eb173
...@@ -88,7 +88,9 @@ module TalltyImportExport ...@@ -88,7 +88,9 @@ module TalltyImportExport
else else
row << nil row << nil
end end
formats.push(header_obj.flatten_value[col_index].format&.to_sym || (value.value.is_a?(String) ? :string : nil)) formats.push(
header_obj.flatten_value[col_index].format&.to_sym || row.last.is_a?(String) ? :string : nil
)
end end
sheet.add_row(row, style: title3, height: @row_height, types: formats) sheet.add_row(row, style: title3, height: @row_height, types: formats)
formats = [] 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