Commit 33d7ab3e by liyijie

Add export_headers to tallty_import_export/exportable

parent e493e4fe
...@@ -25,6 +25,7 @@ module TalltyImportExport ...@@ -25,6 +25,7 @@ module TalltyImportExport
# method: 导出时本地调用的方法 # method: 导出时本地调用的方法
# chain: 导出时对象属性通过链式调用 # chain: 导出时对象属性通过链式调用
# index: 数组方式,需要嵌套拿到里面的 # index: 数组方式,需要嵌套拿到里面的
# merge: true/false,默认false,某一列,如果上下行的内容相同,则直接合并单元格
def export_xlsx records, **options def export_xlsx records, **options
records = with_scope records records = with_scope records
......
...@@ -16,6 +16,10 @@ module TalltyImportExport ...@@ -16,6 +16,10 @@ module TalltyImportExport
def export_xlsx records, **options def export_xlsx records, **options
export_instance.export_xlsx(records, **options) export_instance.export_xlsx(records, **options)
end end
def export_headers
export_instance.export_headers
end
end end
end end
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