首页前端开发HTMLhtml直接引用vue和element-ui的方法

html直接引用vue和element-ui的方法

时间2024-01-27 17:16:03发布访客分类HTML浏览406
导读:收集整理的这篇文章主要介绍了html直接引用vue和element-ui的方法,觉得挺不错的,现在分享给大家,也给大家做个参考。 代码如下所示:<!DOCTYPE htML><html><head&g...
收集整理的这篇文章主要介绍了html直接引用vue和element-ui的方法,觉得挺不错的,现在分享给大家,也给大家做个参考。

代码如下所示:

!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内容请搜索以前的文章或继续浏览下面的相关文章,希望大家以后多多支持!

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

html

若转载请注明出处: html直接引用vue和element-ui的方法
本文地址: https://pptw.com/jishu/588488.html
HTML table行距的改变方法示例 详解HTML中字体使用line-height依然不能垂直居中解决办法

游客 回复需填写必要信息