fix(Picker): option.className not work

This commit is contained in:
chenjiahan 2022-01-19 14:21:39 +08:00 committed by neverland
parent f436b5ae09
commit d16075f39e

View File

@ -213,10 +213,13 @@ export default defineComponent({
role: 'button',
style: optionStyle,
tabindex: disabled ? -1 : 0,
class: bem('item', {
disabled,
selected: value === props.value,
}),
class: [
bem('item', {
disabled,
selected: value === props.value,
}),
option.className,
],
onClick: () => onClickItem(index),
};