<template>
<div class="step1">
【element】确认框 this.$alert
<div></div>
</div>
</template>
<script>
export default {
name: "HomePage",
data() {
return {};
},
props: {},
computed: {},
watch: {},
created() {},
mounted() {
//this.$alert("123");
//this.messageFun1();
//this.messageFun2();
//this.messageFun3();
//this.messageFun4();
//this.messageFun5();
this.messageFun6();
},
methods: {
messageFun1() {
this.$alert("请调整1", {
confirmButtonText: "确定",
type: "warning",
callback: (el) => {
console.log(12, el); //confirm
},
});
},
messageFun2() {
this.$alert("请调整2", {
confirmButtonText: "确定",
type: "warning",
callback: () => {},
});
},
messageFun3() {
this.$alert("操
【element】确认框 this.$alert
最新推荐文章于 2024-05-22 15:38:09 发布