Bläddra i källkod

Update TipsInfo.vue

master
@weixixuan 3 dagar sedan
förälder
incheckning
7e133449bf
1 ändrade filer med 8 tillägg och 2 borttagningar
  1. 8
    2
      components/common/TipsInfo.vue

+ 8
- 2
components/common/TipsInfo.vue Visa fil

@@ -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">

Laddar…
Avbryt
Spara