ruby axlsx gem column_widths
column_sizes为动态添加的数组
使用column_widths 函数设置列宽
sheet.column_widths(column_sizes)
报错
<ArgumentError: Invalid Data [100, 200, 200, 200, 100, 200, 200, 200, 100, 200, 200, 200, 50] for unsigned_numeric. must be Numeric.>
要在方法调用中使用 splat
sheet.column_widths(*column_sizes)
ruby axlsx column_widths传参数组报错
最新推荐文章于 2024-10-20 21:19:10 发布