|
@@ -16,11 +16,7 @@
|
|
|
<div slot="footer">
|
|
|
<slot name="footer">
|
|
|
<el-button @click="handleCancel" size="small">取消</el-button>
|
|
|
- <el-button
|
|
|
- @click="handleConfirm"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- :disabled="this.btnDisabled"
|
|
|
+ <el-button @click="handleConfirm" type="primary" size="small" :disabled="this.btnDisabled"
|
|
|
>确定</el-button
|
|
|
>
|
|
|
</slot>
|
|
@@ -57,20 +53,22 @@ export default {
|
|
|
},
|
|
|
destroy: {
|
|
|
type: Boolean,
|
|
|
- default: false,
|
|
|
- },
|
|
|
+ default: false
|
|
|
+ }
|
|
|
},
|
|
|
- data() {
|
|
|
- return {
|
|
|
+ data(){
|
|
|
+ return{
|
|
|
btnDisabled: false,
|
|
|
- };
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
},
|
|
|
- mounted() {},
|
|
|
methods: {
|
|
|
// 确定的回调
|
|
|
handleConfirm() {
|
|
|
- this.btnDisabled = true;
|
|
|
- this.$emit("confirm", false);
|
|
|
+ this.btnDisabled = false;
|
|
|
+ this.$emit("confirm", false);
|
|
|
+ this.btnDisabled = true;
|
|
|
},
|
|
|
// 取消的回调
|
|
|
handleCancel() {
|