HTML直接引用vue和element-ui的代码是什么
Admin 2022-06-15 群英技术资讯 507 次浏览
代码如下所示:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <script src="https://unpkg.com/element-ui/lib/index.js"></script> </head> <body> <div id="app"> <el-button round @click="visible = true">圆角按钮</el-button> <br> <el-dialog :visible.sync="visible" title="Hello world"> <p>Try Element</p> </el-dialog> <br> <el-switch v-model="value1" active-text="按月付费" inactive-text="按年付费"> </el-switch> <el-switch style="display: block" v-model="value2" active-color="#13ce66" inactive-color="#ff4949" active-text="按月付费" inactive-text="按年付费"> </el-switch> <br> <el-time-picker is-range v-model="value1" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"> </el-time-picker> <el-time-picker is-range arrow-control v-model="value2" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"> </el-time-picker> <br> <el-progress type="circle" :percentage="0"></el-progress> <el-progress type="circle" :percentage="25"></el-progress> <el-progress type="circle" :percentage="100" status="success"></el-progress> <el-progress type="circle" :percentage="70" status="warning"></el-progress> <el-progress type="circle" :percentage="50" status="exception"></el-progress> <br> <el-row> <el-button icon="el-icon-search" circle></el-button> <el-button type="primary" icon="el-icon-edit" circle></el-button> <el-button type="success" icon="el-icon-check" circle></el-button> <el-button type="info" icon="el-icon-message" circle></el-button> <el-button type="warning" icon="el-icon-star-off" circle></el-button> <el-button type="danger" icon="el-icon-delete" circle></el-button> </el-row> <br> <el-steps :active="1" finish-status="success"> <el-step title="已付款"></el-step> <el-step title="退款中"></el-step> <el-step title="已退款"></el-step> <el-step title="待结算"></el-step> <el-step title="已结算"></el-step> </el-steps> </div> </body> <script> new Vue({ el: '#app', data: function () { return { visible: false } } }) </script> </html>
效果如图:
总结
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
这篇文章给大家分享的是CSS透明渐变的效果实现。小编觉得挺有趣的,对大家学习CSS的使用有一定的帮助,因此分享给大家做个参考,文中示例代码介绍的很详细,感兴趣的朋友接下来一起跟随小编看看吧。
在刚开始接触CSS Position的时候是不是很多用户们都不知道什么去使用它呢?其实使用CSS Position是css中非常经典的基础,那么我们就一起去看看使用CSS Position详细介绍吧。
这篇文章主要给大家分享css实现三列自适应布局的方法,本文给大家介绍了五种方法,为了按照常规WEB布局,这里全部采用拥有header和footer模式进行左中右布局编写。实现方法及代码如下,需要的朋友可以参考。
搜索框和按钮有间距的问题怎样实现对齐?一般我们见得到的搜索框和搜索按钮之间是没有间隙的,而我们尽管设置了搜索框和button的margin值和padding值各为0,但还是不能实现重合对齐的情况要怎么做呢?下面给大家分享一个解决方法。
CSS实现响应式图片库教程介绍 CSS如果想要实现响应式图片库_图片列表页面自适应 ,则必须载不同屏幕尺寸下,按照不同的百分比定义图片库或则图片列表,下面是代码: !DOCTYPEhtmlhtmlheadstylediv.gallery{border:1pxsolid#ccc;}div.gallery:hover{border:1p
成为群英会员,开启智能安全云计算之旅
立即注册Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008