Skip to content

Commit

Permalink
feat(CrudTable): textMap新增批量删除按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jan 13, 2021
1 parent 18b8bc1 commit 42424cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ npm i element-pro-crud -S
edit: '编辑',
del: '删除',
detail: '查看',
multiDel: '批量删除'
}
```

Expand Down
10 changes: 6 additions & 4 deletions src/component/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<!-- 批量删除按钮 -->
<el-button v-if="view.btnDel"
@click="btnDeletesOnClick"
type="primary"
type="danger"
size="mini"
icon="el-icon-delete">删除</el-button>
icon="el-icon-delete">{{text.multiDel}}</el-button>
<!-- 添加按钮 -->
<el-button v-if="view.btnAdd"
type="primary"
Expand Down Expand Up @@ -61,9 +61,9 @@
<!-- 批量删除按钮 -->
<el-button v-if="view.btnDel"
@click="btnDeletesOnClick"
type="primary"
type="danger"
size="mini"
icon="el-icon-delete">删除</el-button>
icon="el-icon-delete">{{text.multiDel}}</el-button>
<!-- 添加按钮 -->
<el-button v-if="view.btnAdd"
type="primary"
Expand Down Expand Up @@ -527,6 +527,7 @@ export default class CrudTable extends Vue {
edit: '编辑',
del: '删除',
detail: '查看',
multiDel: '批量删除',
...this.textMap,
};
}
Expand Down Expand Up @@ -1089,6 +1090,7 @@ export default class CrudTable extends Vue {
& > div,
button {
float: right;
margin-left: 10px;
}
}
.dev-module {
Expand Down

0 comments on commit 42424cd

Please sign in to comment.