Merge branch 'main' of https://github.com/vbenjs/vue-vben-admin into offline-icon

This commit is contained in:
dap
2024-11-08 07:54:57 +08:00
8 changed files with 19 additions and 14 deletions

View File

@@ -253,6 +253,7 @@ export class FormApi {
}
unmount() {
this.form?.resetForm?.();
// this.state = null;
this.isMounted = false;
this.stateHandler.reset();

View File

@@ -11,6 +11,7 @@ import {
computed,
nextTick,
onMounted,
onUnmounted,
toRaw,
useSlots,
useTemplateRef,
@@ -261,6 +262,11 @@ onMounted(() => {
props.api?.mount?.(gridRef.value, formApi);
init();
});
onUnmounted(() => {
formApi?.unmount?.();
props.api?.unmount?.();
});
</script>
<template>

View File

@@ -1 +1 @@
@import '@vben-core/design/bem';
@use '@vben-core/design/bem' as *;