mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-10 19:08:53 +08:00
📝 docs: add since
label for component docs
This commit is contained in:
parent
247f0c13af
commit
3061d73bc5
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<svg
|
<svg
|
||||||
class="w-9 h-9"
|
class="w-8 h-8"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
viewBox="0 0 970 1008"
|
viewBox="0 0 970 1008"
|
||||||
|
@ -11,7 +11,7 @@ const runtimeConfig = useRuntimeConfig().public
|
|||||||
:class="[route.path !== '/' ? 'border-b-neutral-200 dark:border-b-neutral-700' : 'border-b-transparent dark:border-b-transparent']"
|
:class="[route.path !== '/' ? 'border-b-neutral-200 dark:border-b-neutral-700' : 'border-b-transparent dark:border-b-transparent']"
|
||||||
>
|
>
|
||||||
<NuxtLink to="/" class="flex items-center gap-2 text-neutral-900 dark:text-neutral-100 group">
|
<NuxtLink to="/" class="flex items-center gap-2 text-neutral-900 dark:text-neutral-100 group">
|
||||||
<Logo />
|
<Logo class="-mt-0.5" />
|
||||||
<h1 class="flex flex-col">
|
<h1 class="flex flex-col">
|
||||||
<span class="block font-medium text-xl leading-none">
|
<span class="block font-medium text-xl leading-none">
|
||||||
RayineUI
|
RayineUI
|
||||||
|
9
docs/components/icon/TablerAd2.vue
Normal file
9
docs/components/icon/TablerAd2.vue
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11.933 5H5v16h13v-8m-4 4H9" /><path d="M9 13h5V9H9zm6-8V3m3 3l2-2m-1 5h2" /></g></svg>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'TablerAd2',
|
||||||
|
}
|
||||||
|
</script>
|
9
docs/components/icon/TablerGitMerge.vue
Normal file
9
docs/components/icon/TablerGitMerge.vue
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M5 18a2 2 0 1 0 4 0a2 2 0 1 0-4 0M5 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M7 8v8" /><path d="M7 8a4 4 0 0 0 4 4h4" /></g></svg>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'TablerGitMerge',
|
||||||
|
}
|
||||||
|
</script>
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
description: The input component is used to get user input
|
description: The input component is used to get user input
|
||||||
|
since: 1.3.2
|
||||||
---
|
---
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
description: The message component is used to display a message to the user
|
description: The message component is used to display a message to the user
|
||||||
|
since: 1.2.0
|
||||||
---
|
---
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { withoutTrailingSlash } from 'ufo'
|
import { withoutTrailingSlash } from 'ufo'
|
||||||
|
import { standard } from '#rayui/ui.config'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
@ -40,10 +41,10 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
|||||||
<li v-for="child in link.children" :key="child._path">
|
<li v-for="child in link.children" :key="child._path">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
:to="child._path"
|
:to="child._path"
|
||||||
class="text-sm text-neutral-500 dark:text-neutral-400"
|
class="text-sm text-neutral-500 dark:text-neutral-400 flex items-center gap-1"
|
||||||
active-class="text-primary dark:text-primary font-medium"
|
active-class="text-primary dark:text-primary font-medium"
|
||||||
>
|
>
|
||||||
{{ child.title }}
|
<span>{{ child.title }}</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -55,9 +56,19 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
|||||||
|
|
||||||
<div class="col-span-12" :class="[hasToc ? 'md:col-span-8' : 'md:col-span-10']">
|
<div class="col-span-12" :class="[hasToc ? 'md:col-span-8' : 'md:col-span-10']">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="text-3xl text-primary font-medium">
|
<div class="flex justify-between items-center">
|
||||||
{{ page?.title || 'untitled' }}
|
<h1 class="text-3xl text-primary font-medium">
|
||||||
</h1>
|
{{ page?.title || 'untitled' }}
|
||||||
|
</h1>
|
||||||
|
<div
|
||||||
|
v-if="page?.since"
|
||||||
|
class="ring-1 ring-inset ring-primary-200 text-primary-500 rounded-md bg-primary-50 font-medium flex items-center gap-1"
|
||||||
|
:class="[standard.padding['sm'], standard.size['2xs']]"
|
||||||
|
>
|
||||||
|
<IconTablerGitMerge class="text-sm -mt-0.5" />
|
||||||
|
v{{ page.since }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<p v-if="page?.description" class="text-lg text-neutral-500 dark:text-neutral-400 mt-2">
|
<p v-if="page?.description" class="text-lg text-neutral-500 dark:text-neutral-400 mt-2">
|
||||||
{{ page.description }}
|
{{ page.description }}
|
||||||
</p>
|
</p>
|
||||||
@ -126,7 +137,7 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.surround-btn {
|
.surround-btn {
|
||||||
@apply font-medium;
|
@apply font-medium;
|
||||||
|
|
||||||
div {
|
div {
|
||||||
@apply bg-neutral-100 dark:bg-neutral-800 rounded-lg px-8 py-6 w-full h-full flex flex-col gap-0 border border-transparent;
|
@apply bg-neutral-100 dark:bg-neutral-800 rounded-lg px-8 py-6 w-full h-full flex flex-col gap-0 border border-transparent;
|
||||||
|
@ -10,7 +10,7 @@ export default createConfigForNuxt({
|
|||||||
stylistic: true,
|
stylistic: true,
|
||||||
},
|
},
|
||||||
dirs: {
|
dirs: {
|
||||||
src: ['./playground'],
|
src: ['./playground', './docs'],
|
||||||
},
|
},
|
||||||
}).overrideRules({
|
}).overrideRules({
|
||||||
'@typescript-eslint/no-unused-expressions': [
|
'@typescript-eslint/no-unused-expressions': [
|
||||||
|
Loading…
Reference in New Issue
Block a user