- Description:
Name | Type | Default value | Required? | Description |
---|---|---|---|---|
items |
Array | [] |
No | 輸入全部可選字串或物件陣列,預設[] |
value |
String|Object | - | Yes | 輸入單選字串或物件,無預設 |
keyText |
String | 'text' |
No | 輸入可選項目為物件時,存放顯示文字之欄位字串,預設'text' |
arrange |
String | 'vertical' |
No | 輸入可選項目排列字串,可選'vertical'、'horizontal',預設'vertical' |
inputSize |
Number | 16 |
No | 輸入input寬度與高度數字,單位為px,預設16 |
inputShiftTop |
Number | 0 |
No | 輸入input上方平移數離數字,單位為px,預設0 |
textColor |
String | '#222' |
No | 輸入文字顏色字串,預設'#222' |
textColorHover |
String | '#888' |
No | 輸入滑鼠移入時文字顏色字串,預設'#888' |
textColorActive |
String | '#222' |
No | 輸入主動模式時文字顏色字串,預設'#222' |
textColorDisabled |
String | '#666' |
No | 輸入主動模式時文字顏色字串,預設'#666' |
textFontSize |
String | '0.85rem' |
No | 輸入文字字型大小字串,預設'0.85rem' |
paddingStyle |
Object | {top:0,bottom:0,left:0,right:0} |
No | 輸入內寬距離物件,可用鍵值為v、h、left、right、top、bottom,v代表同時設定top與bottom,h代表設定left與right,若有重複設定時後面鍵值會覆蓋前面,各鍵值為寬度數字,單位為px,預設{top:0,bottom:0,left:0,right:0} |
verticalAlign |
String | 'center' |
No | 輸入input與文字之垂直對齊字串,可選'top'、'center'、'bottom',預設'center' |
editable |
Boolean | true |
No | 輸入是否為編輯模式布林值,預設true |
Name | Type | Default value | Required? | Description |
---|---|---|---|---|
items |
Array | [] |
No | 輸入全部可選字串或物件陣列,預設[] |
value |
String|Object | - | Yes | 輸入單選字串或物件,無預設 |
keyText |
String | 'text' |
No | 輸入可選項目為物件時,存放顯示文字之欄位字串,預設'text' |
arrange |
String | 'vertical' |
No | 輸入可選項目排列字串,可選'vertical'、'horizontal',預設'vertical' |
inputSize |
Number | 16 |
No | 輸入input寬度與高度數字,單位為px,預設16 |
inputShiftTop |
Number | 0 |
No | 輸入input上方平移數離數字,單位為px,預設0 |
textColor |
String | '#222' |
No | 輸入文字顏色字串,預設'#222' |
textColorHover |
String | '#888' |
No | 輸入滑鼠移入時文字顏色字串,預設'#888' |
textColorActive |
String | '#222' |
No | 輸入主動模式時文字顏色字串,預設'#222' |
textColorDisabled |
String | '#666' |
No | 輸入主動模式時文字顏色字串,預設'#666' |
textFontSize |
String | '0.85rem' |
No | 輸入文字字型大小字串,預設'0.85rem' |
paddingStyle |
Object | {top:0,bottom:0,left:0,right:0} |
No | 輸入內寬距離物件,可用鍵值為v、h、left、right、top、bottom,v代表同時設定top與bottom,h代表設定left與right,若有重複設定時後面鍵值會覆蓋前面,各鍵值為寬度數字,單位為px,預設{top:0,bottom:0,left:0,right:0} |
verticalAlign |
String | 'center' |
No | 輸入input與文字之垂直對齊字串,可選'top'、'center'、'bottom',預設'center' |
editable |
Boolean | true |
No | 輸入是否為編輯模式布林值,預設true |