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 { defineComponent } from 'vue';
import { useInjectMenu } from './hooks/useMenuContext';
export default defineComponent({ export default defineComponent({
name: 'AMenuDivider', name: 'AMenuDivider',
props: { setup() {
prefixCls: String, const { prefixCls } = useInjectMenu();
},
setup(props) {
return () => { return () => {
return <li class={`${props.prefixCls}-item-divider`} />; return <li class={`${prefixCls.value}-item-divider`} />;
}; };
}, },
}); });

Loading…
Cancel
Save