Props
| Name |
Type |
Default value |
Required? |
Description |
text |
String |
'' |
No |
輸入文字字串,預設'' |
badgeAlign |
String|Number |
'center' |
No |
輸入標記對齊位置字串,預設'center' |
textFontSize |
String |
'0.7rem' |
No |
輸入文字字型大小字串,預設'0.7rem' |
textColor |
String |
'white' |
No |
輸入文字顏色字串,預設'white' |
backgroundColor |
String |
'red' |
No |
輸入背景顏色字串,預設'red' |
borderRadius |
Number |
10 |
No |
輸入框圓角度數字,單位為px,預設10 |
borderColor |
String |
'transparent' |
No |
輸入邊框顏色字串,預設'transparent' |
borderWidth |
Number |
1 |
No |
輸入框寬度數字,單位為px,預設1 |
Props
| Name |
Type |
Default value |
Required? |
Description |
text |
String |
'' |
No |
輸入文字字串,預設'' |
badgeAlign |
String|Number |
'center' |
No |
輸入標記對齊位置字串,預設'center' |
textFontSize |
String |
'0.7rem' |
No |
輸入文字字型大小字串,預設'0.7rem' |
textColor |
String |
'white' |
No |
輸入文字顏色字串,預設'white' |
backgroundColor |
String |
'red' |
No |
輸入背景顏色字串,預設'red' |
borderRadius |
Number |
10 |
No |
輸入框圓角度數字,單位為px,預設10 |
borderColor |
String |
'transparent' |
No |
輸入邊框顏色字串,預設'transparent' |
borderWidth |
Number |
1 |
No |
輸入框寬度數字,單位為px,預設1 |