-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script setup lang="ts"> | ||
interface Props { | ||
text: string | ||
} | ||
const props = defineProps<Props>() | ||
</script> | ||
|
||
<template> | ||
<span un-pl-16px un-color-hex-969799 un-text-14px un-fw400> | ||
{{ props.text }} | ||
</span> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
<script setup lang="ts"> | ||
import { demoRoutes, systemRoutes } from "@/router" | ||
import { demoRoutes, emptyDemoRoutes, systemRoutes } from "@/router" | ||
import Description from "@@/components/Description.vue" | ||
import Cell from "./components/Cell.vue" | ||
import Title from "./components/Title.vue" | ||
</script> | ||
|
||
<template> | ||
<div un-px-20px un-py-26px un-select-none> | ||
<Description un-pl-16px /> | ||
<div un-mt-40px> | ||
<span un-pl-16px un-color-hex-969799 un-text-14px un-fw400> | ||
示例集合 | ||
</span> | ||
<Title text="示例集合" /> | ||
<Cell | ||
v-for="route in [...demoRoutes, ...systemRoutes]" | ||
:key="route.path" | ||
:title="route.meta?.title || ''" | ||
:path="route.path" | ||
un-mt-12px | ||
/> | ||
<van-divider>🔥 更多优秀示例,期待你的 PR 👏🏻</van-divider> | ||
</div> | ||
<div un-my-20px> | ||
<Title text="空示例集合" /> | ||
<Cell | ||
v-for="route in emptyDemoRoutes" | ||
:key="route.path" | ||
:title="route.meta?.title || ''" | ||
:path="route.path" | ||
un-mt-12px | ||
/> | ||
</div> | ||
<van-divider>🔥 更多优秀示例,期待你的 PR 👏🏻</van-divider> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters