<!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端组件,
简化了常用组件的封装,降低开发难度