Commit 1472de8d by liyijie

feat: 直接使用url数组,wrap_text默认已经支持

parent d0599606
...@@ -236,11 +236,9 @@ module TalltyImportExport ...@@ -236,11 +236,9 @@ module TalltyImportExport
'否' '否'
elsif data.is_a?(Array) && data.first&.dig('url').present? elsif data.is_a?(Array) && data.first&.dig('url').present?
# 文件array # 文件array
rt = Axlsx::RichText.new
data.map do |item| data.map do |item|
rt.add_run item.dig('url') item.dig('url')
rt.add_run('\n') end.compact
end
else else
data data
end end
......
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