add badgeSize replace  widthMode and heightMode

add badgeSize replace  widthMode and heightMode