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.
26 lines
514 B
26 lines
514 B
import PropTypes from '../_util/vue-types';
|
|
import Base from '../base';
|
|
|
|
const ConfigProvider = {
|
|
name: 'AConfigProvider',
|
|
props: {
|
|
getPopupContainer: PropTypes.func,
|
|
},
|
|
provide() {
|
|
return {
|
|
configProvider: this.$props,
|
|
};
|
|
},
|
|
render() {
|
|
return this.$slots.default ? this.$slots.default[0] : null;
|
|
},
|
|
};
|
|
|
|
/* istanbul ignore next */
|
|
ConfigProvider.install = function(Vue) {
|
|
Vue.use(Base);
|
|
Vue.component(ConfigProvider.name, ConfigProvider);
|
|
};
|
|
|
|
export default ConfigProvider;
|