Commit c54eb173 by liyijie

fix: 导出对于string数据,默认format是string

parent e314e306
...@@ -88,7 +88,7 @@ module TalltyImportExport ...@@ -88,7 +88,7 @@ module TalltyImportExport
else else
row << nil row << nil
end end
formats.push(header_obj.flatten_value[col_index].format&.to_sym || (row.is_a?(String) ? :string : nil)) formats.push(header_obj.flatten_value[col_index].format&.to_sym || (value.value.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