본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

DashboardGroup

원문 보기 위키 갱신

사이드바 상태 관리와 영속성을 갖춘 대시보드 컴포넌트들의 콘텍스트를 제공하는 고정 레이아웃 컴포넌트예요.

출처: Nuxt UI

본문

사용법

DashboardGroup 컴포넌트는 DashboardSidebar와 DashboardPanel 컴포넌트를 감싸 반응형 대시보드 인터페이스를 만들어 주는 메인 레이아웃이에요.

레이아웃 파일이나 app.vue에서 이렇게 사용해 주세요:

<template>
  <UDashboardGroup>
    <UDashboardSidebar />

    <slot />
  </UDashboardGroup>
</template>

API

Props

/**
 * Props for the DashboardGroup component
 */
interface DashboardGroupProps {
  /**
   * The element or component this component should render as.
   * @default 'div'
   */
  as?: any;
  ui?: { base?: any; } | undefined;
  /**
   * The storage to use for the size.
   * @default 'cookie'
   */
  storage?: "cookie" | "local" | undefined;
  /**
   * Unique id used to auto-save size.
   * @default 'dashboard'
   */
  storageKey?: string | undefined;
  /**
   * Options to pass to the underlying storage (`useCookie` or `useStorage`).
   */
  storageOptions?: Record<string, any> | undefined;
  /**
   * Whether to persist the size in the storage.
   * @default true
   */
  persistent?: boolean | undefined;
  /**
   * The unit to use for size values.
   * @default '%'
   */
  unit?: "%" | "rem" | "px" | undefined;
}

Slots

/**
 * Slots for the DashboardGroup component
 */
interface DashboardGroupSlots {
  default(): any;
}

테마

export default defineAppConfig({
  ui: {
    dashboardGroup: {
      base: 'fixed inset-0 flex overflow-hidden'
    }
  }
})

변경 기록

컴포넌트와 테마의 커밋 기록을 확인해 주세요.


사이트맵

전체 페이지 목록은 사이트맵에서 확인할 수 있어요.

더 알아보기 (Learn more)