-- fix bug

This commit is contained in:
yuping
2023-03-04 02:53:02 +08:00
parent ff6bd4907f
commit 77aac9cdcf
5 changed files with 147 additions and 98 deletions

View File

@@ -1,13 +1,13 @@
<template>
<a-modal
:visible="true"
:footer="null"
:title="null"
:centere="true"
:closable="false"
style="margin-top: 400px"
:zIndex="9999"
@cancel="close"
:visible="true"
:footer="null"
:title="null"
:centere="true"
:closable="false"
style="margin-top: 400px"
:zIndex="9999"
@cancel="close"
>
<div class="delete">
<div class="del_header"></div>
@@ -22,7 +22,7 @@
<div><span>{{ content }}</span></div>
</div>
<div class="del_btnbox">
<div class="del_btn btn2" @click="close">
<div class="del_btn btn2" @click="close" v-if="cancel">
<div class="btnText">取消</div>
</div>
<div class="del_btn btn2" @click="handleConfirm">
@@ -34,9 +34,9 @@
</a-modal>
</template>
<script setup>
import notide from '@/assets/images/coursewareManage/notice.png'
import infoPng from '@/assets/images/coursewareManage/QR.png'
import {defineProps, ref} from "vue";
import notide from "@/assets/images/coursewareManage/notice.png";
import infoPng from "@/assets/images/coursewareManage/QR.png";
import {defineProps, onMounted, ref} from "vue";
const props = defineProps({
close: {
@@ -50,22 +50,34 @@ const props = defineProps({
content: String,
title: {
type: String,
default: '提示'
default: "提示"
},
cancel: {
type: Boolean,
default: true
},
duration: {
type: Number,
default: 0
},
type: {
type: Number,
default: 1
}
})
});
const types = {
1: infoPng,
2: notide
}
const type = ref(1)
};
const type = ref(1);
onMounted(() => {
props.duration && setTimeout(() => props.close(), props.duration)
});
function handleConfirm() {
props.ok()
props.close()
props.ok();
props.close();
}
</script>
<style lang="scss" scoped>
@@ -84,8 +96,8 @@ function handleConfirm() {
width: calc(100%);
height: 40px;
background: linear-gradient(
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
rgba(78, 166, 255, 0.2) 0%,
rgba(78, 166, 255, 0) 100%
);
}