Commit 979d6fb5 by liyijie

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

parent c54eb173
......@@ -88,7 +88,9 @@ module TalltyImportExport
else
row << nil
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
sheet.add_row(row, style: title3, height: @row_height, types: 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