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 : 2
title :
zh - CN : 间距大小
en - US : Space Size
-- -
# # zh - CN
间距预设大 、 中 、 小三种大小 。
通过设置 ` size ` 为 ` large ` ` middle ` 分别把间距设为大 、 中间距 。 若不设置 ` size ` , 则间距为小 。
# # en - US
` large ` , ` middle ` and ` small ` preset sizes .
Set the size to ` large ` and ` middle ` by setting size to large and middle respectively . If ` size ` is not set , the spacing is ` small ` .
< / docs >
< template >
< div >
< a -radio -group v -model :value ="size" >
< a -radio value = "small" > Small < / a - r a d i o >
< a -radio value = "middle" > Middle < / a - r a d i o >
< a -radio value = "large" > Large < / a - r a d i o >
< / a - r a d i o - g r o u p >
< br / >
< br / >
< a -space :size ="size" >
< a -button type = "primary" > Primary < / a - b u t t o n >
< a -button > Default < / a - b u t t o n >
< a -button type = "dashed" > Dashed < / a - b u t t o n >
< a -button type = "link" > Link < / a - b u t t o n >
< / a - s p a c e >
< / div >
< / template >
< script >
import { defineComponent , ref } from 'vue' ;
export default defineComponent ( {
setup ( ) {
return {
size : ref ( 'small' ) ,
} ;
} ,
} ) ;
< / script >