elementui的简单介绍

ElementUI是一个基于Vue.js的开源UI组件库,由饿了么前端团队开发,主要用于简化PC端的Web应用开发,提供了一系列预封装的组件,降低了开发复杂度。示例中展示了ElementUI的按钮和单选框组件的使用。
摘要由CSDN通过智能技术生成
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>elementui</title>
<!--  Elementui它是由饿了么前端团队推出的基于Vue封装的UI组件库,提供PC端组件,
简化了常用组件的封装,降低开发难度-->
<!--3.引入index.css-->
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <!--一行-->
    <el-row>
        <el-button type="info">我是按钮</el-button>
        <el-button type="danger" plain>我是按钮</el-button>
        <el-button type="success" round>我是按钮</el-button>
        <el-button >我是按钮</el-button>
        <el-button icon="el-icon-delete" circle type="danger"></el-button>
    </el-row>
    <br>
    <i class="el-icon-eleme"></i>

    <el-row>
        <template>
            <el-radio v-model="radio" label="1">备选项</el-radio>
            <el-radio v-model="radio" label="2">备选项</el-radio>
        </template>
    </el-row>
    <br>
    <el-row>
        <el-button>默认按钮</el-button>
        <el-button type="primary">主要按钮</el-button>
        <el-button type="success">成功按钮</el-button>
        <el-button type="info">信息按钮</el-button>
        <el-button type="warning">警告按钮</el-button>
        <el-button type="danger">危险按钮</el-button>
    </el-row>
    <br>
    <el-row>
        <el-button plain>朴素按钮</el-button>
        <el-button type="primary" plain>主要按钮</el-button>
        <el-button type="success" plain>成功按钮</el-button>
        <el-button type="info" plain>信息按钮</el-button>
        <el-button type="warning" plain>警告按钮</el-button>
        <el-button type="danger" plain>危险按钮</el-button>
    </el-row>
</div>
</body>
<!--1.引入vue.js-->
<script src="js/vue.js"></script>
<!--2.引入index.js-->
<script src="element-ui/lib/index.js"></script>
<script>
    new Vue({
        el:'#app',
        data(){
            return{
                radio: '1'
            }
        }
    });
</script>
</html>

Elementui它是由饿了么前端团队推出的基于Vue封装的UI组件库,提供PC端组件,
简化了常用组件的封装,降低开发难度

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值