您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
428 B

  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. /**
  6. * @param {table~row[]} rows
  7. * @param {Object} config
  8. * @returns {table~row[]}
  9. */
  10. exports.default = (rows, config) => {
  11. return rows.map(cells => {
  12. return cells.map((value, index1) => {
  13. const column = config.columns[index1];
  14. return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);
  15. });
  16. });
  17. };