Browse Source

fix: menu divider class error #4195

pull/4199/head
tangjinzhou 4 years ago
parent
commit
980ca7f4ff
  1. 9
      components/menu/src/Divider.tsx

9
components/menu/src/Divider.tsx

@ -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`} />;
};
},
});

Loading…
Cancel
Save