Skip to content

Commit

Permalink
fix: 修复查询工具条,重置按钮丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 9, 2020
1 parent dbcccb0 commit 6ab9c45
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lerna.json
@@ -1,7 +1,7 @@
{
"packages": [
"packages/d2-crud-*",
"packages/vue-table-*"
"packages/vue-table1-*"
],
"command": {
"publish": {
Expand Down
4 changes: 2 additions & 2 deletions packages/d2-crud-plus-example/yarn.lock
Expand Up @@ -922,8 +922,8 @@

"@d2-projects/vue-table-export@^1.0.1":
version "1.0.1"
resolved "https://registry.npmjs.org/@d2-projects/vue-table-export/-/vue-table-export-1.0.1.tgz#c4d3c3670ce8f59a6ca5e9610a8da05b446eb583"
integrity sha512-/F+ctYRSP79LmtiD+B53VBr0s7WhqHOgsxtxbnt9vN5zreMUkfd81wQKWxt2soH+FXiPDWxFi9cPSs29Iru30w==
resolved "https://registry.npm.taobao.org/@d2-projects/vue-table-export/download/@d2-projects/vue-table-export-1.0.1.tgz#c4d3c3670ce8f59a6ca5e9610a8da05b446eb583"
integrity sha1-xNPDZwzo9ZpspelhCo2gW0RutYM=
dependencies:
file-saver "^2.0.0"
vue "^2.5.11"
Expand Down
2 changes: 1 addition & 1 deletion packages/d2-crud-plus/src/lib/components/search/index.vue
Expand Up @@ -61,7 +61,7 @@
<el-button
@click="handleFormReset">
<i class="el-icon-refresh"></i>
{{reset}}
{{_text.reset}}
</el-button>
</el-form-item>
<slot name="suffix" :form="this.form"></slot>
Expand Down
3 changes: 3 additions & 0 deletions packages/d2-crud-plus/src/lib/mixins/expose.js
Expand Up @@ -25,6 +25,9 @@ export default {
this.crud.editRules = {}
this.crud.editTemplate = {}
this.crud.viewTemplate = {}
if (this.crud.searchOptions) {
this.crud.searchOptions.columns = []
}
},
/**
* initColumns 初始化结束后调用方法
Expand Down

0 comments on commit 6ab9c45

Please sign in to comment.