Skip to content

Commit

Permalink
fix: menu divider class error #4195
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 10, 2021
1 parent 74b66ec commit 980ca7f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/menu/src/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { defineComponent } from 'vue';
import { useInjectMenu } from './hooks/useMenuContext';

export default defineComponent({
name: 'AMenuDivider',
props: {
prefixCls: String,
},
setup(props) {
setup() {
const { prefixCls } = useInjectMenu();
return () => {
return <li class={`${props.prefixCls}-item-divider`} />;
return <li class={`${prefixCls.value}-item-divider`} />;
};
},
});

0 comments on commit 980ca7f

Please sign in to comment.