vuepress-plugin-demo-container icon indicating copy to clipboard operation
vuepress-plugin-demo-container copied to clipboard

Bug Report 在 readme demo 块中,如果使用了script 会报错:'import' and 'export' may only appear at the top level

Open ly525 opened this issue 4 years ago • 2 comments

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 avatar Aug 24 '20 07:08 ly525

楼主解决了吗

Pentium286 avatar Feb 26 '21 09:02 Pentium286

@ly525 @qianzhangsheng 这个库貌似不维护了,这个需求我弄了一下,可以点我头像进去看看 vuepress-plugin-demo-container-v2

waycowei avatar Jun 04 '21 01:06 waycowei