xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

create and open a new demo in codepen by calling the codepen API All In One

create and open a new demo in codepen by calling the codepen API All In One

如何通过调用 API 实现在 codepen 中创建并打开 UI 组件预览 demo

UI 组件库, codepen 在线预览 UI 组件

vuepress config.js

module.exports = {
  head: [
    ['script', { src: 'https://cdn.jsdelivr.net/npm/react/umd/react.production.min.js' }],
    ['script', { src: 'https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.production.min.js' }],
    ['script', { src: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js' }],
    ['script', { src: 'https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js' }],
  ],
  plugins: [
    'demo-block'
  ]
}

image

https://www.npmjs.com/package/vuepress-plugin-demo-block

demos

v-charts

https://v-charts.xgqfrms.xyz/#/toggle

image

element ui

https://element.eleme.cn/#/zh-CN/component/button

refs

https://www.cnblogs.com/xgqfrms/p/15802094.html#5011403

https://codepen.io/guuslieben/post/codepen-api-v2



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-02-09 18:26  xgqfrms  阅读(37)  评论(1编辑  收藏  举报