Skip to content

Commit

Permalink
feat: 删除弹窗的确认按钮用danger样式
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldshen authored and levy9527 committed May 20, 2019
1 parent 0efce14 commit 5b4b54c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/el-data-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ export default {
onDefaultDelete(row) {
this.$confirm('确认删除吗', '提示', {
type: 'warning',
confirmButtonClass: 'el-button--danger',
beforeClose: (action, instance, done) => {
if (action == 'confirm') {
instance.confirmButtonLoading = true
Expand Down

0 comments on commit 5b4b54c

Please sign in to comment.