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-2025

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

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


posted @   xgqfrms  阅读(42)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-02-09 javascript questions & code review
2021-02-09 git branch & git remote branch All In One
2020-02-09 Linux & SIGUSER1
2020-02-09 API protocols All In One
2020-02-09 ServerLess & MongoDB Atlas & REST API
2020-02-09 CSS filter
2020-02-09 RPC 框架 & RESTful API
点击右上角即可分享
微信分享提示