当前位置:网站首页>单项框 复选框
单项框 复选框
2022-07-05 02:43:00 【13少啊】
一.复选框的使用
<template>
<div>
{
{checkList}}
<el-checkbox-group v-model="checkList">
<el-checkbox label="复选框 A"></el-checkbox>
<el-checkbox label="复选框 B"></el-checkbox>
<el-checkbox label="复选框 C"></el-checkbox>
</el-checkbox-group>
</div>
</template>
<script>
export default {
data () {
return {
checkList: []
};
}
};
</script>解析:
v-model绑定是一个数组,选中的项都会在这个数组里面。

二.单选框的使用
<template>
<el-radio-group v-model="radio">
<el-radio :label="3">备选项</el-radio>
<el-radio :label="6">备选项</el-radio>
<el-radio :label="9">备选项</el-radio>
</el-radio-group>
</template>
<script>
export default {
data () {
return {
radio: 6
};
}
}
</script>通过v-model进行关联,双向绑定一个值。
值与label进行对应,选中的值是多少就显示多少。
边栏推荐
- [200 opencv routines] 99 Modified alpha mean filter
- ELFK部署
- Introduce reflow & repaint, and how to optimize it?
- 2021 Li Hongyi machine learning (2): pytorch
- Acwing game 58 [End]
- STL container
- Spark SQL learning bullet 2
- ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
- Introduce reflow & repaint, and how to optimize it?
- GFS distributed file system
猜你喜欢

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

Character painting, I use characters to draw a Bing Dwen Dwen

this+闭包+作用域 面试题
![[uc/os-iii] chapter 1.2.3.4 understanding RTOS](/img/33/1d94583a834060cc31cab36db09d6e.jpg)
[uc/os-iii] chapter 1.2.3.4 understanding RTOS

Design and implementation of community hospital information system

Azkaban概述

Flume配置4——自定义MYSQLSource

A label colorful navigation bar

openresty ngx_lua執行階段

"C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
随机推荐
Exploration of short text analysis in the field of medical and health (II)
Traditional chips and AI chips
Asp+access campus network goods trading platform
February database ranking: how long can Oracle remain the first?
Elfk deployment
Redis distributed lock, lock code logic
Moco V2 literature research [self supervised learning]
Azkaban实战
Video display and hiding of imitation tudou.com
使用druid连接MySQL数据库报类型错误
Comparison of advantages and disadvantages between platform entry and independent deployment
Design of KTV intelligent dimming system based on MCU
Medusa installation and simple use
Azkaban安装部署
Breaking the information cocoon - my method of actively obtaining information - 3
When the low alcohol race track enters the reshuffle period, how can the new brand break the three major problems?
"C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
Use the difference between "Chmod a + X" and "Chmod 755" [closed] - difference between using "Chmod a + X" and "Chmod 755" [closed]
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
Design and implementation of community hospital information system