v2.15.0

DashboardGroup

Контейнер дашборда с фиксированной раскладкой, управлением состоянием бокового меню и сохранением состояния интерфейса.

Использование

Компонент DashboardGroup — основная раскладка, которая оборачивает компоненты DashboardSidebar и DashboardPanel и собирает адаптивный интерфейс дашборда.

Используйте его в раскладке или в app.vue:

layouts/dashboard.vue
<template>
  <B24DashboardGroup>
    <B24DashboardSidebar />

    <slot />
  </B24DashboardGroup>
</template>

API

Пропсы

Prop Default Type
as'div'any

The element or component this component should render as.

storage'cookie' "cookie" | "local"

The storage to use for the size.

storageKey'dashboard' string

Unique id used to auto-save size.

storageOptions Record<string, any>

Options to pass to the underlying storage (useCookie or useStorage).

persistenttrueboolean

Whether to persist the size in the storage.

unit'px' "px" | "%" | "rem"

The unit to use for size values.

b24ui { base?: any; }

Слоты

Slot Type
default{}

Тема

https://github.com/bx-shef/b24-ui/tree/main/src/theme/dashboard-group.ts
export default {
  base: 'fixed inset-0 flex overflow-hidden'
}