Skip to content

Commit

Permalink
feat: add configurable text of form dialog button
Browse files Browse the repository at this point in the history
  • Loading branch information
hackycy committed Oct 20, 2021
1 parent 3d1a5b1 commit 8ad8861
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/FormDialog/FormDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default {
center: true
},
op: {
saveButtonText: '保存',
cancelButtonText: '取消'
saveButtonText: '保 存',
cancelButtonText: '取 消'
},
/**
* example
Expand Down Expand Up @@ -266,10 +266,10 @@ export default {
return (
<el-row type='flex' justify='end'>
<el-button { ...{ props: { size: 'mini' }, on: { click: () => { this._beforeClose() } }} }>
取 消
{ this.conf.op.cancelButtonText }
</el-button>
<el-button { ...{ props: { size: 'mini', type: 'success', loading: this.saving }, on: { click: () => { this._submit() } }} }>
确 定
{ this.conf.op.saveButtonText }
</el-button>
</el-row>
)
Expand Down

0 comments on commit 8ad8861

Please sign in to comment.