You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/vc-menu/FunctionProvider.jsx

16 lines
310 B

export const injectExtraPropsKey = 'ANT_MENU_PROVIDER_PROPS_KEY';
const FunctionProvider = {
inheritAttrs: false,
provide() {
return {
[injectExtraPropsKey]: this,
};
},
render() {
const { $slots: slots } = this;
return slots.default[0];
},
};
export default FunctionProvider;