tangjinzhou
4 years ago
1 changed files with 4 additions and 5 deletions
@ -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…
Reference in new issue