haoxuan
2023-11-02 031b4d9a2a6a757571015b1903bb125d414ecb2a
src/components/BaseModal.vue
@@ -36,11 +36,12 @@
})
const emit = defineEmits<{
  'update:modelValue': [show: boolean]
  close: []
}>()
const modelData = useVModel(props, 'modelValue', emit)
function closeModal() {
  modelData.value = false
  emit('close')
}
</script>
<style scoped lang="scss">
@@ -74,6 +75,7 @@
    font-weight: 600;
  }
  &-close {
    cursor: pointer;
    height: 36px;
    width: 36px;
    border-radius: 50%;