Skip to content

Commit

Permalink
feat: ✨ vitepress 集成 bi-chart demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dizuncainiao committed May 9, 2023
1 parent 362cb27 commit 0787bc9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default defineConfig({
text: 'Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
{ text: 'Runtime API Examples', link: '/api-examples' },
{ text: 'Vue3 Test Example', link: '/vue3-test' },
{ text: 'BIChart Test Example', link: '/bi-chart-pie' }
]
}
],
Expand Down
13 changes: 13 additions & 0 deletions examples/docs/bi-chart-pie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
BI Chart Pie Demo
---

<script setup>
import { BasicBar } from 'bi-chart'
</script>

## Markdown Content

<div style="width: 600px; height: 400px;">
<basic-bar></basic-bar>
</div>
22 changes: 22 additions & 0 deletions examples/docs/vue3-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
Vue3 Test Example
---

<script setup>
import { ref } from 'vue'

const count = ref(0)
</script>

## Markdown Content

The count is: {{ count }}

<button :class="$style.button" @click="count++">Increment</button>

<style module>
.button {
color: red;
font-weight: bold;
}
</style>

0 comments on commit 0787bc9

Please sign in to comment.