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', 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),
}; };