You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< docs >
-- -
order : 5
title :
zh - CN : 布局
en - US : Use with grid
-- -
# # zh - CN
Checkbox . Group 内嵌 Checkbox 并与 Grid 组件一起使用 , 可以实现灵活的布局
# # en - US
We can use Checkbox and Grid Checkbox . group , to implement complex layout
< / docs >
< template >
< a -checkbox -group v -model :value ="value" style = "width: 100%" >
< a -row >
< a -col :span ="8" >
< a -checkbox value = "A" > A < / a - c h e c k b o x >
< / a - c o l >
< a -col :span ="8" >
< a -checkbox value = "B" > B < / a - c h e c k b o x >
< / a - c o l >
< a -col :span ="8" >
< a -checkbox value = "C" > C < / a - c h e c k b o x >
< / a - c o l >
< a -col :span ="8" >
< a -checkbox value = "D" > D < / a - c h e c k b o x >
< / a - c o l >
< a -col :span ="8" >
< a -checkbox value = "E" > E < / a - c h e c k b o x >
< / a - c o l >
< / a - r o w >
< / a - c h e c k b o x - g r o u p >
< / template >
< script lang = "ts" >
import { defineComponent , ref } from 'vue' ;
export default defineComponent ( {
setup ( ) {
const value = ref ( [ ] ) ;
return {
value ,
} ;
} ,
} ) ;
< / script >