15 lines
296 B
JavaScript
15 lines
296 B
JavaScript
import { storeShape } from './PropTypes';
|
|
export default {
|
|
name: 'StoreProvider',
|
|
props: {
|
|
store: storeShape.isRequired
|
|
},
|
|
provide: function provide() {
|
|
return {
|
|
storeContext: this.$props
|
|
};
|
|
},
|
|
render: function render() {
|
|
return this.$slots['default'][0];
|
|
}
|
|
}; |