How to directly reference vue and element-ui in html

How to directly reference vue and element-ui in html

The code looks like this:

<!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">Rounded button</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="Monthly payment" inactive-text="Annual payment">
        </el-switch>
        <el-switch style="display: block" v-model="value2" active-color="#13ce66" inactive-color="#ff4949"
            active-text="Monthly Payment" inactive-text="Annual Payment">
        </el-switch>

        <br>
        <el-time-picker is-range v-model="value1" range-separator="to" start-placeholder="start time" end-placeholder="end time"
            placeholder="Select a time range">
        </el-time-picker>
        <el-time-picker is-range arrow-control v-model="value2" range-separator="to" start-placeholder="start time"
            end-placeholder="end time" placeholder="select time range">
        </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="Paid"></el-step>
            <el-step title="Refund in progress"></el-step>
            <el-step title="Refunded"></el-step>
            <el-step title="Pending Settlement"></el-step>
            <el-step title="Settled"></el-step>
        </el-steps>
    </div>
</body>
<script>
    new Vue({
        el: '#app',
        data: function () {
            return { visible: false }
        }
    })
</script>

</html>

The effect is as shown below:

insert image description here

Summarize

This is the end of this article about how to directly reference vue and element-ui in html. For more relevant content about html referencing vue and element-ui, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  Solution to the problem of adaptive height and width of css display table

>>:  Say goodbye to hard coding and let your front-end table automatically calculate the instance code

Recommend

Writing a shell script in Ubuntu to start automatically at boot (recommended)

The purpose of writing scripts is to avoid having...

Example of writing mobile H5 to invoke APP (IOS, Android)

iOS 1. URL scheme This solution is basically for ...

Implementation of MySQL multi-version concurrency control MVCC

Transaction isolation level settings set global t...

Detailed explanation of MySQL from getting started to giving up - installation

What you will learn 1. Software installation and ...

Detailed example of inserting custom HTML records in Quill editor

It is already 2020. Hungry humans are no longer s...

Vue implements div wheel zooming in and out

Implement div wheel zooming in and out in Vue pro...

docker cp copy files and enter the container

Enter the running container # Enter the container...

Specific use of MySQL operators (and, or, in, not)

Table of contents 1. Introduction 2. Main text 2....

Detailed explanation of the difference between tags and elements in HTML

I believe that many friends who are new to web pag...

JavaScript form validation example

HTML forms are commonly used to collect user info...

Case analysis of several MySQL update operations

Table of contents Case Study Update account balan...

MySql 5.7.21 free installation version configuration method under win10

1. Unzip to the location where you want to instal...

Vue implements multiple selections in the bottom pop-up window

This article example shares the specific code of ...

Detailed explanation of common template commands in docker-compose.yml files

Note: When writing the docker-compose.yml file, a...

SQL Practice Exercise: Online Mall Database User Information Data Operation

Online shopping mall database-user information da...