Skip to content

Commit

Permalink
chore: add source button on playground
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Jun 23, 2024
1 parent b247d30 commit 35f1707
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const themeOptions = [
<NSelectTabs v-model="renderer" :options="rendererOptions" />
</aside>

<div class="grid gap-y-12 justify-center py-15 text-align-center">
<div class="grid gap-y-16 justify-center py-15 text-align-center">
<header>
<!-- <EChartsLogo class="mx-auto fill-green-5 dark:fill-brand" /> -->
<div class="inline-block w-fit h-fit mb-10">
Expand Down
6 changes: 6 additions & 0 deletions playground/components/NExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ defineProps<{ id: string; title: string; desc: string }>()
{{ title }}
<small class="op-70">({{ desc }})</small>
</a>
<NButton
class="text-xs ml-2 px-2"
:to="`https://github.com/kingyue737/nuxt-echarts/tree/main/playground/components/Chart/${id[0].toUpperCase()}${id.slice(1)}.vue`"
target="_blank"
>Source</NButton
>
</h3>
<NCard class="dark:bg-[#100c2a] my-5">
<slot />
Expand Down

0 comments on commit 35f1707

Please sign in to comment.