WPanelLabelItem

Description:

Props

Name Type Default value Required? Description
label String '' No 輸入標籤文字字串,預設''
labelWidth Number null No 輸入標籤寬度數字,單位為px,預設null
labelHeight Number null No 輸入標籤高度數字,單位為px,若為非分行展示時則高度受table-cell控制故會失效,預設null
labelColor String '#666' No 輸入文字顏色字串,預設'#666'
labelFontSize String '0.8rem' No 輸入文字字型大小字串,預設'0.8rem'
labelHorizontalAlign String 'left' No 輸入文字左右對齊字串,可選'left'、'center'、'right',預設'left'
labelVerticalAlign String 'center' No 輸入文字垂直對齊字串,可選'top'、'center'、'bottom',若為分行展示時則因展示機制故不處理,預設'center'
labelShiftTop Number 0 No 輸入文字垂直平移距離數字,單位為px,預設0
space Number 0 No 輸入標籤與項目區距離數字,單位為px,若為分行展示時則代表垂直距離(基礎距離0px),若為非分行展示時則代表水平距離(基礎距離8px),space為基礎距離再額外增加之距離,預設0
seplines Boolean false No 輸入標籤與項目是否為分行展示布林值,預設false

Props

Name Type Default value Required? Description
label String '' No 輸入標籤文字字串,預設''
labelWidth Number null No 輸入標籤寬度數字,單位為px,預設null
labelHeight Number null No 輸入標籤高度數字,單位為px,若為非分行展示時則高度受table-cell控制故會失效,預設null
labelColor String '#666' No 輸入文字顏色字串,預設'#666'
labelFontSize String '0.8rem' No 輸入文字字型大小字串,預設'0.8rem'
labelHorizontalAlign String 'left' No 輸入文字左右對齊字串,可選'left'、'center'、'right',預設'left'
labelVerticalAlign String 'center' No 輸入文字垂直對齊字串,可選'top'、'center'、'bottom',若為分行展示時則因展示機制故不處理,預設'center'
labelShiftTop Number 0 No 輸入文字垂直平移距離數字,單位為px,預設0
space Number 0 No 輸入標籤與項目區距離數字,單位為px,若為分行展示時則代表垂直距離(基礎距離0px),若為非分行展示時則代表水平距離(基礎距離8px),space為基礎距離再額外增加之距離,預設0
seplines Boolean false No 輸入標籤與項目是否為分行展示布林值,預設false