<template>
<div class="home">
<div id="nav">
<el-button type="info" @click="showFun">showFun</el-button>
</div>
</div>
</template>
<script>
export default {
methods:{
showFun(){
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
console.log(1);
}).catch(() => {});
}
}
}
</script>
<style>
</style>
this.$confirm(`确定要删除此图片吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then((action) => {
console.log(action)
})
this.$confirm(
'<div style&#