This commit is contained in:
aihe 2024-12-22 11:35:17 +08:00
parent bfbe7efa2f
commit b942da7c4f

View File

@ -75,6 +75,11 @@
return true
}
},
sureCheckFun: {
default () {
return null
}
},
},
data() {
return {
@ -95,8 +100,14 @@
this.$emit('update:show', false)
this.$emit('onClose')
},
handleSubmitValue() {
async handleSubmitValue() {
const val = this.submitVals
if(this.sureCheckFun) {
let bl = await this.sureCheckFun(val)
if(!bl){
return false
}
}
this.$emit('onSure', val)
this.$emit('update:value', val)
this.okCloseModal && this.handleCloseModal()