当前位置:网站首页>单项框 复选框
单项框 复选框
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进行对应,选中的值是多少就显示多少。
边栏推荐
- February database ranking: how long can Oracle remain the first?
- Moco V2 literature research [self supervised learning]
- Structure of ViewModel
- ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
- [technology development-26]: data security of new information and communication networks
- Last week's hot review (2.7-2.13)
- Pytest (5) - assertion
- Flume配置4——自定义MYSQLSource
- "C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
- Medusa installation and simple use
猜你喜欢

Apache Web page security optimization

Application and Optimization Practice of redis in vivo push platform

Azkaban概述
![Hmi-30- [motion mode] the module on the right side of the instrument starts to write](/img/6b/09bb8fd95b707a459534eaeb72eb59.jpg)
Hmi-30- [motion mode] the module on the right side of the instrument starts to write

Linux安装Redis

8. Commodity management - commodity classification

丸子百度小程序详细配置教程,审核通过。

Vb+access hotel service management system

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

Security level
随机推荐
Pytest (4) - test case execution sequence
Advanced learning of MySQL -- Application -- Introduction
[download white paper] does your customer relationship management (CRM) really "manage" customers?
Erreur de type de datagramme MySQL en utilisant Druid
Why do you understand a16z? Those who prefer Web3.0 Privacy Infrastructure: nym
1.五层网络模型
Design and implementation of high availability website architecture
Start the remedial work. Print the contents of the array using the pointer
Traditional chips and AI chips
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Spoon inserts and updates the Oracle database, and some prompts are inserted with errors. Assertion botch: negative time
The phenomenology of crypto world: Pioneer entropy
RichView TRVStyle MainRVStyle
Idea inheritance relationship
When the low alcohol race track enters the reshuffle period, how can the new brand break the three major problems?
Hmi-31- [motion mode] solve the problem of picture display of music module
平台入驻与独立部署优缺点对比
STL container
Elfk deployment
【LeetCode】404. Sum of left leaves (2 brushes of wrong questions)