fix(Picker): option.className not work

This commit is contained in:
chenjiahan
2022-01-21 16:52:32 +08:00
committed by neverland
parent f436b5ae09
commit d16075f39e
+7 -4
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: [
disabled, bem('item', {
selected: value === props.value, disabled,
}), selected: value === props.value,
}),
option.className,
],
onClick: () => onClickItem(index), onClick: () => onClickItem(index),
}; };