-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
197be77
commit ae2d406
Showing
18 changed files
with
122 additions
and
14 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
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,26 @@ | ||
<script setup lang="ts"> | ||
import { defineProps } from 'vue' | ||
defineProps<{ | ||
githubRepoLink?: string | ||
docLink: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div border="b base" class="flex items-center justify-between px3"> | ||
<div> | ||
<slot> | ||
<i class="i-ep:back cursor-pointer op70 text-base hover:op100" /> | ||
</slot> | ||
</div> | ||
<div> | ||
<a class="pr2" :href="docLink" target="_blank" title="View Documentation"> | ||
<i class="i-clarity:document-line cursor-pointer op70 text-base hover:op100" /> | ||
</a> | ||
<a v-if="githubRepoLink" :href="githubRepoLink" target="_blank" title="Star on GitHub"> | ||
<i class="i-mdi:github cursor-pointer op70 text-base hover:op100" /> | ||
</a> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
data: { | ||
icon: string | ||
label: string | ||
path: string | ||
id: string | ||
}[] | ||
}>() | ||
defineEmits(['change']) | ||
const modelValue = defineModel<string>() | ||
</script> | ||
|
||
<template> | ||
<ul class="flex gap3"> | ||
<li | ||
v-for="(item, index) in data" | ||
:key="index" | ||
class="h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100" | ||
:class="modelValue === item.id ? 'op-100 font-medium text-primary-400 border-primary-400' : 'border-transparent op-70'" | ||
@click="modelValue = item.id" | ||
> | ||
{{ item.label }} | ||
</li> | ||
</ul> | ||
</template> |
Empty file.
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
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,5 +1,5 @@ | ||
<template> | ||
<div> | ||
<Empty> | ||
Not Found | ||
</div> | ||
</Empty> | ||
</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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup lang="ts"> | ||
const baseDocumentData = [ | ||
{ | ||
icon: 'i-icon-park-outline:document-text', | ||
label: 'uni-app', | ||
path: 'https://uniapp.dcloud.net.cn/', | ||
id: 'uni', | ||
}, | ||
{ | ||
icon: 'i-logos-vue', | ||
label: 'Vue', | ||
path: 'https://developers.weixin.qq.com/miniprogram/dev/framework/', | ||
id: 'vue', | ||
}, | ||
] | ||
const checkedId = ref('vue') | ||
const docLink = computed(() => { | ||
return baseDocumentData.find(item => item.id === checkedId.value)!.path | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="relative h-full flex flex-col"> | ||
<DevToolsHeader :doc-link="docLink"> | ||
<TopNav v-model="checkedId" :data="baseDocumentData" /> | ||
</DevToolsHeader> | ||
|
||
<IframeView :src="docLink" /> | ||
</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
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
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
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
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
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.