This commit is contained in:
lijianyou
2025-09-30 15:00:32 +08:00
parent 1b262f06b8
commit b4e759cf69
202 changed files with 22035 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { useSettingStore } from '@/store';
import { onBeforeMount, onUnmounted, onActivated, onDeactivated } from 'vue';
export function useUnbounded() {
const { setContentClass } = useSettingStore();
const setUnbounded = () => {
setContentClass('unbounded');
setTimeout(() => window.dispatchEvent(new Event('resize')), 300);
};
const removeUnbounded = () => {
setContentClass('common');
setTimeout(() => window.dispatchEvent(new Event('resize')), 300);
};
onBeforeMount(setUnbounded);
onUnmounted(removeUnbounded);
onActivated(setUnbounded);
onDeactivated(removeUnbounded);
}