Dropdown
介紹使用 Dropdown 下拉式選單元件

Dropdown 下拉式選單,用在讓使用者針對選取的資料採取下一步互動。點擊按鈕會出現一個懸浮區域,裡面是一系列的選項,外觀與 Select 相似,但與 Select 最大的不同之處在於 Dropdown 點擊選項後觸發選項事件,並且關閉懸浮區域。
主題色
大小
提示文字
禁用
前綴與後綴
如果上層有"position: fixed"
在 bp-form-item 裡面
客製化列表寬度
Options 與 Methods
屬性
Name
Value
Type
Default
Required
Note
id
String
random
size
small, large
String
v-model
String
options
Array<{ label: string; type?: ‘link’ or ‘external-link’; url: string }>
disabled
Boolean
placeholder
String
theme
primary,
success,
warning,
danger,
primary-ghost,
success-ghost,
warning-ghost,
danger-ghost
String
optionWidth
String
fixed
Boolean
v-slot:prefix
v-slot:affix
listboxClass
String
可以在 listbox 增加 classname
Demo
Last updated
Was this helpful?