mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 21:50:07 +08:00
16 lines
314 B
Vue
16 lines
314 B
Vue
import { provide } from 'vue';
|
|
import { storeShape } from './PropTypes';
|
|
import { getSlot } from '../props-util';
|
|
export default {
|
|
name: 'StoreProvider',
|
|
props: {
|
|
store: storeShape.isRequired,
|
|
},
|
|
created() {
|
|
provide('storeContext', this.$props);
|
|
},
|
|
render() {
|
|
return getSlot(this);
|
|
},
|
|
};
|