当前位置:网站首页>El button display and disable
El button display and disable
2022-07-16 05:52:00 【One square meter】
【el-button】 Display and disable
Do a function today , Add a button , But the button determines whether it can be clicked according to the online status of the device ;
Record the process
- The first thing that comes to mind el-button Attributes Medium disabled , Its default value is false: Here's the picture

- 2. With the button , An icon is missing , Alibaba vector library is looking for a suitable icon , After finding it , Add icons to your shopping cart , Then add it to your project , Finally, download to local css library , Introduce it into your own project , I won't explain this too much ;
iconfont https://www.iconfont.cn/manage/index
- The preparations are ready , Go straight to the code
<el-button
type="text"
style="margin-top: -10px"
:disabled="Object.statusId === '1' ? false : true">
<i title=" port configuration " class="iconfont icon-port"></i>
</el-button>
Be careful :
1. One is What is quoted here is :type=“text”, el-button Of type quite a lot , The current use is button Of Text button , The icon in it is also a vector icon
2. disabled The display and hide of uses the expression , Three mesh operation
Get it done
The final rendering is shown in the figure 

边栏推荐
- Idea send email
- ERR_ PNPM_ PEER_ DEP_ ISSUES Unmet peer dependencies
- C3&H5&ES6
- PHP docking wechat payment native TP5 framework
- WP of the southwest division of the 15th National College Students Information Security Competition (ciscn) 2022
- Implementation principle of new keyword in JS
- What if there is no scroll bar on the right side of the page and you can't see the content beyond it?
- PHP+JMeter模拟测试高并发场景。附代码。
- Summer precipitation Web Learning -- PHP Foundation
- [yellow code] PHP saves remote resources locally
猜你喜欢

Buuctf backdoor killing

Buuctf webshell back door
![[Huang ah code] Microsoft Internet Explorer will be retired. Netizens said: what should I do in the future?](/img/38/42fffa40b5db9399ee8c526e0c4439.png)
[Huang ah code] Microsoft Internet Explorer will be retired. Netizens said: what should I do in the future?

BUUCTF webshell后门

单文件组件

Single file component

win10下测试mysql主从同步

Intranet penetration notes - vulnhub intranet course completion penetration
![[Huang ah code] getting started with MySQL - 1. SQL execution process](/img/e5/8541f9a9e260b431a4da800036ae2d.png)
[Huang ah code] getting started with MySQL - 1. SQL execution process

Convert list data to tree data
随机推荐
[2021] example of node connecting to Oracle database [using official Oracle components]
North tour project notes
ramda. JS API quick check
Intranet penetration notes - layer 2 Discovery
:class修改样式
Wechat payment refund PHP
[Huang ah code] today, someone actually asked me: what does where 1=1 mean?
暑期沉淀web学习——php基础
操作系统笔记——Windows应急响应和安全加固
[安洵杯 2019]easy_web
[Huang ah code] Microsoft Internet Explorer will be retired. Netizens said: what should I do in the future?
JS scope and scope chain
网络通信安全部分笔记——OSPF理论及实验
内网渗透笔记——vulnhub内网结课渗透
Summer precipitation Web Learning -- PHP Foundation
Buuctf webshell back door
Mobile web development
[NCTF2019]Fake XML cookbook
JS closing notes
What if there is no scroll bar on the right side of the page and you can't see the content beyond it?
