parent
f265a7bb02
commit
3653f37d6b
|
@ -1,6 +1,6 @@
|
||||||
import useConfigInject from '../../config-provider/hooks/useConfigInject';
|
|
||||||
import type { ExtractPropTypes } from 'vue';
|
import type { ExtractPropTypes } from 'vue';
|
||||||
import { computed, defineComponent } from 'vue';
|
import { computed, defineComponent } from 'vue';
|
||||||
|
import { useInjectMenu } from './hooks/useMenuContext';
|
||||||
|
|
||||||
export const menuDividerProps = () => ({
|
export const menuDividerProps = () => ({
|
||||||
prefixCls: String,
|
prefixCls: String,
|
||||||
|
@ -14,7 +14,7 @@ export default defineComponent({
|
||||||
name: 'AMenuDivider',
|
name: 'AMenuDivider',
|
||||||
props: menuDividerProps(),
|
props: menuDividerProps(),
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const { prefixCls } = useConfigInject('menu', props);
|
const { prefixCls } = useInjectMenu();
|
||||||
const cls = computed(() => {
|
const cls = computed(() => {
|
||||||
return {
|
return {
|
||||||
[`${prefixCls.value}-item-divider`]: true,
|
[`${prefixCls.value}-item-divider`]: true,
|
||||||
|
|
Loading…
Reference in New Issue