Fix breakpoint detection for dashboard

type method
This commit is contained in:
Matthias 2023-07-23 07:30:39 +02:00
parent 7a6a31c493
commit 0121cc9db2
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
:cols="{ lg: 12, md: 12, sm: 12, xs: 4, xxs: 2 }"
:col-num="12"
@layout-updated="layoutUpdatedEvent"
@breakpoint-changed="breakpointChanged"
@update:breakpoint="breakpointChanged"
>
<template #default="{ gridItemProps }">
<grid-item
@ -177,8 +177,8 @@ const botStore = useBotStore();
const layoutStore = useLayoutStore();
const currentBreakpoint = ref('');
const breakpointChanged = (newBreakpoint) => {
// // console.log('breakpoint:', newBreakpoint);
const breakpointChanged = (newBreakpoint: string) => {
// console.log('breakpoint:', newBreakpoint);
currentBreakpoint.value = newBreakpoint;
};
const isResizableLayout = computed(() =>

View File

@ -169,7 +169,7 @@ const botStore = useBotStore();
const layoutStore = useLayoutStore();
const currentBreakpoint = ref('');
const breakpointChanged = (newBreakpoint) => {
const breakpointChanged = (newBreakpoint: string) => {
// console.log('breakpoint:', newBreakpoint);
currentBreakpoint.value = newBreakpoint;
};