tdesign-pro-component
Version:
ProComponents tdesign-vue-next + Vue3 + TS
25 lines (24 loc) • 897 B
TypeScript
import { WithFalse } from '@tdesign-pro-component/utils';
import { MenuProps } from 'tdesign-vue-next';
import { VNode } from 'vue';
export interface ProLayoutProps {
headerRender?: WithFalse<(props: ProLayoutProps) => VNode>;
logoRender?: WithFalse<(props: ProLayoutProps) => VNode>;
actionsRender?: WithFalse<(props: ProLayoutProps) => VNode>;
asideRender?: WithFalse<(props: ProLayoutProps) => VNode>;
footerRender?: WithFalse<(props: ProLayoutProps) => VNode>;
routes?: ProLayoutRoute[];
routeGroup?: boolean;
collapsed?: boolean;
menuTheme?: 'light' | 'dark';
menuProps?: MenuProps;
onClick?: (path: string, route: ProLayoutRoute) => void;
}
export interface ProLayoutRoute {
title: string | (() => VNode);
path: string;
icon?: string | (() => VNode);
disabled?: boolean;
children?: ProLayoutRoute[];
[name: string]: any;
}