|
@@ -12,10 +12,9 @@ import {
|
|
|
} from "element-plus";
|
|
|
import {nextTick, onMounted, ref, computed, watch} from "vue";
|
|
|
import sleep from "@/utils/sleep";
|
|
|
-import {Close} from '@element-plus/icons-vue'
|
|
|
+import {Close} from '@element-plus/icons-vue';
|
|
|
import {useCompRef} from "@/utils/useCompRef";
|
|
|
-import {uuid} from '@/utils/getUuid'
|
|
|
-import '@/assets/cy/cy-dialog.css'
|
|
|
+import {uuid} from '@/utils/getUuid';
|
|
|
|
|
|
const props = defineProps({
|
|
|
title: {
|
|
@@ -132,9 +131,9 @@ const reboundClick = async () => {
|
|
|
|
|
|
const overlayClick = () => {
|
|
|
if (props.closeOnClickModal) {
|
|
|
- handelClose('close')
|
|
|
+ handelClose('close');
|
|
|
} else {
|
|
|
- reboundClick()
|
|
|
+ reboundClick();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -174,7 +173,7 @@ const submitVerification = (val): boolean => {
|
|
|
const handelClose = (val: 'cancel' | 'confirm' | 'close') => {
|
|
|
if (!submitVerification(val)) return
|
|
|
if (val === "cancel" && !props.beforeClose(inputValue.value)) {
|
|
|
- reboundClick()
|
|
|
+ reboundClick();
|
|
|
return;
|
|
|
}
|
|
|
visible.value = false
|
|
@@ -329,6 +328,8 @@ onMounted(async () => {
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+@import "@/assets/cy/cy-dialog";
|
|
|
+
|
|
|
$cy-message-box-radius: 13px;
|
|
|
|
|
|
.cy-overlay-message-box {
|