html直接引用vue和element-ui的方法
2020-09-20 04:09
1276 查看
代码如下所示:
<!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>
效果如图:
总结
到此这篇关于html直接引用vue和element-ui的方法的文章就介绍到这了,更多相关html引用vue和element-ui内容请搜索脚本之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本之家!
相关文章推荐
- vue使用element-ui的el-input监听不了回车事件的解决方法
- 解决element-ui中el-menu组件作为vue-router模式在刷新页面后default-active属性与当前路由页面不一致问题的方法
- vue elementUI table表格数据 滚动懒加载的实现方法
- vue-i18n结合Element-ui的配置方法
- vue + elementUi el-dialog中引入vue页面 在父页面访问el-dialog引入页面的方法
- vue.js与element-ui实现菜单树形结构的解决方法
- vue2.0 + element UI 中 el-table 数据导出Excel的方法
- DataBind包括三大方法,Repeater,DataList和DataGrid,这些控件都位于 System.Web.UI.WebControls 命名空间中,从 WebControl 基类中直接或间接派生出来的。这些方法都是通过HTML来显示数据的内
- vue-cli中使用element-ui暴露全部变量时候使用et-i报错的解决方法
- element-ui vue-cli 引入方法
- vue脚手架加载element-ui报错的解决方法
- element-ui+vuex共享自定义方法进行表单验证 validator
- 在不使用全部vuejs框架,只在html中引用vue.js时,在main.js中调用其他js方法
- Vue+elementUI的this.$refs.对象名.方法名的理解
- vue + elementUI实现省市县三级联动的方法示例
- vuejs+element UI table表格中实现禁用部分复选框的方法
- Vue+ElementUI实现表单动态渲染、可视化配置的方法
- vue+elementui验证(elementui所提供的验证规则就不多阐述了,直接上你们业务需求需要的,注:不提供正则表达式)
- VUE + element-ui实现当前页面/表格刷新方法
- elementUI Vue 单个按钮显示和隐藏的变换功能(两种方法)