mirror of
https://gitee.com/x-extends/vxe-table-plugin-export-xlsx.git
synced 2026-01-21 05:21:33 +08:00
update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
||||
node_modules
|
||||
/dist
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# vxe-table-plugin-export-xlsx
|
||||
|
||||
[](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-export-xlsx/stargazers)
|
||||
[](https://gitee.com/x-extends/vxe-table-plugin-export-xlsx/stargazers)
|
||||
[](https://www.npmjs.com/package/vxe-table-plugin-export-xlsx)
|
||||
[](http://npm-stat.com/charts.html?package=vxe-table-plugin-export-xlsx)
|
||||
[](LICENSE)
|
||||
@@ -15,6 +15,7 @@ npm install xe-utils vxe-table vxe-table-plugin-export-xlsx exceljs
|
||||
|
||||
```javascript
|
||||
// ...
|
||||
import VXETable from 'vxe-table'
|
||||
import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
|
||||
// ...
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
import XEUtils from 'xe-utils/ctor'
|
||||
import dependencies from 'vxe-table/lib/utils/dependencies'
|
||||
|
||||
XEUtils.mixin(dependencies)
|
||||
@@ -12,7 +12,7 @@ const tsconfig = require('./tsconfig.json')
|
||||
const exportModuleName = 'VXETablePluginExportXLSX'
|
||||
|
||||
gulp.task('build_commonjs', function () {
|
||||
return gulp.src(['depend.ts', 'index.ts'])
|
||||
return gulp.src(['index.ts'])
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(ts(tsconfig.compilerOptions))
|
||||
.pipe(babel({
|
||||
@@ -27,7 +27,7 @@ gulp.task('build_commonjs', function () {
|
||||
})
|
||||
|
||||
gulp.task('build_umd', function () {
|
||||
return gulp.src(['depend.ts', 'index.ts'])
|
||||
return gulp.src(['index.ts'])
|
||||
.pipe(ts(tsconfig.compilerOptions))
|
||||
.pipe(replace(`import XEUtils from 'xe-utils/ctor';`, `import XEUtils from 'xe-utils';`))
|
||||
.pipe(babel({
|
||||
|
||||
4
index.ts
4
index.ts
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import XEUtils from 'xe-utils/ctor'
|
||||
import XEUtils from 'xe-utils'
|
||||
import {
|
||||
VXETable,
|
||||
Table,
|
||||
@@ -10,7 +9,6 @@ import {
|
||||
ColumnAlign
|
||||
} from 'vxe-table/lib/vxe-table'
|
||||
import * as ExcelJS from 'exceljs'
|
||||
/* eslint-enable no-unused-vars */
|
||||
|
||||
const defaultHeaderBackgroundColor = 'f8f8f9'
|
||||
const defaultCellFontColor = '606266'
|
||||
|
||||
@@ -50,10 +50,10 @@
|
||||
"typescript": "^4.0.5",
|
||||
"vue": "^2.6.12",
|
||||
"vxe-table": "^2.10.0",
|
||||
"xe-utils": "^3.0.4"
|
||||
"xe-utils": "^3.1.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vxe-table": ">= 2.10"
|
||||
"vxe-table": "^2.10.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.ts",
|
||||
"depend.ts"
|
||||
"index.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user