Pages({ extendRoute(route) { if (route.path.includes('fruit')) { return { ...route, meta: { layout: 'home' }, }; } return route; }, onRoutesGenerated(routes) { const temp_routes = JSON.parse(JSON.stringify(routes)); temp_routes.forEach((item) => { if (item.path.includes...
Vite plugin for Vue that maps your page routes to the file system with easy over ride feature and layout configuration. - vuelify/vite-plugin-pages
const IdLayout: ParentComponent = ({ children }) => { const { id } = useParams<{ id: string }>() Expand Down 2 changes: 1 addition & 1 deletion 2 examples/solid/vite.config.ts Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may ...
//packages/theme-doc/src/Layout/renderMenu.tsx type MenuConfig = ... | { readonly key: string readonly element: React.JSX.Element | string onclick?: TitleClick } previewworkspace packages/create-project/template-lib use for previewimport { createTheme, defaultSideNavs } from 'vite-pages-...
2 changes: 1 addition & 1 deletion 2 packages/theme-doc/src/Layout/TsInfo/index.tsx Original file line numberDiff line numberDiff line change @@ -1,7 +1,7 @@ import React from 'react' import type { TsInterfaceInfo } from 'vite-plugin-react-pages/clientTypes' import s from "./i...
1 change: 1 addition & 0 deletions 1 packages/theme-doc/src/Layout/MDX/CodeBlock.module.less Original file line numberDiff line numberDiff line change @@ -1,5 +1,6 @@ .pre { position: relative; margin: 0; .copy { opacity: 0; 0 comments on commit eafe89d Please sign in to ...
subGroup: layout test: 123 --- # 分割线 Divider 6 changes: 6 additions & 0 deletions 6 packages/playground/use-theme-doc/pages/zh/components/grid/index$.md Show comments View file Edit file Delete file This file contains bidirectional Unicode text that may be interpreted or compiled...