dewfall123 / vitepress-for-component

📖 针对组件开发的VitePress。 重构版本https://github.com/dewfall123/ruabick
https://dewfall123.github.io/vitepress-for-component/
MIT License
194 stars 38 forks source link

无法查看 CodePen 代码示例 #31

Closed turkyden closed 3 years ago

turkyden commented 3 years ago

点击查看代码示例后,发现合成的代码有问题,无法预览 :-(

另外,如何开启 CodesandBox 预览呢? @dewfall123

image

new Vue({
    el: '#app', 
    import { useSize } from 'ahooks-vue';
import { ref } from 'vue';

  setup() {
    const divRef = ref(null);
    const size = useSize(divRef, {
      onChange: () => {
        console.log('size change');
      },
    });

    return {
      divRef,
      size,
    };
  },
};
})
turkyden commented 3 years ago

项目很不错,但是出了点 Bug,希望有空可以修一下哈!感谢~

https://vue-typical.vercel.app/basic/

dewfall123 commented 3 years ago

感觉codepen处理太麻烦,(或许我没找到合适的文档) 在v0.16.0 之后改为了采用 https://sfc.vuejs.org/ demo文档说明

turkyden commented 3 years ago

好的,感谢哦! https://sfc.vuejs.org/ 这个工具很不错嘛,赞!