Coder Social home page Coder Social logo

vxe-table-plugin-export-xlsx's People

Contributors

xuliangzhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vxe-table-plugin-export-xlsx's Issues

导出的时候能配置单元格边框属性

这个需求解决了什么问题:

目前导出的excel只有默认的边框,很不明显,最好能支持配置,就不需要后期处理了

建议的 API 是什么样的:

No response

是否已有其他不错的替代方案:

No response

导出bug

空格 字符 ‘ ’ 导出的时候部分数据改成0(200多条数据出现的问题)

vxe-grid组件无法使用xlsx类型

(必填)请填写问题描述或截图:

image
image

(必填)请填在线链接:
暂无

(必填)请填写期望的结果:
希望可以支持excel文件格式

(必填)请填写以下信息:

  • OS: ?macOs
  • Browser: ?新版Edge
  • vue: ? "2.6.10"
  • vxe-table: ?"2.9.18",

vxe-table v3 表尾数据导出不完整

可复现的链接:

https://codesandbox.io/s/vxe-table-3-x-vue-2-6-wen-ti-yan-shi-forked-8gf5lk

问题描述与截图:

复现链接

点击导出按钮,下载下来的 xlxs ,表尾数据不完整

使用了这个插件,
"vxe-table-plugin-export-xlsx": "2.2.6",

gridOptions: {
        border: true,
        toolbarConfig: {
          export: true,
        },
        exportConfig: {
          filename: "demo",
          // 默认选中类型
          type: "xlsx",
          // 自定义类型
          types: ["xlsx", "csv", "html", "xml", "txt"],
          // mode: 'all',
          useStyle: true,
          isFooter: true,
          isColgroup: true,
        },
},

网页中:
image

导出后,footer 行,没显示完整 :
image

vxe-table v4 版本测试过了,没有这个问题,具体代码

我试着解决:
我修改了 vxe-table-plugin-export-xlsx 的 index.es6.js
发现

function getFooterCellValue($table, opts, rows, column) {
  const cellValue = getCellLabel(column, rows[$table.getVMColumnIndex(column)]);
  return cellValue;
}

将 getFooterCellValue 函数中的 getVMColumnIndex 换成 getVTColumnIndex 就解决了

期望的结果:

表尾数据可以导出完整

操作系统:

window10

浏览器版本:

114.0.5735.91

vue 版本:

2.7.0

vxe-table 版本:

3.6.17

导出是否可以设置某列的单元格格式?

这个需求解决了什么问题:

比如某列是日期格式,导出模板,编辑后导入。
后端解析日期格式错误。将日期那列手动设置单元格式为日期,导入正常。

建议的 API 是什么样的:

No response

是否已有其他不错的替代方案:

No response

编译TS报错

(必填)请填写问题描述或截图:
编译报错
image

(必填)请填在线链接:
https://codesandbox.io/s/delicate-smoke-er6mh

(必填)请填写期望的结果:
编译不报错

(必填)请填写以下信息:

  • OS: Windows 10
  • Browser: Google Chrome 87
  • vue: 2.6.11
  • vxe-table: 3.0.11
  • vxe-table-plugin-export-xlsx: 2.0.8
  • typescript: 4.0.5

参数问题

this.$refs.xTable.exportData这个方法的参数支持那些配置呢?有清晰点的文档吗

TS编译报错

(必填)请填写问题描述或截图:
编译报错
image

(必填)请填在线链接:
https://codesandbox.io/s/delicate-smoke-er6mh

(必填)请填写期望的结果:
编译不报错

(必填)请填写以下信息:

  • OS: Windows 10
  • Browser: Google Chrome 87
  • vue: 2.6.11
  • vxe-table: 3.0.11
  • vxe-table-plugin-export-xlsx: 2.0.8
  • typescript: 4.0.5

Change font

这个需求解决了什么问题:

Is it possible to change font family and size ?

建议的 API 是什么样的:

No response

是否已有其他不错的替代方案:

No response

导出时是否可以配置那些列不导出,并且序号列按如下配置导出存在bug,为NAN

(必填)请填写问题描述或截图:
initSeqConfig(startIndex = 0) {
// 初始化序号配置项
let self = this
this.seqConfig = {
startIndex: 1, // 设置序号的起始值 number0
seqMethod({ row, $rowIndex, rowIndex, column, columnIndex, seq, $seq }) {
if (self.pagerConfigIn) {
return self.pagerConfig.pageSize * (self.pagerConfig.currentPage - 1) + seq
} else {
return $seq === '' || $seq === undefined ? seq : $seq + '.' + seq
}
}
}
}

导出时序号为NAN
(必填)请填在线链接:

(必填)请填写期望的结果:
测试修正bug

(必填)请填写以下信息:

  • OS: Mac0s
  • Browser:crome
  • vue:2.6+
  • vxe-table: 2.9+

在导出全部时不生效

(必填)请填写问题描述或截图:
image

在导出全量数据时不生效, 请求了接口, 但是没有下载文件 ,目前是否能支持全量数据xlsx导出呢,全量导出csv是正常的。

(必填)请填在线链接:

