修复关键警告 — emit 未声明
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:model-value="props.openPrescription"
|
||||
@update:model-value="$emit('update:openPrescription', $event)"
|
||||
:title="dialogTitle"
|
||||
width="95%"
|
||||
teleported
|
||||
destroy-on-close
|
||||
@update:model-value="$emit('update:openPrescription', $event)"
|
||||
@open="open"
|
||||
@close="close"
|
||||
>
|
||||
@@ -613,6 +613,7 @@ const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
medicationInfo: {
|
||||
type: Object,
|
||||
@@ -635,7 +636,7 @@ const ids = ref([]); // 存储选择的药品信息行数据
|
||||
const selectData = ref([]); // 存储选择的药品信息行数据
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const emit = defineEmits(['close']);
|
||||
const emit = defineEmits(['close', 'update:openPrescription']);
|
||||
const total = ref(0);
|
||||
const queryParams = ref({
|
||||
pageNum: 1,
|
||||
|
||||
Reference in New Issue
Block a user