Skip to content

Commit

Permalink
perf(table): 移除导入导出模块
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Sep 14, 2020
1 parent 921f57f commit d777c79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 275 deletions.
16 changes: 2 additions & 14 deletions src/components/BaseTable/BaseTable.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<!--
@file BaseTable.vue基于el-table二次封装,支持搜索、分页、动态生成表头,页面大量使用建议三次封装
参考https://zhuanlan.zhihu.com/p/31990840
@file BaseTable.vue基于el-table二次封装,支持高级查询、分页、动态生成表头
参考 https://zhuanlan.zhihu.com/p/31990840
@author BoBo
@copyright NanJing Anshare Tech .Com
@createDate 2018年11月14日10:00:37
@Refactor 重构 by BoBo
-->

<template>
Expand All @@ -19,12 +18,6 @@
<slot name="btnBarPrevBtn" />
<!-- 添加 -->
<slot name="btnAdd" />
<!-- 导出 -->
<slot name="btnExport"
:order="sortParams.orderCondition"
:search="tableParams" />
<!-- 导入 -->
<slot name="btnImport" />
</div>
<!--
高级搜索表单
Expand Down Expand Up @@ -632,11 +625,6 @@ export default class BaseTable extends Vue {
this.dataChangeHandler();
}

// 行内编辑的情况下获取CrudTable中传入的row
addRow(row) {
this.tableData.push(row);
}

@Watch('data')
onDataChange(value: any, oldval: any) {
// 监听本地数据变动实时更新列表
Expand Down
Loading

0 comments on commit d777c79

Please sign in to comment.