You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
duoji-frontend/src/views/roadwayManage/model.vue

48 lines
987 B
Vue

<template>
<div v-if="visible">
<a-modal
:title="modelTitle"
:visible="visible"
:confirm-loading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
ok-text="确认" cancel-text="取消"
>
<p>gfgdfgdfgdf</p>
</a-modal>
</div>
</template>
<script>
export default {
props:{
visible:{
type:Boolean
},
modelTitle:{
type:String
}
},
data() {
return {
confirmLoading: false,
};
},
mounted() {
},
methods: {
handleOk() {
this.confirmLoading = true;
setTimeout(() => {
this.$emit('sure',false)
this.confirmLoading = false;
}, 500);
},
handleCancel() {
console.log('Clicked cancel button');
this.$emit('close',false)
},
},
};
</script>