当前位置:网站首页>005_ button
005_ button
2022-06-30 01:49:00 【Free and bound javajavascript】
1. Button Button
1.1. Common operation button .
1.2. Button properties
Parameters | explain | type | Optional value | The default value is |
size | Size | string | medium / small / mini | nothing |
type | type | string | primary / success / warning / danger / info / text | nothing |
plain | Whether the simple button | boolean | nothing | false |
round | Whether the rounded button | boolean | nothing | false |
circle | Is it a round button | boolean | nothing | false |
loading | Whether to load the State | boolean | nothing | false |
disabled | Whether to disable the State | boolean | nothing | false |
icon | Icon class name | string | nothing | nothing |
autofocus | Whether to focus by default | boolean | nothing | false |
native-type | Native type attribute | string | button / submit / reset | button |
2. Button Button example
2.1. Use the scaffold to create a new one named element-ui-button Front end projects , At the same time to install Element plug-in unit .

2.2. To write App.vue
<template>
<div id="app">
<h1> Basic usage </h1>
<el-row>
<el-button> Default button </el-button>
<el-button type="primary"> Main buttons </el-button>
<el-button type="success"> Success button </el-button>
<el-button type="info"> Information buttons </el-button>
<el-button type="warning"> Warning button </el-button>
<el-button type="danger"> Danger button </el-button>
</el-row>
<el-row>
<el-button plain> Simple button </el-button>
<el-button type="primary" plain> Main buttons </el-button>
<el-button type="success" plain> Success button </el-button>
<el-button type="info" plain> Information buttons </el-button>
<el-button type="warning" plain> Warning button </el-button>
<el-button type="danger" plain> Danger button </el-button>
</el-row>
<el-row>
<el-button round> Rounded button </el-button>
<el-button type="primary" round> Main buttons </el-button>
<el-button type="success" round> Success button </el-button>
<el-button type="info" round> Information buttons </el-button>
<el-button type="warning" round> Warning button </el-button>
<el-button type="danger" round> Danger button </el-button>
</el-row>
<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>
<h1> Disabled state </h1>
<el-row>
<el-button disabled> Default button </el-button>
<el-button type="primary" disabled> Main buttons </el-button>
<el-button type="success" disabled> Success button </el-button>
<el-button type="info" disabled> Information buttons </el-button>
<el-button type="warning" disabled> Warning button </el-button>
<el-button type="danger" disabled> Danger button </el-button>
</el-row>
<h1> Text button </h1>
<el-button type="text"> Text button </el-button>
<el-button type="text" disabled> Text button </el-button>
<h1> Icon button </h1>
<el-button type="primary" icon="el-icon-edit"></el-button>
<el-button type="primary" icon="el-icon-share"></el-button>
<el-button type="primary" icon="el-icon-delete"></el-button>
<el-button type="primary" icon="el-icon-search"> Search for </el-button>
<el-button type="primary"> Upload <i class="el-icon-upload el-icon--right"></i></el-button>
<h1> Button group </h1>
<el-button-group>
<el-button type="primary" icon="el-icon-arrow-left"> The previous page </el-button>
<el-button type="primary"> The next page <i class="el-icon-arrow-right el-icon--right"></i></el-button>
</el-button-group>
<el-button-group>
<el-button type="primary" icon="el-icon-edit"></el-button>
<el-button type="primary" icon="el-icon-share"></el-button>
<el-button type="primary" icon="el-icon-delete"></el-button>
</el-button-group>
<h1> Loading </h1>
<el-button type="primary" loading="true"> Loading </el-button>
<h1> Different sizes </h1>
<el-row>
<el-button> Default button </el-button>
<el-button size="medium"> Medium button </el-button>
<el-button size="small"> Small buttons </el-button>
<el-button size="mini"> Super small button </el-button>
</el-row>
</div>
</template>
<style>
.el-row {
margin: 10px;
}
</style>
2.3. Run the project

边栏推荐
- AI landing manufacturing: intelligent robots should have these four abilities
- C language I want to pass
- Geotools: common tools for mutual conversion of wkt, geojason, feature and featurecollection
- Mysql 监控2
- js内容混淆,返回内容加密
- Cookie加密10
- Varnish foundation overview 6
- The first technology podcast month will be launched soon
- Comprendre le principe AQS (organigramme et schéma de file d'attente synchrone)
- Application features and functions of painting Aquarium
猜你喜欢
![[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions](/img/b1/2afa73a14b2f41b7a65c4c2d261e6a.png)
[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions
![[graph neural network] overview of graph classification learning [2]: graph classification based on graph neural network](/img/5f/b23b64eed7f28ffd92c122b6859e2d.png)
[graph neural network] overview of graph classification learning [2]: graph classification based on graph neural network

C语言 换个格式输出整数

JS reverse request parameter encryption:

C language irony

Cookie encryption 11

【机器学习Q&A】数据抽样和模型验证方法、超参数调优以及过拟合和欠拟合问题

Cookie加密10

ES6 one line code for array de duplication

Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED
随机推荐
Error reporting in Luban H5 installation
js Array. Five convenient applications of from()
The (3n+1) conjecture that C language kills people without paying for their lives
TP-LINK configure WiFi authentication method for wireless Internet SMS
C语言 写出这个数
[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions
城市规划馆在设计制作上需要注意什么
Varnish 基础概览4
【机器学习Q&A】数据抽样和模型验证方法、超参数调优以及过拟合和欠拟合问题
搞透AQS原理(流程图及同步队列图解)
Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"
C语言 继续(3n+1)猜想
js内容混淆,返回内容加密
MySQL monitoring 3
C language I want to pass
What should I do when I feel confused after graduation from university?
Local page floating animation is realized with the help of scroll wheel
Varnish foundation overview 5
魔百盒CM201-2-CH-Hi3798MV300-300H-EMMC和NAND_红外蓝牙语音_通刷固件包
The first technology podcast month will begin soon