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 : 3
title :
zh - CN : 不可用状态
en - US : Disabled
-- -
# # zh - CN
添加 ` disabled ` 属性即可让按钮处于不可用状态 , 同时按钮样式也会改变 。
# # en - US
To mark a button as disabled , add the ` disabled ` property to the ` Button ` .
< / docs >
< template >
< a -space direction = "vertical" >
< a -space >
< a -button type = "primary" > Primary < / a - b u t t o n >
< a -button type = "primary" disabled > Primary ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button > Default < / a - b u t t o n >
< a -button disabled > Default ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button type = "dashed" > Dashed < / a - b u t t o n >
< a -button type = "dashed" disabled > Dashed ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button type = "text" > Text < / a - b u t t o n >
< a -button type = "text" disabled > Text ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button type = "link" > Link < / a - b u t t o n >
< a -button type = "link" disabled > Link ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button danger > Danger Default < / a - b u t t o n >
< a -button danger disabled > Danger Default ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button danger type = "text" > Danger Text < / a - b u t t o n >
< a -button danger type = "text" disabled > Danger Text ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< a -space >
< a -button danger type = "link" > Danger Link < / a - b u t t o n >
< a -button danger type = "link" disabled > Danger Link ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< div : style = "{ padding: '8px', background: 'rgb(190, 200, 200)' }" >
< a -space >
< a -button ghost > Ghost < / a - b u t t o n >
< a -button ghost disabled > Ghost ( disabled ) < / a - b u t t o n >
< / a - s p a c e >
< / div >
< / a - s p a c e >
< / template >