fix: 某些带Vxe表格弹窗 关闭后没有正常清理表格数据的问题

This commit is contained in:
dap 2025-05-09 11:12:24 +08:00
parent 8f71d6a5d9
commit 51fbfcedd2
4 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
# 1.3.5
**BUG FIX**
- 某些带Vxe表格弹窗 关闭后没有正常清理表格数据的问题
# 1.3.4 # 1.3.4
**BUG FIX** **BUG FIX**

View File

@ -17,6 +17,7 @@ const emit = defineEmits<{ reload: [] }>();
const [BasicDrawer, drawerApi] = useVbenDrawer({ const [BasicDrawer, drawerApi] = useVbenDrawer({
onConfirm: handleSubmit, onConfirm: handleSubmit,
onCancel: handleReset, onCancel: handleReset,
destroyOnClose: true,
}); });
const route = useRoute(); const route = useRoute();

View File

@ -85,6 +85,7 @@ const [BasicDrawer, drawerApi] = useVbenDrawer({
onBeforeClose, onBeforeClose,
onClosed: handleClosed, onClosed: handleClosed,
onConfirm: handleConfirm, onConfirm: handleConfirm,
destroyOnClose: true,
async onOpenChange(isOpen) { async onOpenChange(isOpen) {
if (!isOpen) { if (!isOpen) {
return null; return null;

View File

@ -85,6 +85,7 @@ const [BasicDrawer, drawerApi] = useVbenDrawer({
onBeforeClose, onBeforeClose,
onClosed: handleClosed, onClosed: handleClosed,
onConfirm: handleConfirm, onConfirm: handleConfirm,
destroyOnClose: true,
async onOpenChange(isOpen) { async onOpenChange(isOpen) {
if (!isOpen) { if (!isOpen) {
return null; return null;