refactor(dropdown): menu class name

This commit is contained in:
07akioni 2022-07-04 23:36:18 +08:00
parent 0f08827ea5
commit ed4003dde2

View File

@ -138,9 +138,10 @@ export default defineComponent({
})
return (
<div
class={`${clsPrefix}-dropdown-menu ${
scrollable ? clsPrefix + '-dropdown-menu--scrollable' : ''
} `}
class={[
`${clsPrefix}-dropdown-menu`,
scrollable && `${clsPrefix}-dropdown-menu--scrollable`
]}
ref="bodyRef"
>
{scrollable ? (