当前位置:网站首页>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 .
边栏推荐
- [micro service SCG] 33 usages of filters
- Azkaban实战
- Kotlin - 协程 Coroutine
- Asynchronous and promise
- 【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)
- Use the difference between "Chmod a + X" and "Chmod 755" [closed] - difference between using "Chmod a + X" and "Chmod 755" [closed]
- Open source SPL optimized report application coping endlessly
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Eight days of learning C language - while loop (embedded) (single chip microcomputer)
- Comparison of advantages and disadvantages between platform entry and independent deployment
猜你喜欢
TCP security of network security foundation
Azkaban安装部署
Character painting, I use characters to draw a Bing Dwen Dwen
CAM Pytorch
Single line function*
【LeetCode】404. Sum of left leaves (2 brushes of wrong questions)
Moco V2 literature research [self supervised learning]
Unpool(nn.MaxUnpool2d)
Yolov5 model training and detection
Avoid material "minefields"! Play with super high conversion rate
随机推荐
看 TDengine 社区英雄线上发布会,听 TD Hero 聊开发者传奇故事
How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file
Sqoop命令
Azkaban概述
1.五层网络模型
Sqoop安装
Good documentation
Design and practice of kubernetes cluster and application monitoring scheme
Asp+access campus network goods trading platform
Pytest (4) - test case execution sequence
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
Elfk deployment
Hmi-32- [motion mode] add light panel and basic information column
Cut! 39 year old Ali P9, saved 150million
Pytest (4) - test case execution sequence
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
Kotlin - coroutine
【LeetCode】404. Sum of left leaves (2 brushes of wrong questions)
Application and Optimization Practice of redis in vivo push platform
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool