|
|
@@ -1,6 +1,6 @@ |
|
|
|
<!--警示信息的公共弹窗--> |
|
|
|
<template> |
|
|
|
<u-popup v-model="state.showPopup" mode="center" border-radius="12"> |
|
|
|
<u-popup v-model="state.showPopup" mode="center" border-radius="12" @close="close"> |
|
|
|
<view class="popup-content"> |
|
|
|
<view class="title"> |
|
|
|
<!-- <image class="icon_tips" :src="`${$imgUrl}common/icon-tips.png`"></image> --> |
|
|
@@ -18,7 +18,7 @@ |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import { reactive, watch } from 'vue' |
|
|
|
const emits = defineEmits(['cancel', 'confirm', 'update:modelValue']); |
|
|
|
const emits = defineEmits(['cancel', 'confirm', 'close', 'update:modelValue']); |
|
|
|
const props = defineProps({ |
|
|
|
modelValue: { |
|
|
|
type: Boolean, |
|
|
@@ -57,6 +57,12 @@ |
|
|
|
emits('update:modelValue', false) |
|
|
|
emits('confirm') |
|
|
|
} |
|
|
|
|
|
|
|
const close = () => { |
|
|
|
state.showPopup = false |
|
|
|
emits('update:modelValue', false) |
|
|
|
emits('close') |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped lang="scss"> |