mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Picker): option.className not work
This commit is contained in:
parent
f436b5ae09
commit
d16075f39e
@ -213,10 +213,13 @@ export default defineComponent({
|
|||||||
role: 'button',
|
role: 'button',
|
||||||
style: optionStyle,
|
style: optionStyle,
|
||||||
tabindex: disabled ? -1 : 0,
|
tabindex: disabled ? -1 : 0,
|
||||||
class: bem('item', {
|
class: [
|
||||||
|
bem('item', {
|
||||||
disabled,
|
disabled,
|
||||||
selected: value === props.value,
|
selected: value === props.value,
|
||||||
}),
|
}),
|
||||||
|
option.className,
|
||||||
|
],
|
||||||
onClick: () => onClickItem(index),
|
onClick: () => onClickItem(index),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user