update
This commit is contained in:
@@ -215,6 +215,7 @@ new Vue({ i18n }).$mount('#app')
|
||||
| clearSort | 用于清空排序条件,数据会恢复成未排序的状态 | — |
|
||||
| clearFilter | 用于清空筛选条件,数据会恢复成未筛选的状态 | — |
|
||||
| computeWidth | 重新计算并更新列宽 | — |
|
||||
| isScrollLoad | 判断是否启用了滚动渲染 | — |
|
||||
| exportCsv| 将表格数据导出为 .csv 文件,说明:支持IE9+、Edge、Chrome、Firefox 等常用浏览器。IE11以下可能存在中文乱码问题,部分浏览器需要手动修改后缀名为 .csv | [options](#exportcsv-参数说明) |
|
||||
|
||||
##### exportCsv 参数说明
|
||||
|
||||
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vxe-table/favicon.ico><title>vue table</title><link href=/vxe-table/static/css/index.d25c8c2a.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.008911ee.js rel=preload as=script><link href=/vxe-table/static/js/index.8b7bed7b.js rel=preload as=script><link href=/vxe-table/static/css/index.d25c8c2a.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.008911ee.js></script><script src=/vxe-table/static/js/index.8b7bed7b.js></script></body></html>
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vxe-table/favicon.ico><title>vue table</title><link href=/vxe-table/static/css/index.d25c8c2a.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.008911ee.js rel=preload as=script><link href=/vxe-table/static/js/index.b8024a70.js rel=preload as=script><link href=/vxe-table/static/css/index.d25c8c2a.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.008911ee.js></script><script src=/vxe-table/static/js/index.b8024a70.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -6428,6 +6428,13 @@ function renderFixed(h, $table, fixedType) {
|
||||
this.closeFilter();
|
||||
},
|
||||
|
||||
/**
|
||||
* 是否启用了滚动渲染
|
||||
*/
|
||||
isScrollLoad: function isScrollLoad() {
|
||||
return this.scrollLoad;
|
||||
},
|
||||
|
||||
/**
|
||||
* 滚动渲染事件处理
|
||||
*/
|
||||
@@ -6520,6 +6527,10 @@ function renderFixed(h, $table, fixedType) {
|
||||
opts.filename += '.csv';
|
||||
}
|
||||
|
||||
if (this.scrollLoad) {
|
||||
opts.original = true;
|
||||
}
|
||||
|
||||
var columns = this.tableColumn;
|
||||
var oData = this.tableFullData;
|
||||
return tools_export.downloadCsc(opts, tools_export.getCsvContent(opts, oData, columns, this.$el));
|
||||
|
||||
@@ -6437,6 +6437,13 @@ function renderFixed(h, $table, fixedType) {
|
||||
this.closeFilter();
|
||||
},
|
||||
|
||||
/**
|
||||
* 是否启用了滚动渲染
|
||||
*/
|
||||
isScrollLoad: function isScrollLoad() {
|
||||
return this.scrollLoad;
|
||||
},
|
||||
|
||||
/**
|
||||
* 滚动渲染事件处理
|
||||
*/
|
||||
@@ -6529,6 +6536,10 @@ function renderFixed(h, $table, fixedType) {
|
||||
opts.filename += '.csv';
|
||||
}
|
||||
|
||||
if (this.scrollLoad) {
|
||||
opts.original = true;
|
||||
}
|
||||
|
||||
var columns = this.tableColumn;
|
||||
var oData = this.tableFullData;
|
||||
return tools_export.downloadCsc(opts, tools_export.getCsvContent(opts, oData, columns, this.$el));
|
||||
|
||||
2
lib/index.umd.min.js
vendored
2
lib/index.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vxe-table",
|
||||
"version": "0.0.1-beta.9",
|
||||
"version": "0.0.2",
|
||||
"description": "A very powerful Vue table component.",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
||||
@@ -1015,6 +1015,12 @@ export default {
|
||||
})
|
||||
this.closeFilter()
|
||||
},
|
||||
/**
|
||||
* 是否启用了滚动渲染
|
||||
*/
|
||||
isScrollLoad () {
|
||||
return this.scrollLoad
|
||||
},
|
||||
/**
|
||||
* 滚动渲染事件处理
|
||||
*/
|
||||
@@ -1086,6 +1092,9 @@ export default {
|
||||
if (opts.filename.indexOf('.csv') === -1) {
|
||||
opts.filename += '.csv'
|
||||
}
|
||||
if (this.scrollLoad) {
|
||||
opts.original = true
|
||||
}
|
||||
let columns = this.tableColumn
|
||||
let oData = this.tableFullData
|
||||
return ExportTools.downloadCsc(opts, ExportTools.getCsvContent(opts, oData, columns, this.$el))
|
||||
|
||||
Reference in New Issue
Block a user