(必填)请填写期望的结果:

(必填)请填写以下信息:

  • OS: Win10
  • Browser: Chrome
  • vue: ^2.6.12
  • vxe-table: ^3.3.14

能设置导出表格的样式吗,

这个需求解决了什么问题:

导出表格的单元格合并、字体、颜色、背景、对齐、边框等,可以设置吗

建议的 API 是什么样的:

No response

是否已有其他不错的替代方案:

No response

不支持xlsx 导出

(必填)请填写问题描述或截图:

utils.js?5ef4:38 [vxe-table] 不支持的参数 "export-config.types=xlsx,csv,html,xml,txt",可能为 "csv,html,xml,txt"

(必填)请填在线链接:

(必填)请填写期望的结果:

支持xlsx导出

(必填)请填写以下信息:

  • OS: ubuntu
  • Browser: chrome
  • vue: 3.0.9
  • vxe-table:4.0.6"

引入 vxe-table-plugin-export-xlsx 在IE11下报错

(必填)请填写问题描述或截图:
使用 vxe-table v3.2.20在IE11下报错
图片
图片

升级使用最新的插件后:vxe-table-plugin-export-xlsx: 3.0.2 、exceljs: 4.2.1
在Chrome下报错
图片

(必填)请填在线链接:

(必填)请填写期望的结果:

(必填)请填写以下信息:

  • OS: Windows 10
  • Browser: IE11
  • vue: "vue": "^2.6.12", @vue/cli 4.2.3
  • vxe-table: 3.2.20

Argument of type is not assignable to parameter of type 'WritingOptions'.

打包的时候报错...


 error  in /node_modules/vxe-table-plugin-export-xlsx/index.ts

ERROR in /node_modules/vxe-table-plugin-export-xlsx/index.ts

54:34 Argument of type '{ bookType: string | undefined; bookSST: false; type: "binary"; }' is not assignable to parameter of type 'WritingOptions'.

  Types of property 'bookType' are incompatible.

    Type 'string | undefined' is not assignable to type '"html" | "xlsx" | "xlsm" | "xlsb" | "xls" | "xla" | "biff8" | "biff5" | "biff2" | "xlml" | "ods" | "fods" | "csv" | "txt" | "sylk" | "dif" | "rtf" | "prn" | "eth" | undefined'.

      Type 'string' is not assignable to type '"html" | "xlsx" | "xlsm" | "xlsb" | "xls" | "xla" | "biff8" | "biff5" | "biff2" | "xlml" | "ods" | "fods" | "csv" | "txt" | "sylk" | "dif" | "rtf" | "prn" | "eth" | undefined'.

    52 |   // 转换数据

    53 |   XLSX.utils.book_append_sheet(book, sheet, sheetName)

  > 54 |   const wbout = XLSX.write(book, { bookType: type, bookSST: false, type: 'binary' })

       |                                  ^

    55 |   const blob = new Blob([toBuffer(wbout)], { type: 'application/octet-stream' })

    56 |   // 保存导出

    57 |   downloadFile(blob, options)



 ERROR  Build failed with errors.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

tsconfig.json

  ...
  "exclude": [
    "node_modules"
  ]
    "vxe-table": "^2.8.30",
    "vxe-table-plugin-export-xlsx": "^1.2.2",
    "xe-utils": "^2.4.2",
    "xlsx": "^0.15.6"

虚拟滚动情况下,导出会异常

可复现的链接:

问题描述与截图:

如果开启了虚拟滚动下使用导出,那么页面上虚拟滚动渲染出来的部分,导出到excel上是包含了<template #default>插槽效果的,但是如果没有渲染出来的部分,导出出来的内容不会携带<template #default>甚至会错位

期望的结果:

No response

操作系统:

windows/macos

浏览器版本:

chromr 116.0.5845.187

vue 版本:

2.6.11

vxe-table 版本:

3.7.5

插件对应的vxetable版本号是多少呀

可复现的链接:

1

问题描述与截图:

image
导入就报错了

期望的结果:

能给一个vxetable 对应的 vxe-table-plugin-export-xlsx版本

操作系统:

w10

浏览器版本:

1

vue 版本:

1

vxe-table 版本:

1

多级表头导出excel

table存在多级表头,但是导出excel的时候,只有一级表头,是怎么回事?

参数问题

(必填)这个需求解决了什么问题:
this.$refs.xTable.exportData这个方法的参数支持哪些配置呢?有清晰的文档吗

截图或在线链接:

建议的 API 是什么样的:

是否已有其他不错的替代方案:

数据量比较大的时候,导出xlsx字符串小数位丢失

(必填)请填写问题描述或截图:
?因为没有设置导出数据保留两位小数的功能,所以我将数值设置cell-type="string",字符串形式导出。数据量少的时候,达到了保留两位小数效果,但是当数据量大的时候,依然无法保留两位小数。

(必填)请填在线链接:
?无

(必填)请填写期望的结果:
?支持支持数据类型的导出,能设置xlsx单元格格式,保留两位小数。

(必填)请填写以下信息:

  • vue:
  • vxe-table:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.