当前位置:网站首页>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 .
边栏推荐
- [technology development-26]: data security of new information and communication networks
- Bumblebee: build, deliver, and run ebpf programs smoothly like silk
- Variables in postman
- Six stone programming: advantages of automated testing
- ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
- 【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)
- Yuan universe also "real estate"? Multiple second-hand trading websites block metauniverse keywords
- The phenomenology of crypto world: Pioneer entropy
- 平台入驻与独立部署优缺点对比
- 【微服务|SCG】Filters的33种用法
猜你喜欢
Variables in postman
Can you really learn 3DMAX modeling by self-study?
Avoid material "minefields"! Play with super high conversion rate
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Yolov5 model training and detection
Design and implementation of kindergarten management system
CAM Pytorch
Apache Web page security optimization
Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘
Design and implementation of campus epidemic prevention and control system based on SSM
随机推荐
The database and recharge are gone
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
GFS分布式文件系统
Medusa installation and simple use
tuple and point
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
使用druid连接MySQL数据库报类型错误
Design and implementation of campus epidemic prevention and control system based on SSM
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
Introduce reflow & repaint, and how to optimize it?
Yolov5 model training and detection
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Last words record
Asp+access campus network goods trading platform
Azkaban安装部署
LeetCode --- 1071. Great common divisor of strings problem solving Report
Android advanced interview question record in 2022
Zabbix
低度酒赛道进入洗牌期,新品牌如何破局三大难题?
LeetCode 314. Binary tree vertical order traversal - Binary Tree Series Question 6