当前位置:网站首页>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 .
边栏推荐
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- ELK日志分析系统
- Pytorch register_ Hook (operate on gradient grad)
- Design and implementation of community hospital information system
- 【微服务|SCG】Filters的33种用法
- The database and recharge are gone
- Variables in postman
- Which common ports should the server open
- When the low alcohol race track enters the reshuffle period, how can the new brand break the three major problems?
- [micro service SCG] 33 usages of filters
猜你喜欢
[uc/os-iii] chapter 1.2.3.4 understanding RTOS
【LeetCode】111. Minimum depth of binary tree (2 brushes of wrong questions)
Sqoop安装
[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
Hmi-30- [motion mode] the module on the right side of the instrument starts to write
2.常见的请求方法
Design and practice of kubernetes cluster and application monitoring scheme
Avoid material "minefields"! Play with super high conversion rate
8. Commodity management - commodity classification
随机推荐
D3js notes
Use the difference between "Chmod a + X" and "Chmod 755" [closed] - difference between using "Chmod a + X" and "Chmod 755" [closed]
Prometheus monitors the correct posture of redis cluster
Breaking the information cocoon - my method of actively obtaining information - 3
ELK日志分析系统
[micro service SCG] 33 usages of filters
Advanced learning of MySQL -- Application -- Introduction
Structure of ViewModel
Redis distributed lock, lock code logic
Naacl 2021 | contrastive learning sweeping text clustering task
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
openresty ngx_ Lua execution phase
数据库和充值都没有了
低度酒赛道进入洗牌期,新品牌如何破局三大难题?
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
Zabbix
2021 Li Hongyi machine learning (3): what if neural network training fails
Last week's hot review (2.7-2.13)
使用druid连接MySQL数据库报类型错误
2022/02/13