Skip to content

Commit

Permalink
chore: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Mar 27, 2022
1 parent 4434fb2 commit cc71e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions packages/pro-layout/examples/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
<h1>Pro Layout</h1>
</a>
</template>
<!-- custom collapsed button -->
<template #collapsedButtonRender="collapsed">
<HeartOutlined v-if="collapsed" />
<SmileOutlined v-else />
</template>

<!-- custom right-content -->
<template #rightContentRender>
<div style="margin-right: 12px">
Expand Down Expand Up @@ -118,7 +114,7 @@ export default defineComponent({
// title: 'ProLayout',
// logo: 'https://alicdn.antdv.com/v2/assets/logo.1ef800a8.svg',
navTheme: 'dark',
layout: 'mix',
layout: 'side',
fixSiderbar: true,
fixedHeader: true,
})
Expand Down
4 changes: 2 additions & 2 deletions packages/pro-layout/examples/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
import NestedLayout from '../layouts/NestedLayout.vue'
import BasicLayout from '../layouts/BasicLayout.vue'
import BlankLayout from '../layouts/BlankLayout.vue'
import WelcomePage from '../views/Hello.vue'

Expand All @@ -9,7 +9,7 @@ const routes: RouteRecordRaw[] = [
path: '/',
name: 'index',
meta: { title: 'Home' },
component: NestedLayout,
component: BasicLayout,
redirect: '/welcome',
children: [
{
Expand Down

0 comments on commit cc71e4c

Please sign in to comment.