当前位置:网站首页>Single box check box
Single box check box
2022-07-05 02:44:00 【13 less】
One . Use of check boxes
<template>
<div>
{
{checkList}}
<el-checkbox-group v-model="checkList">
<el-checkbox label=" Check box A"></el-checkbox>
<el-checkbox label=" Check box B"></el-checkbox>
<el-checkbox label=" Check box C"></el-checkbox>
</el-checkbox-group>
</div>
</template>
<script>
export default {
data () {
return {
checkList: []
};
}
};
</script>
analysis :
v-model Binding is an array , The selected items will be in this array .
Two . Use of radio boxes
<template>
<el-radio-group v-model="radio">
<el-radio :label="3"> Options </el-radio>
<el-radio :label="6"> Options </el-radio>
<el-radio :label="9"> Options </el-radio>
</el-radio-group>
</template>
<script>
export default {
data () {
return {
radio: 6
};
}
}
</script>
adopt v-model Association , Bind a value in both directions .
Value and label Make a correspondence , Display as many values as you select .
边栏推荐
- Why is this an undefined behavior- Why is this an undefined behavior?
- Traditional chips and AI chips
- [daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
- LeetCode --- 1071. Great common divisor of strings problem solving Report
- How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file
- Elfk deployment
- 2021 Li Hongyi machine learning (2): pytorch
- Linux安装Redis
- Asp+access campus network goods trading platform
- Unpool(nn.MaxUnpool2d)
猜你喜欢
Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘
2.常见的请求方法
Can you really learn 3DMAX modeling by self-study?
Devtools的简单使用
Yyds dry goods inventory intelligent fan based on CC2530 design
Avoid material "minefields"! Play with super high conversion rate
Open source SPL optimized report application coping endlessly
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
CAM Pytorch
Sqoop安装
随机推荐
Zabbix
openresty ngx_lua执行阶段
D3js notes
Hmi-32- [motion mode] add light panel and basic information column
Comparison of advantages and disadvantages between platform entry and independent deployment
ELFK部署
Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘
Vb+access hotel service management system
GFS distributed file system
[uc/os-iii] chapter 1.2.3.4 understanding RTOS
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
CAM Pytorch
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Azkaban概述
[技术发展-26]:新型信息与通信网络的数据安全
Why do you understand a16z? Those who prefer Web3.0 Privacy Infrastructure: nym
Tiny series rendering tutorial
Which common ports should the server open
Medusa installation and simple use
【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)