vuepress-plugin-demo-container
vuepress-plugin-demo-container copied to clipboard
Bug Report 在 readme demo 块中,如果使用了script 会报错:'import' and 'export' may only appear at the top level
README.md: 'import' and 'export' may only appear at the top level (323:4)
// README.md
::: demo
```html
<template>
{{list[0]}}
</template>
<script>
import axios from 'axios'
export default {
data: () => ({ list: [] }),
mounted: {
axios.get('xxx').then(res => this.list = res.data)
}
}
</script>
:::demo
楼主解决了吗
@ly525 @qianzhangsheng 这个库貌似不维护了,这个需求我弄了一下,可以点我头像进去看看 vuepress-plugin-demo-container-v2